Skip to content

Commit

Permalink
combine quantile panels
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Sep 6, 2023
1 parent 2f1204c commit 141e020
Showing 1 changed file with 24 additions and 105 deletions.
129 changes: 24 additions & 105 deletions src/grafana/provisioning/dashboards/general/demo-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,100 +168,19 @@
"legendFormat": "quantile999",
"range": true,
"refId": "D"
}
],
"title": "Service Latency by Service (from SpanMetrics)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "webstore-metrics"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "dtdurationms"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 1
},
"id": 15,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "webstore-metrics"
},
"editorMode": "code",
"exemplar": true,
"exemplar": false,
"expr": "histogram_quantile(0.50, sum(rate(duration_bucket{service_name=\"${service}\", span_name=~\".*commercetools.*\"}[$__rate_interval])) by (le))",
"legendFormat": "quantile50",
"hide": false,
"legendFormat": "ct-quantile50",
"range": true,
"refId": "A"
"refId": "E"
},
{
"datasource": {
Expand All @@ -272,9 +191,9 @@
"exemplar": false,
"expr": "histogram_quantile(0.95, sum(rate(duration_bucket{service_name=\"${service}\", span_name=~\".*commercetools.*\"}[$__rate_interval])) by (le))",
"hide": false,
"legendFormat": "quantile95",
"legendFormat": "ct-quantile95",
"range": true,
"refId": "B"
"refId": "F"
},
{
"datasource": {
Expand All @@ -285,9 +204,9 @@
"exemplar": false,
"expr": "histogram_quantile(0.99, sum(rate(duration_bucket{service_name=\"${service}\", span_name=~\".*commercetools.*\"}[$__rate_interval])) by (le))",
"hide": false,
"legendFormat": "quantile99",
"legendFormat": "ct-quantile99",
"range": true,
"refId": "C"
"refId": "G"
},
{
"datasource": {
Expand All @@ -298,12 +217,12 @@
"exemplar": false,
"expr": "histogram_quantile(0.999, sum(rate(duration_bucket{service_name=\"${service}\", span_name=~\".*commercetools.*\"}[$__rate_interval])) by (le))",
"hide": false,
"legendFormat": "quantile999",
"legendFormat": "ct-quantile999",
"range": true,
"refId": "D"
"refId": "H"
}
],
"title": "Service Latency (commercetools) by service",
"title": "Service Latency by Service (from SpanMetrics)",
"type": "timeseries"
},
{
Expand Down Expand Up @@ -359,18 +278,17 @@
"value": 80
}
]
},
"unit": "reqps"
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 9
"x": 12,
"y": 1
},
"id": 12,
"id": 10,
"options": {
"legend": {
"calcs": [],
Expand All @@ -390,13 +308,13 @@
"uid": "webstore-metrics"
},
"editorMode": "code",
"expr": "sum by(span_name) (rate(duration_count{service_name=\"${service}\"}[$__rate_interval]))",
"expr": "rate(calls{status_code=\"STATUS_CODE_ERROR\", service_name=\"${service}\"}[$__interval])",
"legendFormat": "{{ span_name }}",
"range": true,
"refId": "A"
}
],
"title": "Endpoint Rate by Service",
"title": "Error Rate by Service",
"type": "timeseries"
},
{
Expand Down Expand Up @@ -452,17 +370,18 @@
"value": 80
}
]
}
},
"unit": "reqps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"x": 0,
"y": 9
},
"id": 10,
"id": 12,
"options": {
"legend": {
"calcs": [],
Expand All @@ -482,13 +401,13 @@
"uid": "webstore-metrics"
},
"editorMode": "code",
"expr": "rate(calls{status_code=\"STATUS_CODE_ERROR\", service_name=\"${service}\"}[$__interval])",
"expr": "sum by(span_name) (rate(duration_count{service_name=\"${service}\"}[$__rate_interval]))",
"legendFormat": "{{ span_name }}",
"range": true,
"refId": "A"
}
],
"title": "Error Rate by Service",
"title": "Endpoint Rate by Service",
"type": "timeseries"
}
],
Expand Down Expand Up @@ -536,6 +455,6 @@
"timezone": "",
"title": "Demo Dashboard",
"uid": "W2gX2zHVk",
"version": 1,
"version": 4,
"weekStart": ""
}

0 comments on commit 141e020

Please sign in to comment.