Skip to content

Instantly share code, notes, and snippets.

@tbg
Last active December 5, 2022 12:31
Show Gist options
  • Save tbg/a9e6af1072f08c8ed74f21c3e966b736 to your computer and use it in GitHub Desktop.
Save tbg/a9e6af1072f08c8ed74f21c3e966b736 to your computer and use it in GitHub Desktop.
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 1,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "localprom"
},
"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": "dashed+area"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 0.04
},
{
"color": "red",
"value": 0.06
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 24,
"w": 20,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "localprom"
},
"editorMode": "code",
"expr": "histogram_quantile(0.99, rate(workload_tpcc_newOrder_duration_seconds_bucket[$__rate_interval]))",
"hide": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "localprom"
},
"editorMode": "code",
"expr": "histogram_quantile(0.90, rate(workload_tpcc_newOrder_duration_seconds_bucket[$__rate_interval]))",
"hide": false,
"legendFormat": "__auto",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "localprom"
},
"editorMode": "code",
"expr": "histogram_quantile(0.85, rate(workload_tpcc_newOrder_duration_seconds_bucket[$__rate_interval]))",
"hide": false,
"legendFormat": "__auto",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "localprom"
},
"editorMode": "code",
"expr": "histogram_quantile(0.75, rate(workload_tpcc_newOrder_duration_seconds_bucket[$__rate_interval]))",
"hide": false,
"legendFormat": "__auto",
"range": true,
"refId": "D"
},
{
"datasource": {
"type": "prometheus",
"uid": "localprom"
},
"editorMode": "code",
"expr": "histogram_quantile(0.50, rate(workload_tpcc_newOrder_duration_seconds_bucket[$__rate_interval]))",
"hide": false,
"legendFormat": "__auto",
"range": true,
"refId": "E"
}
],
"title": "newOrder latency quantiles",
"type": "timeseries"
}
],
"refresh": "5s",
"schemaVersion": 37,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-1h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "New dashboard",
"uid": "xJ2AWtF4z",
"version": 3,
"weekStart": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment