mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 01:23:32 -06:00
Service graph: Fix error when service graph metrics are aggregated (#68613)
make service graph work with aggregated metrics
This commit is contained in:
parent
b7a0313cba
commit
e1c2eb8c10
@ -744,7 +744,7 @@ function makePromServiceMapRequest(options: DataQueryRequest<TempoQuery>): DataQ
|
||||
refId: metric,
|
||||
// options.targets[0] is not correct here, but not sure what should happen if you have multiple queries for
|
||||
// service map at the same time anyway
|
||||
expr: `rate(${metric}${options.targets[0].serviceMapQuery || ''}[$__range])`,
|
||||
expr: `sum by (client, server) (rate(${metric}${options.targets[0].serviceMapQuery || ''}[$__range]))`,
|
||||
instant: true,
|
||||
};
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user