From 1e93cd2860a234cced202f705b394963047dfa99 Mon Sep 17 00:00:00 2001 From: Gao Hongtao Date: Thu, 7 Jan 2021 13:29:28 +0800 Subject: [PATCH] Fix istio control plane ui template metric type mismatch issue (#6147) Signed-off-by: Gao Hongtao --- CHANGES.md | 1 + .../src/main/resources/ui-initialized-templates/istio.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index fc4caff8e..c6e0a45ce 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -48,6 +48,7 @@ Release Notes. * Adopt the [MAL](docs/en/concepts-and-designs/mal.md) in Envoy metrics service analyzer. * Fix the priority setting doesn't work of the ALS analyzers. * Fix bug that `endpoint-name-grouping.yml` is not customizable in Dockerized case. +* Fix bug that istio version metric type on UI template mismatches the otel rule. #### UI * Fix un-removed tags in trace query. diff --git a/oap-server/server-bootstrap/src/main/resources/ui-initialized-templates/istio.yml b/oap-server/server-bootstrap/src/main/resources/ui-initialized-templates/istio.yml index 1e0f6dfa0..d45122bfb 100644 --- a/oap-server/server-bootstrap/src/main/resources/ui-initialized-templates/istio.yml +++ b/oap-server/server-bootstrap/src/main/resources/ui-initialized-templates/istio.yml @@ -41,9 +41,9 @@ templates: "height": 350, "entityType": "Service", "independentSelector": false, - "metricType": "REGULAR_VALUE", + "metricType": "LABELED_VALUE", "metricName": "meter_istio_pilot_version", - "queryMetricType": "readMetricsValues", + "queryMetricType": "readLabeledMetricsValues", "chartType": "ChartArea" }, {