Skip to content

Commit aad31c6

Browse files
committed
LOG-1354: No datapoints found on Elastic Query/Fetch Latency dashboard
There was a slight change to indices statistics metrics. We also need to get rid of label filter (it does not make sense now). Additional change was done to Prometheus metric calculation itself. We changed "rate()/irate()" to "rate()/rate()". Context – useful resource about rate and irate metrics: <https://www.robustperception.io/irate-graphs-are-better-graphs>
1 parent f96230f commit aad31c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/dashboards/openshift-logging-dashboard.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -746,13 +746,13 @@
746746
"steppedLine": false,
747747
"targets": [
748748
{
749-
"expr": "sum by()(rate(es_indices_search_query_time_seconds[5m])) / sum by()(irate(es_indices_search_query_count{context='total'}[5m]))",
749+
"expr": "sum by()(rate(es_indices_search_query_time_seconds[5m])) / sum by()(rate(es_indices_search_query_count[5m]))",
750750
"hide": false,
751751
"legendFormat": "query time",
752752
"refId": "A"
753753
},
754754
{
755-
"expr": "sum by()(rate(es_indices_search_fetch_time_seconds[5m])) / sum by()(irate(es_indices_search_fetch_count{context='total'}[5m]))",
755+
"expr": "sum by()(rate(es_indices_search_fetch_time_seconds[5m])) / sum by()(rate(es_indices_search_fetch_count[5m]))",
756756
"hide": false,
757757
"legendFormat": "fetch time",
758758
"refId": "B"

0 commit comments

Comments
 (0)