Skip to content

Instantly share code, notes, and snippets.

@aojea
Created February 22, 2022 17:13
Show Gist options
  • Select an option

  • Save aojea/29d4c653f1a4bf3138ea17788cbc5f4d to your computer and use it in GitHub Desktop.

Select an option

Save aojea/29d4c653f1a4bf3138ea17788cbc5f4d to your computer and use it in GitHub Desktop.
client-go dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- 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": 9,
"links": [],
"liveNow": false,
"panels": [
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 10,
"x": 0,
"y": 0
},
"id": 10,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "dEqtMJB7k"
},
"exemplar": true,
"expr": "sum(rate(rest_client_requests_total[5m])) by (host,code)",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Request per code and host",
"type": "timeseries"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 10,
"x": 0,
"y": 11
},
"id": 8,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "dEqtMJB7k"
},
"exemplar": true,
"expr": "histogram_quantile(0.95,sum(rate(rest_client_request_duration_seconds_bucket{}[5m])) by(le,job,verb)) ",
"hide": true,
"interval": "",
"legendFormat": "\"Perc95-{{job}}-{{verb}}\"",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "dEqtMJB7k"
},
"exemplar": true,
"expr": "histogram_quantile(0.99,sum(rate(rest_client_request_duration_seconds_bucket{}[5m])) by(le,job,verb)) ",
"hide": true,
"interval": "",
"legendFormat": "\"Perc99-{{job}}-{{verb}}\"",
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "dEqtMJB7k"
},
"exemplar": true,
"expr": "histogram_quantile(0.5,sum(rate(rest_client_request_duration_seconds_bucket{}[5m])) by(le,job,verb)) ",
"hide": false,
"interval": "",
"legendFormat": "\"Perc50-{{job}}-{{verb}}\"",
"refId": "C"
}
],
"title": "histogram: request latency per job and verb (seconds)",
"type": "timeseries"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 14,
"w": 10,
"x": 0,
"y": 23
},
"id": 7,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "dEqtMJB7k"
},
"exemplar": true,
"expr": "histogram_quantile(0.95,sum(rate(rest_client_request_size_bytes_bucket{}[5m])) by(le,job,verb)) / 1024",
"hide": true,
"interval": "",
"legendFormat": "\"Perc95-{{job}}-{{verb}}\"",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "dEqtMJB7k"
},
"exemplar": true,
"expr": "histogram_quantile(0.99,sum(rate(rest_client_request_size_bytes_bucket{}[5m])) by(le,job,verb)) / 1024",
"hide": true,
"interval": "",
"legendFormat": "\"Perc99-{{job}}-{{verb}}\"",
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "dEqtMJB7k"
},
"exemplar": true,
"expr": "histogram_quantile(0.5,sum(rate(rest_client_request_size_bytes_bucket{}[5m])) by(le,job,verb)) / 1024",
"hide": false,
"interval": "",
"legendFormat": "\"Perc50-{{job}}-{{verb}}\"",
"refId": "C"
}
],
"title": "histogram: request size per job and verb (kb)",
"type": "timeseries"
}
],
"schemaVersion": 33,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "2022-02-21T13:14:58.486Z",
"to": "2022-02-21T13:45:24.754Z"
},
"timepicker": {},
"timezone": "",
"title": "New dashboard Copy",
"uid": "doARe-f7k",
"version": 2,
"weekStart": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment