Skip to content

Commit

Permalink
OM151 - Added micro-benchmark support in latency-view (#92)
Browse files Browse the repository at this point in the history
added support for micro-benchmarks in the dashboard
1. fixed variable queries
2. added service/node in queries
  • Loading branch information
mphanias authored Dec 11, 2023
1 parent 4e275f0 commit b916251
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions config/grafana/dashboards/latency.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}
]
},
"description": "Latency View dashboard helps visualise latencies as number of queries in each bucket as heatmap in various operations like read, write, batch-index, ",
"description": "Latency View dashboard helps visualise latencies as number of queries in each bucket as heatmap in various operations like read, write, batch-index, - support microsecond, millisecond and micro-benchmarks",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
Expand Down Expand Up @@ -147,7 +147,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "avg by (ns) (histogram_quantile(0.95, (aerospike_latencies_${operation}_${latencytimeunit}_bucket{job=\"$job_name\",cluster_name=~\"$cluster\", ns=~\"$namespace|$^\"})))",
"expr": "avg by (ns) (histogram_quantile(0.95, (aerospike_latencies_${operation}_${latencytimeunit}_bucket{job=\"$job_name\",cluster_name=~\"$cluster\", ns=~\"$namespace|$^\", service=~\"$node\"})))",
"instant": false,
"interval": "",
"legendFormat": "p95 ${latencytimeunit}",
Expand All @@ -160,7 +160,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "avg by (ns) (histogram_quantile(0.99, (aerospike_latencies_${operation}_${latencytimeunit}_bucket{job=\"$job_name\",cluster_name=~\"$cluster\", ns=~\"$namespace|$^\"})))",
"expr": "avg by (ns) (histogram_quantile(0.99, (aerospike_latencies_${operation}_${latencytimeunit}_bucket{job=\"$job_name\",cluster_name=~\"$cluster\", ns=~\"$namespace|$^\", service=~\"$node\"})))",
"interval": "",
"legendFormat": "p99 ${latencytimeunit}",
"range": true,
Expand All @@ -173,7 +173,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "avg by (ns) (histogram_quantile(0.999, (aerospike_latencies_${operation}_${latencytimeunit}_bucket{job=\"$job_name\",cluster_name=~\"$cluster\", ns=~\"$namespace|$^\"})))",
"expr": "avg by (ns) (histogram_quantile(0.999, (aerospike_latencies_${operation}_${latencytimeunit}_bucket{job=\"$job_name\",cluster_name=~\"$cluster\", ns=~\"$namespace|$^\", service=~\"$node\"})))",
"hide": false,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -276,7 +276,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum by (le) (aerospike_latencies_${operation}_${latencytimeunit}_bucket{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\"})",
"expr": "sum by (le) (aerospike_latencies_${operation}_${latencytimeunit}_bucket{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node\"})",
"format": "heatmap",
"hide": false,
"instant": false,
Expand Down Expand Up @@ -425,7 +425,7 @@
"options": [],
"query": {
"query": "label_values(aerospike_namespace_objects{job=\"$job_name\", cluster_name=~\"$cluster|$^\", service=~\"$node|$^\" },ns)",
"refId": "Aerospike Prometheus-namespace-Variable-Query"
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
Expand All @@ -442,19 +442,19 @@
"type": "prometheus",
"uid": "${DS_AEROSPIKE_PROMETHEUS}"
},
"definition": "metrics(aerospike_latencies_)",
"definition": "query_result({job=\"$job_name\", __name__=~\"aerospike_laten.*\", cluster_name=~\"$cluster|$^\", })",
"hide": 0,
"includeAll": true,
"label": "Operation",
"multi": true,
"name": "operation",
"options": [],
"query": {
"query": "metrics(aerospike_latencies_)",
"refId": "Aerospike Prometheus-operation-Variable-Query"
"query": "query_result({job=\"$job_name\", __name__=~\"aerospike_laten.*\", cluster_name=~\"$cluster|$^\", })",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/.*aerospike_latencies_((((s|p)i_[a-z]*)|([a-z]*))[_a-z]*)_[a-z]*_count/",
"regex": "/.*aerospike_latencies_((((s|p)i_[a-z].*)|([a-z].*))[_a-z].*)_[a-z].*_count/",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
Expand All @@ -469,6 +469,7 @@
"uid": "${DS_AEROSPIKE_PROMETHEUS}"
},
"definition": "metrics(aerospike_latencies_)",
"description": "query_result({job=\"$job_name\", __name__=~\"aerospike_laten.*\", cluster_name=~\"$cluster|$^\", service=~\"$node|$^\" })",
"hide": 0,
"includeAll": false,
"label": "Latency Time Unit",
Expand All @@ -477,10 +478,10 @@
"options": [],
"query": {
"query": "metrics(aerospike_latencies_)",
"refId": "Aerospike Prometheus-latencytimeunit-Variable-Query"
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/.*aerospike_latencies_[a-z]*_([a-z]*)_count/",
"regex": "/.*aerospike_latencies_[a-z].*_([a-z].*)_count/",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
Expand Down Expand Up @@ -522,6 +523,6 @@
"timezone": "",
"title": "Latency View",
"uid": "ZoeGW1DBk",
"version": 2,
"version": 11,
"weekStart": ""
}

0 comments on commit b916251

Please sign in to comment.