From 8740c0bbc02c281afbea5767a051e812e064e14e Mon Sep 17 00:00:00 2001 From: patrickhuie19 Date: Wed, 13 Nov 2024 11:43:52 -0500 Subject: [PATCH] updating metric names to remove _total suffix --- .../dashboards/keystone-workflows/component.go | 6 +++--- .../dashboards/keystone-workflows/test-output.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/observability-lib/dashboards/keystone-workflows/component.go b/observability-lib/dashboards/keystone-workflows/component.go index 0397a8dab..a1f0727bc 100644 --- a/observability-lib/dashboards/keystone-workflows/component.go +++ b/observability-lib/dashboards/keystone-workflows/component.go @@ -246,7 +246,7 @@ func engine(p *Props) []*grafana.Panel { Height: 8, Query: []grafana.Query{ { - Expr: `platform_engine_workflow_errors_total{` + p.QueryFilters + `}`, + Expr: `platform_engine_workflow_errors{` + p.QueryFilters + `}`, Legend: "", }, }, @@ -433,7 +433,7 @@ func engine(p *Props) []*grafana.Panel { Height: 8, Query: []grafana.Query{ { - Expr: `platform_engine_capabilities_count_total{` + p.QueryFilters + `}`, + Expr: `platform_engine_capabilities_count{` + p.QueryFilters + `}`, Legend: "", }, }, @@ -455,7 +455,7 @@ func registrySyncer(p *Props) []*grafana.Panel { Height: 8, Query: []grafana.Query{ { - Expr: `platform_registrysyncer_sync_failures_total{` + p.QueryFilters + `}`, + Expr: `platform_registrysyncer_sync_failures{` + p.QueryFilters + `}`, Legend: "", }, }, diff --git a/observability-lib/dashboards/keystone-workflows/test-output.json b/observability-lib/dashboards/keystone-workflows/test-output.json index c13511c23..1fc00cf91 100644 --- a/observability-lib/dashboards/keystone-workflows/test-output.json +++ b/observability-lib/dashboards/keystone-workflows/test-output.json @@ -183,7 +183,7 @@ "id": 4, "targets": [ { - "expr": "platform_engine_workflow_errors_total{env=~\"${env}\", cluster=~\"${cluster}\"}", + "expr": "platform_engine_workflow_errors{env=~\"${env}\", cluster=~\"${cluster}\"}", "format": "", "legendFormat": "", "refId": ""