Skip to content

Instantly share code, notes, and snippets.

@metalmatze
Created April 25, 2020 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metalmatze/f8351a56fa4393853c4a598efa60ab53 to your computer and use it in GitHub Desktop.
Save metalmatze/f8351a56fa4393853c4a598efa60ab53 to your computer and use it in GitHub Desktop.
NGINX Ingress RED dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 1,
"id": 25,
"iteration": 1584089502213,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 10,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 0
},
"hiddenSeries": false,
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 0,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(nginx_ingress_controller_request_duration_seconds_count{ingress=\"$ingress\"}[5m]))",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Requests",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "reqps",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"sum(rate(nginx_ingress_controller_request_duration_seconds_count{ingress=\"groovelink-frontend\",status=~\"5..\"}[5m])) / sum(rate(nginx_ingress_controller_request_duration_seconds_count{ingress=\"groovelink-frontend\"}[5m]))": "dark-red"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 10,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 6
},
"hiddenSeries": false,
"id": 3,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 0,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(nginx_ingress_controller_request_duration_seconds_count{ingress=\"$ingress\",status=~\"5..\"}[5m])) / sum(rate(nginx_ingress_controller_request_duration_seconds_count{ingress=\"$ingress\"}[5m]))",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Errors",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "percentunit",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"50": "dark-green",
"99": "dark-red",
"sum(rate(nginx_ingress_controller_request_duration_seconds_count{ingress=\"groovelink-frontend\",status=~\"5..\"}[5m])) / sum(rate(nginx_ingress_controller_request_duration_seconds_count{ingress=\"groovelink-frontend\"}[5m]))": "dark-red"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 2,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 12
},
"hiddenSeries": false,
"id": 4,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "50",
"fill": 10
},
{
"alias": "90",
"fill": 0
},
{
"alias": "99",
"fill": 0
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(0.99,sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress=\"$ingress\",status!~\"5..\"}[5m])) by (le))",
"legendFormat": "99",
"refId": "A"
},
{
"expr": "histogram_quantile(0.90,sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress=\"$ingress\",status!~\"5..\"}[5m])) by (le))",
"legendFormat": "90",
"refId": "B"
},
{
"expr": "histogram_quantile(0.50,sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress=\"$ingress\",status!~\"5..\"}[5m])) by (le))",
"legendFormat": "50",
"refId": "C"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Duration",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "s",
"label": null,
"logBase": 10,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "10s",
"schemaVersion": 22,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "digitalocean",
"value": "digitalocean"
},
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"allValue": null,
"current": {
"selected": true,
"text": "groovelink-frontend",
"value": "groovelink-frontend"
},
"datasource": "$datasource",
"definition": "label_values(nginx_ingress_controller_request_duration_seconds_count{ingress!=\"\"}, ingress)",
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "ingress",
"options": [],
"query": "label_values(nginx_ingress_controller_request_duration_seconds_count{ingress!=\"\"}, ingress)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-24h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Ingress RED",
"uid": "jpDvNtAWk",
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment