feat: Address different Metrics for Prometheus queries in the Dashboard and fix typo in metric name (#5441)

Fix typo in metric and add metric for prometheus compatible endpoint

Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com>
This commit is contained in:
Stephan3555
2025-01-24 10:28:05 +07:00
committed by GitHub
parent 088317fd3a
commit 8ea463f516

View File

@@ -1761,12 +1761,25 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "sum (rate(greptime_servers_http_promql_elapsed_counte{pod=~\"$frontend\"}[$__rate_interval]))",
"expr": "sum (rate(greptime_servers_http_promql_elapsed_count{pod=~\"$frontend\"}[$__rate_interval]))",
"hide": false,
"instant": false,
"legendFormat": "promql",
"legendFormat": "promql-native",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "sum (rate(greptime_servers_http_prometheus_promql_elapsed_count{pod=~\"$frontend\"}[$__rate_interval]))",
"hide": false,
"instant": false,
"legendFormat": "promql-compatible-api",
"range": true,
"refId": "D"
}
],
"title": "Queries",
@@ -7411,4 +7424,4 @@
"uid": "ce3q6xwn3xa0wa",
"version": 2,
"weekStart": ""
}
}