Created
July 7, 2021 02:15
-
-
Save nicksherron/22fe29d279f8668fa0b00ffde3f32960 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
| { | |
| "__inputs": [ | |
| { | |
| "name": "DS_LOKI", | |
| "label": "Loki", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "loki", | |
| "pluginName": "Loki" | |
| }, | |
| { | |
| "name": "DS_PROMETHEUS", | |
| "label": "Prometheus", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "prometheus", | |
| "pluginName": "Prometheus" | |
| } | |
| ], | |
| "__requires": [ | |
| { | |
| "type": "grafana", | |
| "id": "grafana", | |
| "name": "Grafana", | |
| "version": "8.0.1" | |
| }, | |
| { | |
| "type": "panel", | |
| "id": "heatmap", | |
| "name": "Heatmap", | |
| "version": "" | |
| }, | |
| { | |
| "type": "panel", | |
| "id": "logs", | |
| "name": "Logs", | |
| "version": "" | |
| }, | |
| { | |
| "type": "datasource", | |
| "id": "loki", | |
| "name": "Loki", | |
| "version": "1.0.0" | |
| }, | |
| { | |
| "type": "datasource", | |
| "id": "prometheus", | |
| "name": "Prometheus", | |
| "version": "1.0.0" | |
| }, | |
| { | |
| "type": "panel", | |
| "id": "stat", | |
| "name": "Stat", | |
| "version": "" | |
| }, | |
| { | |
| "type": "panel", | |
| "id": "timeseries", | |
| "name": "Time series", | |
| "version": "" | |
| } | |
| ], | |
| "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": 0, | |
| "id": null, | |
| "iteration": 1625624077539, | |
| "links": [], | |
| "panels": [ | |
| { | |
| "collapsed": false, | |
| "datasource": null, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "id": 31, | |
| "panels": [], | |
| "title": "container logs", | |
| "type": "row" | |
| }, | |
| { | |
| "datasource": "${DS_LOKI}", | |
| "gridPos": { | |
| "h": 10, | |
| "w": 24, | |
| "x": 0, | |
| "y": 1 | |
| }, | |
| "id": 29, | |
| "options": { | |
| "dedupStrategy": "none", | |
| "enableLogDetails": true, | |
| "showLabels": false, | |
| "showTime": false, | |
| "sortOrder": "Descending", | |
| "wrapLogMessage": false | |
| }, | |
| "targets": [ | |
| { | |
| "expr": "{container=~\"$container\"}", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "logs", | |
| "type": "logs" | |
| }, | |
| { | |
| "collapsed": false, | |
| "datasource": null, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 11 | |
| }, | |
| "id": 39, | |
| "panels": [], | |
| "repeat": "service_name", | |
| "title": "metrics", | |
| "type": "row" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "percentage", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| } | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 3, | |
| "w": 4, | |
| "x": 0, | |
| "y": 12 | |
| }, | |
| "id": 8, | |
| "interval": "30s", | |
| "options": { | |
| "colorMode": "value", | |
| "graphMode": "area", | |
| "justifyMode": "auto", | |
| "orientation": "auto", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "sum" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "text": { | |
| "titleSize": 1 | |
| }, | |
| "textMode": "auto" | |
| }, | |
| "pluginVersion": "8.0.1", | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum(increase(gin_gonic_requests_total{service_name=~\"$service_name\"}[$__interval]))", | |
| "interval": "", | |
| "legendFormat": "", | |
| "queryType": "randomWalk", | |
| "refId": "A" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "title": "Total Requests", | |
| "type": "stat" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "percentage", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "bytes" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 3, | |
| "w": 4, | |
| "x": 4, | |
| "y": 12 | |
| }, | |
| "id": 9, | |
| "options": { | |
| "colorMode": "value", | |
| "graphMode": "area", | |
| "justifyMode": "auto", | |
| "orientation": "auto", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "sum" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "text": { | |
| "titleSize": 1 | |
| }, | |
| "textMode": "auto" | |
| }, | |
| "pluginVersion": "8.0.1", | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum(increase(gin_gonic_request_size_bytes_sum{service_name=~\"$service_name\"}[$__rate_interval]))", | |
| "interval": "", | |
| "legendFormat": "", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Total Response bytes", | |
| "type": "stat" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "decimals": 0, | |
| "mappings": [], | |
| "min": 1, | |
| "thresholds": { | |
| "mode": "percentage", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "none" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 3, | |
| "w": 4, | |
| "x": 8, | |
| "y": 12 | |
| }, | |
| "id": 10, | |
| "options": { | |
| "colorMode": "value", | |
| "graphMode": "area", | |
| "justifyMode": "auto", | |
| "orientation": "auto", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "text": { | |
| "titleSize": 1 | |
| }, | |
| "textMode": "auto" | |
| }, | |
| "pluginVersion": "8.0.1", | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum(gorm_dbstats_open_connections{service_name=~\"$service_name\"})", | |
| "interval": "", | |
| "legendFormat": "", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Gorm open connections", | |
| "type": "stat" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "percentage", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "none" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 3, | |
| "w": 4, | |
| "x": 12, | |
| "y": 12 | |
| }, | |
| "id": 11, | |
| "options": { | |
| "colorMode": "value", | |
| "graphMode": "area", | |
| "justifyMode": "auto", | |
| "orientation": "auto", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "text": { | |
| "titleSize": 1 | |
| }, | |
| "textMode": "auto" | |
| }, | |
| "pluginVersion": "8.0.1", | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum(gorm_dbstats_in_use{service_name=~\"$service_name\"})", | |
| "format": "time_series", | |
| "interval": "", | |
| "legendFormat": "", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Gorm connections in use", | |
| "type": "stat" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "percentage", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "none" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 3, | |
| "w": 4, | |
| "x": 16, | |
| "y": 12 | |
| }, | |
| "id": 21, | |
| "options": { | |
| "colorMode": "value", | |
| "graphMode": "area", | |
| "justifyMode": "auto", | |
| "orientation": "auto", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "text": { | |
| "titleSize": 1 | |
| }, | |
| "textMode": "auto" | |
| }, | |
| "pluginVersion": "8.0.1", | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum( gorm_dbstats_idle{service_name=~\"$service_name\"})", | |
| "interval": "", | |
| "legendFormat": "", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Gorm idle connections", | |
| "type": "stat" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "percentage", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "none" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 3, | |
| "w": 4, | |
| "x": 20, | |
| "y": 12 | |
| }, | |
| "id": 20, | |
| "options": { | |
| "colorMode": "value", | |
| "graphMode": "area", | |
| "justifyMode": "auto", | |
| "orientation": "auto", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "text": { | |
| "titleSize": 1 | |
| }, | |
| "textMode": "auto" | |
| }, | |
| "pluginVersion": "8.0.1", | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum(gorm_dbstats_max_open_connections{service_name=~\"$service_name\"})", | |
| "format": "time_series", | |
| "interval": "", | |
| "legendFormat": "", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Gorm max open connections", | |
| "type": "stat" | |
| }, | |
| { | |
| "cards": { | |
| "cardPadding": null, | |
| "cardRound": null | |
| }, | |
| "color": { | |
| "cardColor": "#73BF69", | |
| "colorScale": "sqrt", | |
| "colorScheme": "interpolateBuPu", | |
| "exponent": 0.4, | |
| "min": null, | |
| "mode": "spectrum" | |
| }, | |
| "dataFormat": "tsbuckets", | |
| "datasource": "${DS_PROMETHEUS}", | |
| "description": "", | |
| "gridPos": { | |
| "h": 7, | |
| "w": 8, | |
| "x": 0, | |
| "y": 15 | |
| }, | |
| "heatmap": {}, | |
| "hideTimeOverride": false, | |
| "hideZeroBuckets": true, | |
| "highlightCards": true, | |
| "id": 35, | |
| "legend": { | |
| "show": true | |
| }, | |
| "pluginVersion": "7.2.0", | |
| "reverseYBuckets": false, | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum(rate(gin_gonic_request_duration_seconds_bucket{method=\"POST\"}[1m])) by (le)", | |
| "format": "heatmap", | |
| "interval": "", | |
| "intervalFactor": 4, | |
| "legendFormat": "{{ le }}", | |
| "refId": "A" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Request duration method = \"POST\" Heatmap", | |
| "tooltip": { | |
| "show": true, | |
| "showHistogram": false | |
| }, | |
| "type": "heatmap", | |
| "xAxis": { | |
| "show": true | |
| }, | |
| "xBucketNumber": null, | |
| "xBucketSize": null, | |
| "yAxis": { | |
| "decimals": null, | |
| "format": "s", | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true, | |
| "splitFactor": null | |
| }, | |
| "yBucketBound": "auto", | |
| "yBucketNumber": null, | |
| "yBucketSize": null | |
| }, | |
| { | |
| "cards": { | |
| "cardPadding": null, | |
| "cardRound": null | |
| }, | |
| "color": { | |
| "cardColor": "#73BF69", | |
| "colorScale": "sqrt", | |
| "colorScheme": "interpolateBuPu", | |
| "exponent": 0.4, | |
| "min": null, | |
| "mode": "spectrum" | |
| }, | |
| "dataFormat": "tsbuckets", | |
| "datasource": "${DS_PROMETHEUS}", | |
| "description": "", | |
| "gridPos": { | |
| "h": 7, | |
| "w": 8, | |
| "x": 8, | |
| "y": 15 | |
| }, | |
| "heatmap": {}, | |
| "hideTimeOverride": false, | |
| "hideZeroBuckets": true, | |
| "highlightCards": true, | |
| "id": 33, | |
| "legend": { | |
| "show": true | |
| }, | |
| "pluginVersion": "7.2.0", | |
| "reverseYBuckets": false, | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum(rate(gin_gonic_request_duration_seconds_bucket{method=\"GET\"}[1m])) by (le)", | |
| "format": "heatmap", | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "{{ le }}", | |
| "refId": "A" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Request duration method = \"GET\" Heatmap", | |
| "tooltip": { | |
| "show": true, | |
| "showHistogram": false | |
| }, | |
| "type": "heatmap", | |
| "xAxis": { | |
| "show": true | |
| }, | |
| "xBucketNumber": null, | |
| "xBucketSize": null, | |
| "yAxis": { | |
| "decimals": null, | |
| "format": "s", | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true, | |
| "splitFactor": null | |
| }, | |
| "yBucketBound": "auto", | |
| "yBucketNumber": null, | |
| "yBucketSize": null | |
| }, | |
| { | |
| "cards": { | |
| "cardPadding": null, | |
| "cardRound": null | |
| }, | |
| "color": { | |
| "cardColor": "#73BF69", | |
| "colorScale": "sqrt", | |
| "colorScheme": "interpolateBuPu", | |
| "exponent": 0.4, | |
| "min": null, | |
| "mode": "spectrum" | |
| }, | |
| "dataFormat": "tsbuckets", | |
| "datasource": "${DS_PROMETHEUS}", | |
| "description": "", | |
| "gridPos": { | |
| "h": 7, | |
| "w": 8, | |
| "x": 16, | |
| "y": 15 | |
| }, | |
| "heatmap": {}, | |
| "hideTimeOverride": false, | |
| "hideZeroBuckets": true, | |
| "highlightCards": true, | |
| "id": 37, | |
| "legend": { | |
| "show": true | |
| }, | |
| "pluginVersion": "7.2.0", | |
| "reverseYBuckets": false, | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum(rate(gin_gonic_request_duration_seconds_bucket{method=\"PUT\"}[1m])) by (le)", | |
| "format": "heatmap", | |
| "interval": "", | |
| "intervalFactor": 4, | |
| "legendFormat": "{{ le }}", | |
| "refId": "A" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Request duration method = \"PUT\" Heatmap", | |
| "tooltip": { | |
| "show": true, | |
| "showHistogram": false | |
| }, | |
| "type": "heatmap", | |
| "xAxis": { | |
| "show": true | |
| }, | |
| "xBucketNumber": null, | |
| "xBucketSize": null, | |
| "yAxis": { | |
| "decimals": null, | |
| "format": "s", | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true, | |
| "splitFactor": null | |
| }, | |
| "yBucketBound": "auto", | |
| "yBucketNumber": null, | |
| "yBucketSize": null | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "drawStyle": "line", | |
| "fillOpacity": 5, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "lineInterpolation": "linear", | |
| "lineStyle": { | |
| "fill": "solid" | |
| }, | |
| "lineWidth": 1, | |
| "pointSize": 5, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "auto", | |
| "spanNulls": true, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "normal" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "s" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 7, | |
| "w": 12, | |
| "x": 0, | |
| "y": 22 | |
| }, | |
| "id": 16, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom" | |
| }, | |
| "tooltip": { | |
| "mode": "multi" | |
| } | |
| }, | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": " sum(rate(gin_gonic_request_duration_seconds_sum{service_name=~\"$service_name\"}[5m]))\n / sum(rate(gin_gonic_request_duration_seconds_count{service_name=~\"$service_name\"}[5m]))", | |
| "interval": "", | |
| "legendFormat": "{{instance}}", | |
| "queryType": "randomWalk", | |
| "refId": "A" | |
| }, | |
| { | |
| "exemplar": true, | |
| "expr": "histogram_quantile(0.95, sum(rate(gin_gonic_request_duration_seconds_bucket{service_name=~\"$service_name\"}[5m])) by (le))", | |
| "hide": false, | |
| "interval": "", | |
| "legendFormat": "{{instance}} top .95", | |
| "refId": "B" | |
| } | |
| ], | |
| "title": "Request latency", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "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": "normal" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| } | |
| }, | |
| "overrides": [ | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "gorm_dbstats_wait_duration" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "unit", | |
| "value": "ns" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| "gridPos": { | |
| "h": 7, | |
| "w": 12, | |
| "x": 12, | |
| "y": 22 | |
| }, | |
| "id": 25, | |
| "options": { | |
| "legend": { | |
| "calcs": [ | |
| "last" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom" | |
| }, | |
| "tooltip": { | |
| "mode": "single" | |
| } | |
| }, | |
| "pluginVersion": "8.0.1", | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum(gorm_dbstats_wait_count{service_name=~\"$service_name\"})", | |
| "hide": false, | |
| "interval": "", | |
| "legendFormat": "gorm_dbstats_wait_count", | |
| "refId": "G" | |
| }, | |
| { | |
| "exemplar": true, | |
| "expr": "sum(gorm_dbstats_wait_duration{service_name=~\"$service_name\"})", | |
| "hide": false, | |
| "interval": "", | |
| "legendFormat": "gorm_dbstats_wait_duration", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Gorm connection waiting", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "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": true, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "reqps" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 7, | |
| "w": 12, | |
| "x": 0, | |
| "y": 29 | |
| }, | |
| "id": 17, | |
| "interval": "30s", | |
| "maxDataPoints": null, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom" | |
| }, | |
| "tooltip": { | |
| "mode": "single" | |
| } | |
| }, | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum(rate(gin_gonic_requests_total{service_name=~\"$service_name\"}[5m]))", | |
| "hide": false, | |
| "instant": false, | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "{{instance}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Requests per second per instance", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "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": true, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| } | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 7, | |
| "w": 12, | |
| "x": 12, | |
| "y": 29 | |
| }, | |
| "id": 18, | |
| "interval": "30s", | |
| "maxDataPoints": null, | |
| "options": { | |
| "legend": { | |
| "calcs": [ | |
| "sum" | |
| ], | |
| "displayMode": "list", | |
| "placement": "bottom" | |
| }, | |
| "tooltip": { | |
| "mode": "single" | |
| } | |
| }, | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "sum(increase(gin_gonic_requests_total{service_name=~\"$service_name\"}[$__interval]))", | |
| "hide": false, | |
| "instant": false, | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "total", | |
| "refId": "A" | |
| }, | |
| { | |
| "exemplar": true, | |
| "expr": "sum(increase(gin_gonic_requests_total{service_name=~\"$service_name\",code=~\"2.*\"}[$__interval]))", | |
| "hide": false, | |
| "instant": false, | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "2xx", | |
| "refId": "B" | |
| }, | |
| { | |
| "exemplar": true, | |
| "expr": "sum(increase(gin_gonic_requests_total{service_name=~\"$service_name\",code=~\"3.*\"}[$__interval]))", | |
| "hide": false, | |
| "instant": false, | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "3xx", | |
| "refId": "C" | |
| }, | |
| { | |
| "exemplar": true, | |
| "expr": "sum(increase(gin_gonic_requests_total{service_name=~\"$service_name\",code=~\"4.*\"}[$__interval]))", | |
| "hide": false, | |
| "instant": false, | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "4xx", | |
| "refId": "D" | |
| }, | |
| { | |
| "exemplar": true, | |
| "expr": "sum(increase(gin_gonic_requests_total{service_name=~\"$service_name\",code=~\"5.*\"}[$__interval]))", | |
| "hide": false, | |
| "instant": false, | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "5xx", | |
| "refId": "E" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Requests Total", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "collapsed": false, | |
| "datasource": "${DS_PROMETHEUS}", | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 108 | |
| }, | |
| "id": 13, | |
| "panels": [], | |
| "repeat": "service_name", | |
| "title": "Per instance", | |
| "type": "row" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "drawStyle": "line", | |
| "fillOpacity": 5, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "lineInterpolation": "linear", | |
| "lineWidth": 1, | |
| "pointSize": 5, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "auto", | |
| "spanNulls": true, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "s" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 7, | |
| "w": 8, | |
| "x": 0, | |
| "y": 109 | |
| }, | |
| "id": 6, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom" | |
| }, | |
| "tooltip": { | |
| "mode": "single" | |
| } | |
| }, | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": " rate(gin_gonic_request_duration_seconds_sum{service_name=~\"$service_name\"}[5m]) /rate(gin_gonic_request_duration_seconds_count{service_name=~\"$service_name\"}[5m])", | |
| "interval": "", | |
| "legendFormat": "{{instance}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Request Duration per instance", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "drawStyle": "line", | |
| "fillOpacity": 5, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "lineInterpolation": "linear", | |
| "lineWidth": 1, | |
| "pointSize": 5, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "auto", | |
| "spanNulls": true, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| } | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 7, | |
| "w": 8, | |
| "x": 8, | |
| "y": 109 | |
| }, | |
| "id": 4, | |
| "interval": "30s", | |
| "maxDataPoints": null, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom" | |
| }, | |
| "tooltip": { | |
| "mode": "single" | |
| } | |
| }, | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "rate(gin_gonic_requests_total{service_name=~\"$service_name\"}[5m])", | |
| "hide": false, | |
| "instant": false, | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "{{instance}}", | |
| "refId": "A" | |
| }, | |
| { | |
| "exemplar": true, | |
| "expr": "rate(gin_gonic_requests_total{service_name=~\"$service_name\"}[1m])", | |
| "hide": true, | |
| "instant": false, | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "{{kubernetes_pod_name}}", | |
| "refId": "B" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Requests per second per instance", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": "${DS_PROMETHEUS}", | |
| "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": true, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| } | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 7, | |
| "w": 8, | |
| "x": 16, | |
| "y": 109 | |
| }, | |
| "id": 19, | |
| "interval": "120s", | |
| "maxDataPoints": null, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom" | |
| }, | |
| "tooltip": { | |
| "mode": "single" | |
| } | |
| }, | |
| "targets": [ | |
| { | |
| "exemplar": true, | |
| "expr": "max_over_time(gin_gonic_requests_total{service_name=~\"$service_name\"}[5m])", | |
| "hide": false, | |
| "instant": false, | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "{{instance}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Requests Total Per Instance", | |
| "type": "timeseries" | |
| } | |
| ], | |
| "refresh": "5s", | |
| "schemaVersion": 30, | |
| "style": "dark", | |
| "tags": [], | |
| "templating": { | |
| "list": [ | |
| { | |
| "allValue": null, | |
| "current": {}, | |
| "datasource": "${DS_PROMETHEUS}", | |
| "definition": "label_values(service_name)", | |
| "description": null, | |
| "error": null, | |
| "hide": 0, | |
| "includeAll": true, | |
| "label": null, | |
| "multi": false, | |
| "name": "service_name", | |
| "options": [], | |
| "query": { | |
| "query": "label_values(service_name)", | |
| "refId": "StandardVariableQuery" | |
| }, | |
| "refresh": 1, | |
| "regex": "", | |
| "skipUrlSync": false, | |
| "sort": 0, | |
| "type": "query" | |
| }, | |
| { | |
| "allValue": null, | |
| "current": {}, | |
| "datasource": "${DS_LOKI}", | |
| "definition": "label_values(container)", | |
| "description": null, | |
| "error": null, | |
| "hide": 0, | |
| "includeAll": true, | |
| "label": "container_logs", | |
| "multi": true, | |
| "name": "container", | |
| "options": [], | |
| "query": "label_values(container)", | |
| "refresh": 1, | |
| "regex": "", | |
| "skipUrlSync": false, | |
| "sort": 0, | |
| "type": "query" | |
| } | |
| ] | |
| }, | |
| "time": { | |
| "from": "now-30m", | |
| "to": "now" | |
| }, | |
| "timepicker": {}, | |
| "timezone": "", | |
| "title": "astur", | |
| "uid": "I6kVMmink", | |
| "version": 1 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment