mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
fix(elasticsearch): fixed series naming & aliasing when using field for extended_stats and percentiles
This commit is contained in:
parent
9904d01958
commit
41154d6d11
@ -51,7 +51,7 @@ function (_, queryDef) {
|
||||
var percentiles = firstBucket[metric.id].values;
|
||||
|
||||
for (var percentileName in percentiles) {
|
||||
newSeries = {datapoints: [], metric: 'p' + percentileName, props: props};
|
||||
newSeries = {datapoints: [], metric: 'p' + percentileName, props: props, field: metric.field};
|
||||
|
||||
for (i = 0; i < esAgg.buckets.length; i++) {
|
||||
bucket = esAgg.buckets[i];
|
||||
@ -69,7 +69,7 @@ function (_, queryDef) {
|
||||
continue;
|
||||
}
|
||||
|
||||
newSeries = {datapoints: [], metric: statName, props: props};
|
||||
newSeries = {datapoints: [], metric: statName, props: props, field: metric.field};
|
||||
|
||||
for (i = 0; i < esAgg.buckets.length; i++) {
|
||||
bucket = esAgg.buckets[i];
|
||||
|
Loading…
Reference in New Issue
Block a user