Skip to content

Commit

Permalink
Add subject to the labels
Browse files Browse the repository at this point in the history
  • Loading branch information
hooksie1 committed Oct 1, 2024
1 parent 9644c80 commit 525b34a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (e *Exporter) scrapeService(wg *sync.WaitGroup, service micro.Info, ch chan

func (e *Exporter) scrapeStats(wg *sync.WaitGroup, stats micro.Stats, endpoint *micro.EndpointStats, ch chan<- prometheus.Metric) {
defer wg.Done()
labels := fmt.Sprintf("%s_%s_%s", stats.Name, stats.ID, endpoint.Name)
labels := fmt.Sprintf("%s_%s_%s_%s", stats.Name, stats.ID, endpoint.Name, endpoint.Subject)
for _, metric := range e.metrics {
switch metric.valueType {
case totalRequests:
Expand Down

0 comments on commit 525b34a

Please sign in to comment.