Created
August 17, 2022 14:38
-
-
Save jovemfelix/79ebf50555f1063f04ff0f35ac19dfe5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: integreatly.org/v1alpha1 | |
| kind: GrafanaDashboard | |
| metadata: | |
| name: dashboard-ingress | |
| labels: | |
| app: 3scale-monitoring. # adequar para o cenário | |
| spec: | |
| json: | |
| "" | |
| configMapRef: | |
| name: dashboard-ingress-cm | |
| key: dashboard | |
| --- | |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: dashboard-ingress-cm | |
| data: | |
| 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" | |
| } | |
| ] | |
| }, | |
| "description": "HAProxy with Prometheus data", | |
| "editable": true, | |
| "gnetId": 12693, | |
| "graphTooltip": 1, | |
| "id": 10, | |
| "iteration": 1660744699992, | |
| "links": [], | |
| "panels": [ | |
| { | |
| "collapsed": false, | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "id": 152, | |
| "panels": [], | |
| "title": "General Info", | |
| "type": "row" | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": null, | |
| "description": "", | |
| "editable": true, | |
| "error": false, | |
| "fieldConfig": { | |
| "defaults": { | |
| "links": [] | |
| }, | |
| "overrides": [] | |
| }, | |
| "fill": 2, | |
| "fillGradient": 0, | |
| "grid": {}, | |
| "gridPos": { | |
| "h": 10, | |
| "w": 24, | |
| "x": 0, | |
| "y": 1 | |
| }, | |
| "hiddenSeries": false, | |
| "id": 83, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": true, | |
| "current": true, | |
| "max": true, | |
| "min": true, | |
| "rightSide": true, | |
| "show": true, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "maxPerRow": 2, | |
| "nullPointMode": "null", | |
| "options": { | |
| "alertThreshold": true | |
| }, | |
| "percentage": false, | |
| "pluginVersion": "7.5.15", | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [ | |
| { | |
| "$$hashKey": "object:469", | |
| "alias": "/.*Back.*/", | |
| "transform": "negative-Y" | |
| }, | |
| { | |
| "$$hashKey": "object:470", | |
| "alias": "/.*1xx.*/", | |
| "color": "#6ED0E0" | |
| }, | |
| { | |
| "$$hashKey": "object:471", | |
| "alias": "/.*2xx.*/", | |
| "color": "#7EB26D" | |
| }, | |
| { | |
| "$$hashKey": "object:472", | |
| "alias": "/.*3xx.*/", | |
| "color": "#1F78C1" | |
| }, | |
| { | |
| "$$hashKey": "object:473", | |
| "alias": "/.*4xx.*/", | |
| "color": "#CCA300" | |
| }, | |
| { | |
| "$$hashKey": "object:474", | |
| "alias": "/.*5xx.*/", | |
| "color": "#890F02" | |
| }, | |
| { | |
| "$$hashKey": "object:475", | |
| "alias": "/.*other.*/", | |
| "color": "#806EB7" | |
| } | |
| ], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(rate(haproxy_frontend_http_responses_total{job=~\"$job\",code=~\"$code\"}[$__rate_interval])) by (code,job) > 0", | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "Front {{ code }} {{ job }}", | |
| "metric": "", | |
| "refId": "A", | |
| "step": 240 | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(rate(haproxy_backend_http_responses_total{job=~\"$job\",code=~\"$code\",route=~\"$route\"}[$__rate_interval])) by (code,job,route) > 0", | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "Back {{ code }} {{ job }} - {{ route }}", | |
| "metric": "", | |
| "refId": "B", | |
| "step": 240 | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeRegions": [], | |
| "timeShift": null, | |
| "title": "All HTTP responses rate", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": true, | |
| "sort": 2, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "buckets": null, | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "$$hashKey": "object:524", | |
| "format": "short", | |
| "label": "- back / + front", | |
| "logBase": 1, | |
| "show": true | |
| }, | |
| { | |
| "$$hashKey": "object:525", | |
| "format": "short", | |
| "logBase": 1, | |
| "min": 0, | |
| "show": false | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false | |
| } | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": null, | |
| "decimals": 1, | |
| "description": "", | |
| "editable": true, | |
| "error": false, | |
| "fieldConfig": { | |
| "defaults": { | |
| "links": [] | |
| }, | |
| "overrides": [] | |
| }, | |
| "fill": 2, | |
| "fillGradient": 0, | |
| "grid": {}, | |
| "gridPos": { | |
| "h": 10, | |
| "w": 24, | |
| "x": 0, | |
| "y": 11 | |
| }, | |
| "hiddenSeries": false, | |
| "id": 75, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": true, | |
| "current": true, | |
| "max": true, | |
| "min": true, | |
| "rightSide": true, | |
| "show": true, | |
| "sort": "current", | |
| "sortDesc": true, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "maxPerRow": 2, | |
| "nullPointMode": "null", | |
| "options": { | |
| "alertThreshold": true | |
| }, | |
| "percentage": false, | |
| "pluginVersion": "7.5.15", | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [ | |
| { | |
| "$$hashKey": "object:2175", | |
| "alias": "/.*OUT.*/", | |
| "transform": "negative-Y" | |
| } | |
| ], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(rate(haproxy_frontend_bytes_in_total{job=~\"$job\"}[$__rate_interval])*8) by (frontend)", | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "IN Front {{ frontend }}", | |
| "metric": "", | |
| "refId": "A", | |
| "step": 240 | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(rate(haproxy_frontend_bytes_out_total{job=~\"$job\"}[$__rate_interval])*8) by (frontend)", | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "OUT Front {{ frontend }}", | |
| "refId": "B", | |
| "step": 240 | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(rate(haproxy_backend_bytes_in_total{job=~\"$job\", route=\"$route\"}[$__rate_interval])*8) by (backend, route)", | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "IN Back {{ backend }} {{ route }}", | |
| "refId": "C", | |
| "step": 240 | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(rate(haproxy_backend_bytes_out_total{job=~\"$job\", route=\"$route\"}[$__rate_interval])*8) by (backend, route)", | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "OUT Back {{ backend }} {{ route }}", | |
| "refId": "D", | |
| "step": 240 | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeRegions": [], | |
| "timeShift": null, | |
| "title": "Incoming / Outgoing bytes", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "buckets": null, | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "$$hashKey": "object:2188", | |
| "format": "bits", | |
| "label": "- out / + in", | |
| "logBase": 1, | |
| "show": true | |
| }, | |
| { | |
| "$$hashKey": "object:2189", | |
| "format": "short", | |
| "logBase": 1, | |
| "min": 0, | |
| "show": false | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false | |
| } | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": null, | |
| "description": "", | |
| "editable": true, | |
| "error": false, | |
| "fieldConfig": { | |
| "defaults": { | |
| "links": [] | |
| }, | |
| "overrides": [] | |
| }, | |
| "fill": 2, | |
| "fillGradient": 0, | |
| "grid": {}, | |
| "gridPos": { | |
| "h": 11, | |
| "w": 24, | |
| "x": 0, | |
| "y": 21 | |
| }, | |
| "hiddenSeries": false, | |
| "id": 84, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": true, | |
| "current": true, | |
| "max": true, | |
| "min": true, | |
| "rightSide": true, | |
| "show": true, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "maxPerRow": 2, | |
| "nullPointMode": "null", | |
| "options": { | |
| "alertThreshold": true | |
| }, | |
| "percentage": false, | |
| "pluginVersion": "7.5.15", | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [ | |
| { | |
| "$$hashKey": "object:1146", | |
| "alias": "/.*Back.*/", | |
| "transform": "negative-Y" | |
| } | |
| ], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(haproxy_frontend_current_sessions{job=~\"$job\"}) by (job)", | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "Front {{ job }}", | |
| "metric": "", | |
| "refId": "B", | |
| "step": 240 | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(haproxy_backend_current_sessions{job=~\"$job\",route=~\"$route\"}) by (job, exported_namespace, route) > 0", | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "Back {{ exported_namespace }} - {{ route }}", | |
| "metric": "", | |
| "refId": "A", | |
| "step": 240 | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeRegions": [], | |
| "timeShift": null, | |
| "title": "Active sessions", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": true, | |
| "sort": 2, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "buckets": null, | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "$$hashKey": "object:1159", | |
| "format": "short", | |
| "label": "- back / + front", | |
| "logBase": 1, | |
| "show": true | |
| }, | |
| { | |
| "$$hashKey": "object:1160", | |
| "format": "short", | |
| "logBase": 1, | |
| "min": 0, | |
| "show": false | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false | |
| } | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": null, | |
| "description": "", | |
| "editable": true, | |
| "error": false, | |
| "fieldConfig": { | |
| "defaults": { | |
| "links": [] | |
| }, | |
| "overrides": [] | |
| }, | |
| "fill": 2, | |
| "fillGradient": 0, | |
| "grid": {}, | |
| "gridPos": { | |
| "h": 10, | |
| "w": 12, | |
| "x": 0, | |
| "y": 32 | |
| }, | |
| "hiddenSeries": false, | |
| "id": 81, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": true, | |
| "current": true, | |
| "max": true, | |
| "min": true, | |
| "rightSide": false, | |
| "show": true, | |
| "sort": "current", | |
| "sortDesc": true, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "maxPerRow": 2, | |
| "nullPointMode": "null", | |
| "options": { | |
| "alertThreshold": true | |
| }, | |
| "percentage": false, | |
| "pluginVersion": "7.5.15", | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [ | |
| { | |
| "$$hashKey": "object:931", | |
| "alias": "/.*Back.*/", | |
| "transform": "negative-Y" | |
| }, | |
| { | |
| "$$hashKey": "object:1328", | |
| "alias": "/.*resp.*/", | |
| "color": "#F2495C" | |
| }, | |
| { | |
| "$$hashKey": "object:1414", | |
| "alias": "/.*conn.*/", | |
| "color": "#FF9830" | |
| } | |
| ], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(rate(haproxy_backend_response_errors_total{job=~\"$job\",route=~\"$route\"}[$__rate_interval])) by (job, route)", | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "BACK error resp {{ route }}", | |
| "metric": "", | |
| "refId": "I", | |
| "step": 240 | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(rate(haproxy_backend_connection_errors_total{job=~\"$job\",route=~\"$route\"}[$__rate_interval])) by (job, route)", | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "BACK error conn {{ route }}", | |
| "refId": "G", | |
| "step": 240 | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeRegions": [], | |
| "timeShift": null, | |
| "title": "Backend errors: responses & connections", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": true, | |
| "sort": 2, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "buckets": null, | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "$$hashKey": "object:950", | |
| "format": "short", | |
| "label": "- back / + front", | |
| "logBase": 1, | |
| "show": true | |
| }, | |
| { | |
| "$$hashKey": "object:951", | |
| "format": "short", | |
| "logBase": 1, | |
| "min": 0, | |
| "show": false | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false | |
| } | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": null, | |
| "description": "", | |
| "editable": true, | |
| "error": false, | |
| "fieldConfig": { | |
| "defaults": { | |
| "links": [] | |
| }, | |
| "overrides": [] | |
| }, | |
| "fill": 2, | |
| "fillGradient": 0, | |
| "grid": {}, | |
| "gridPos": { | |
| "h": 10, | |
| "w": 12, | |
| "x": 12, | |
| "y": 32 | |
| }, | |
| "hiddenSeries": false, | |
| "id": 79, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": true, | |
| "current": true, | |
| "max": true, | |
| "min": true, | |
| "rightSide": false, | |
| "show": true, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "maxPerRow": 2, | |
| "nullPointMode": "null", | |
| "options": { | |
| "alertThreshold": true | |
| }, | |
| "percentage": false, | |
| "pluginVersion": "7.5.15", | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [ | |
| { | |
| "$$hashKey": "object:616", | |
| "alias": "/.*Back.*/", | |
| "color": "#F2495C", | |
| "transform": "negative-Y" | |
| } | |
| ], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(rate(haproxy_frontend_connections_total{job=~\"$job\"}[$__rate_interval])) by (job)", | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "Front {{ job }}", | |
| "metric": "", | |
| "refId": "A", | |
| "step": 240 | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(rate(haproxy_backend_connection_errors_total{job=~\"$job\", route=~\"$route\"}[$__rate_interval])) by (job, exported_namespace, route)", | |
| "hide": false, | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "Back {{ exported_namespace }} - {{ route }}", | |
| "metric": "", | |
| "refId": "C", | |
| "step": 240 | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeRegions": [], | |
| "timeShift": null, | |
| "title": "Number of connections", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": false, | |
| "sort": 0, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "buckets": null, | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "$$hashKey": "object:629", | |
| "format": "short", | |
| "label": "- back / + front", | |
| "logBase": 1, | |
| "show": true | |
| }, | |
| { | |
| "$$hashKey": "object:630", | |
| "format": "short", | |
| "logBase": 1, | |
| "min": 0, | |
| "show": false | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false | |
| } | |
| }, | |
| { | |
| "collapsed": false, | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 42 | |
| }, | |
| "id": 154, | |
| "panels": [], | |
| "title": "Queues", | |
| "type": "row" | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": null, | |
| "description": "", | |
| "editable": true, | |
| "error": false, | |
| "fieldConfig": { | |
| "defaults": { | |
| "links": [] | |
| }, | |
| "overrides": [] | |
| }, | |
| "fill": 2, | |
| "fillGradient": 0, | |
| "grid": {}, | |
| "gridPos": { | |
| "h": 13, | |
| "w": 12, | |
| "x": 0, | |
| "y": 43 | |
| }, | |
| "hiddenSeries": false, | |
| "id": 221, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": true, | |
| "current": true, | |
| "max": true, | |
| "min": true, | |
| "rightSide": false, | |
| "show": true, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "maxPerRow": 2, | |
| "nullPointMode": "null", | |
| "options": { | |
| "alertThreshold": true | |
| }, | |
| "percentage": false, | |
| "pluginVersion": "7.5.15", | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [ | |
| { | |
| "$$hashKey": "object:1146", | |
| "alias": "/.*Back.*/", | |
| "transform": "negative-Y" | |
| } | |
| ], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "sum(haproxy_backend_current_queue{job=~\"$job\",route=~\"$route\"}) by (job, route)", | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "Current queue {{ job }} - {{ route }}", | |
| "metric": "", | |
| "refId": "B", | |
| "step": 240 | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeRegions": [], | |
| "timeShift": null, | |
| "title": "Back - Queued requests not assigned to any server", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": true, | |
| "sort": 2, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "buckets": null, | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "$$hashKey": "object:1159", | |
| "format": "short", | |
| "label": "- back / + front", | |
| "logBase": 1, | |
| "show": true | |
| }, | |
| { | |
| "$$hashKey": "object:1160", | |
| "format": "short", | |
| "logBase": 1, | |
| "min": 0, | |
| "show": false | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false | |
| } | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": null, | |
| "description": "Avg. HTTP queue time for last 1024 successful connections.", | |
| "editable": true, | |
| "error": false, | |
| "fieldConfig": { | |
| "defaults": { | |
| "links": [], | |
| "unit": "ms" | |
| }, | |
| "overrides": [] | |
| }, | |
| "fill": 0, | |
| "fillGradient": 0, | |
| "grid": {}, | |
| "gridPos": { | |
| "h": 13, | |
| "w": 12, | |
| "x": 12, | |
| "y": 43 | |
| }, | |
| "hiddenSeries": false, | |
| "id": 32, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": true, | |
| "current": true, | |
| "max": true, | |
| "min": true, | |
| "rightSide": false, | |
| "show": true, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "maxPerRow": 2, | |
| "nullPointMode": "null", | |
| "options": { | |
| "alertThreshold": true | |
| }, | |
| "percentage": false, | |
| "pluginVersion": "7.5.15", | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PdHybW0nz" | |
| }, | |
| "exemplar": true, | |
| "expr": "avg by (job,route) (max_over_time(haproxy_backend_http_average_queue_latency_milliseconds{job=~\"$job\", route=~\"$route\"}[$interval]) or max_over_time(haproxy_backend_http_average_queue_latency_milliseconds{job=~\"$job\", route=~\"$route\"}[5m]))", | |
| "interval": "$interval", | |
| "intervalFactor": 1, | |
| "legendFormat": "Max {{ job }} - {{ route }}", | |
| "metric": "", | |
| "refId": "A", | |
| "step": 240 | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeRegions": [], | |
| "timeShift": null, | |
| "title": "Queue time", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": false, | |
| "sort": 0, | |
| "value_type": "cumulative" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "buckets": null, | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "$$hashKey": "object:1157", | |
| "format": "ms", | |
| "label": "requests", | |
| "logBase": 1, | |
| "min": 0, | |
| "show": true | |
| }, | |
| { | |
| "$$hashKey": "object:1158", | |
| "format": "short", | |
| "logBase": 1, | |
| "min": 0, | |
| "show": false | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false | |
| } | |
| } | |
| ], | |
| "refresh": false, | |
| "schemaVersion": 27, | |
| "style": "dark", | |
| "tags": [], | |
| "templating": { | |
| "list": [ | |
| { | |
| "allValue": null, | |
| "current": { | |
| "selected": false, | |
| "text": [ | |
| "router-internal-default" | |
| ], | |
| "value": [ | |
| "router-internal-default" | |
| ] | |
| }, | |
| "datasource": null, | |
| "definition": "label_values(haproxy_server_up, job)", | |
| "description": null, | |
| "error": null, | |
| "hide": 0, | |
| "includeAll": true, | |
| "label": "", | |
| "multi": true, | |
| "name": "job", | |
| "options": [], | |
| "query": { | |
| "query": "label_values(haproxy_server_up, job)", | |
| "refId": "StandardVariableQuery" | |
| }, | |
| "refresh": 1, | |
| "regex": "", | |
| "skipUrlSync": false, | |
| "sort": 1, | |
| "tagValuesQuery": "", | |
| "tags": [], | |
| "tagsQuery": "", | |
| "type": "query", | |
| "useTags": false | |
| }, | |
| { | |
| "allValue": null, | |
| "current": { | |
| "selected": false, | |
| "text": [ | |
| "All" | |
| ], | |
| "value": [ | |
| "$__all" | |
| ] | |
| }, | |
| "datasource": null, | |
| "definition": "label_values(haproxy_server_up{job=\"$job\"}, namespace)", | |
| "description": null, | |
| "error": null, | |
| "hide": 0, | |
| "includeAll": true, | |
| "label": "", | |
| "multi": true, | |
| "name": "namespace", | |
| "options": [], | |
| "query": { | |
| "query": "label_values(haproxy_server_up{job=\"$job\"}, namespace)", | |
| "refId": "StandardVariableQuery" | |
| }, | |
| "refresh": 2, | |
| "regex": "", | |
| "skipUrlSync": false, | |
| "sort": 1, | |
| "tagValuesQuery": "", | |
| "tags": [], | |
| "tagsQuery": "", | |
| "type": "query", | |
| "useTags": false | |
| }, | |
| { | |
| "allValue": null, | |
| "current": { | |
| "selected": false, | |
| "text": [ | |
| "All" | |
| ], | |
| "value": [ | |
| "$__all" | |
| ] | |
| }, | |
| "datasource": null, | |
| "definition": "label_values(haproxy_server_up{job=\"$job\", namespace=\"$namespace\"}, route)", | |
| "description": null, | |
| "error": null, | |
| "hide": 0, | |
| "includeAll": true, | |
| "label": "route", | |
| "multi": true, | |
| "name": "route", | |
| "options": [], | |
| "query": { | |
| "query": "label_values(haproxy_server_up{job=\"$job\", namespace=\"$namespace\"}, route)", | |
| "refId": "StandardVariableQuery" | |
| }, | |
| "refresh": 1, | |
| "regex": "", | |
| "skipUrlSync": false, | |
| "sort": 1, | |
| "tagValuesQuery": "", | |
| "tags": [], | |
| "tagsQuery": "", | |
| "type": "query", | |
| "useTags": false | |
| }, | |
| { | |
| "allValue": null, | |
| "current": { | |
| "selected": false, | |
| "text": [ | |
| "5xx" | |
| ], | |
| "value": [ | |
| "5xx" | |
| ] | |
| }, | |
| "datasource": null, | |
| "definition": "haproxy_frontend_http_responses_total", | |
| "description": null, | |
| "error": null, | |
| "hide": 0, | |
| "includeAll": true, | |
| "label": "HTTP Code", | |
| "multi": true, | |
| "name": "code", | |
| "options": [], | |
| "query": { | |
| "query": "haproxy_frontend_http_responses_total", | |
| "refId": "StandardVariableQuery" | |
| }, | |
| "refresh": 1, | |
| "regex": "/.*code=\"([^\"]*).*/", | |
| "skipUrlSync": false, | |
| "sort": 1, | |
| "tagValuesQuery": "", | |
| "tags": [], | |
| "tagsQuery": "", | |
| "type": "query", | |
| "useTags": false | |
| }, | |
| { | |
| "auto": true, | |
| "auto_count": 30, | |
| "auto_min": "10s", | |
| "current": { | |
| "selected": true, | |
| "text": "1h", | |
| "value": "1h" | |
| }, | |
| "description": null, | |
| "error": null, | |
| "hide": 0, | |
| "label": "Interval", | |
| "name": "interval", | |
| "options": [ | |
| { | |
| "selected": false, | |
| "text": "auto", | |
| "value": "$__auto_interval_interval" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "30s", | |
| "value": "30s" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "1m", | |
| "value": "1m" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "5m", | |
| "value": "5m" | |
| }, | |
| { | |
| "selected": true, | |
| "text": "1h", | |
| "value": "1h" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "6h", | |
| "value": "6h" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "1d", | |
| "value": "1d" | |
| } | |
| ], | |
| "query": "30s,1m,5m,1h,6h,1d", | |
| "queryValue": "", | |
| "refresh": 2, | |
| "skipUrlSync": false, | |
| "type": "interval" | |
| } | |
| ] | |
| }, | |
| "time": { | |
| "from": "now-6h", | |
| "to": "now" | |
| }, | |
| "timepicker": { | |
| "refresh_intervals": [ | |
| "5s", | |
| "10s", | |
| "30s", | |
| "1m", | |
| "5m", | |
| "15m", | |
| "30m", | |
| "1h", | |
| "2h", | |
| "1d" | |
| ], | |
| "time_options": [ | |
| "5m", | |
| "15m", | |
| "1h", | |
| "6h", | |
| "12h", | |
| "24h", | |
| "2d", | |
| "7d", | |
| "30d" | |
| ] | |
| }, | |
| "timezone": "browser", | |
| "title": "HAProxy TESTE by route", | |
| "uid": "dfe5de1d0420a0941c119ba9db8a04a98bbd0333", | |
| "version": 5 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment