Skip to content

Instantly share code, notes, and snippets.

@DarthSim
Created June 10, 2020 14:26
Show Gist options
  • Save DarthSim/e7b0dc8e54a71dea047a6fc367ef54ea to your computer and use it in GitHub Desktop.
Save DarthSim/e7b0dc8e54a71dea047a6fc367ef54ea to your computer and use it in GitHub Desktop.

Revisions

  1. DarthSim created this gist Jun 10, 2020.
    1,330 changes: 1,330 additions & 0 deletions imgproxy.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,1330 @@
    {
    "__inputs": [
    {
    "name": "DS_PROMETHEUS",
    "label": "Prometheus",
    "description": "",
    "type": "datasource",
    "pluginId": "prometheus",
    "pluginName": "Prometheus"
    }
    ],
    "__requires": [
    {
    "type": "grafana",
    "id": "grafana",
    "name": "Grafana",
    "version": "6.6.2"
    },
    {
    "type": "panel",
    "id": "graph",
    "name": "Graph",
    "version": ""
    },
    {
    "type": "datasource",
    "id": "prometheus",
    "name": "Prometheus",
    "version": "1.0.0"
    }
    ],
    "annotations": {
    "list": [
    {
    "builtIn": 1,
    "datasource": "-- Grafana --",
    "enable": true,
    "hide": true,
    "iconColor": "rgba(0, 211, 255, 1)",
    "limit": 100,
    "name": "Annotations & Alerts",
    "showIn": 0,
    "type": "dashboard"
    }
    ]
    },
    "editable": true,
    "gnetId": null,
    "graphTooltip": 0,
    "id": null,
    "iteration": 1591791919926,
    "links": [],
    "panels": [
    {
    "aliasColors": {},
    "bars": false,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 9,
    "w": 12,
    "x": 0,
    "y": 0
    },
    "hiddenSeries": false,
    "id": 6,
    "legend": {
    "alignAsTable": true,
    "avg": true,
    "current": true,
    "max": false,
    "min": false,
    "rightSide": true,
    "show": true,
    "total": false,
    "values": true
    },
    "lines": true,
    "linewidth": 1,
    "links": [],
    "nullPointMode": "null",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [],
    "spaceLength": 10,
    "stack": false,
    "steppedLine": false,
    "targets": [
    {
    "expr": "sum(increase(requests_total{app=\"$application\"}[1m]))",
    "format": "time_series",
    "interval": "1m",
    "intervalFactor": 1,
    "legendFormat": "Total",
    "refId": "A"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "Requests rate (rpm)",
    "tooltip": {
    "shared": true,
    "sort": 0,
    "value_type": "individual"
    },
    "type": "graph",
    "xaxis": {
    "buckets": null,
    "mode": "time",
    "name": null,
    "show": true,
    "values": []
    },
    "yaxes": [
    {
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    },
    {
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    }
    ],
    "yaxis": {
    "align": false,
    "alignLevel": null
    }
    },
    {
    "aliasColors": {},
    "bars": true,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 9,
    "w": 12,
    "x": 12,
    "y": 0
    },
    "hiddenSeries": false,
    "id": 4,
    "legend": {
    "alignAsTable": true,
    "avg": true,
    "current": true,
    "hideEmpty": true,
    "hideZero": false,
    "max": false,
    "min": false,
    "rightSide": true,
    "show": true,
    "total": true,
    "values": true
    },
    "lines": false,
    "linewidth": 1,
    "links": [],
    "nullPointMode": "null",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [],
    "spaceLength": 10,
    "stack": true,
    "steppedLine": false,
    "targets": [
    {
    "expr": "sum(increase(errors_total{app=\"$application\"}[1m])) by (type)",
    "format": "time_series",
    "interval": "1m",
    "intervalFactor": 1,
    "legendFormat": "{{type}}",
    "refId": "B"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "Errors count by type",
    "tooltip": {
    "shared": true,
    "sort": 0,
    "value_type": "individual"
    },
    "type": "graph",
    "xaxis": {
    "buckets": null,
    "mode": "time",
    "name": null,
    "show": true,
    "values": []
    },
    "yaxes": [
    {
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    },
    {
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    }
    ],
    "yaxis": {
    "align": false,
    "alignLevel": null
    }
    },
    {
    "aliasColors": {},
    "bars": false,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 9,
    "w": 12,
    "x": 0,
    "y": 9
    },
    "hiddenSeries": false,
    "id": 2,
    "legend": {
    "alignAsTable": true,
    "avg": true,
    "current": true,
    "hideEmpty": false,
    "max": false,
    "min": false,
    "rightSide": true,
    "show": true,
    "sideWidth": null,
    "total": false,
    "values": true
    },
    "lines": true,
    "linewidth": 1,
    "links": [],
    "nullPointMode": "null",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [],
    "spaceLength": 10,
    "stack": false,
    "steppedLine": false,
    "targets": [
    {
    "expr": "sum(rate(request_duration_seconds_sum{app=\"$application\"}[1m]))\n/\nsum(rate(request_duration_seconds_count{app=\"$application\"}[1m]))",
    "format": "time_series",
    "intervalFactor": 2,
    "legendFormat": "Total",
    "refId": "A"
    },
    {
    "expr": "sum(rate(processing_duration_seconds_sum{app=\"$application\"}[1m]))\n/\nsum(rate(processing_duration_seconds_count{app=\"$application\"}[1m]))",
    "format": "time_series",
    "intervalFactor": 2,
    "legendFormat": "Processing",
    "refId": "B"
    },
    {
    "expr": "sum(rate(download_duration_seconds_sum{app=\"$application\"}[1m]))\n/\nsum(rate(download_duration_seconds_count{app=\"$application\"}[1m]))",
    "format": "time_series",
    "intervalFactor": 2,
    "legendFormat": "Downloading",
    "refId": "C"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "Average response time",
    "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": 1,
    "max": null,
    "min": null,
    "show": true
    },
    {
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    }
    ],
    "yaxis": {
    "align": false,
    "alignLevel": null
    }
    },
    {
    "aliasColors": {},
    "bars": false,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 9,
    "w": 12,
    "x": 12,
    "y": 9
    },
    "hiddenSeries": false,
    "id": 8,
    "legend": {
    "alignAsTable": true,
    "avg": true,
    "current": true,
    "max": false,
    "min": false,
    "rightSide": true,
    "show": true,
    "total": false,
    "values": true
    },
    "lines": true,
    "linewidth": 1,
    "links": [],
    "nullPointMode": "null",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [],
    "spaceLength": 10,
    "stack": false,
    "steppedLine": false,
    "targets": [
    {
    "expr": "histogram_quantile(0.95, sum(rate(request_duration_seconds_bucket{app=\"$application\"}[1m])) by (le)) ",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "Total",
    "refId": "A"
    },
    {
    "expr": "histogram_quantile(0.95, sum(rate(processing_duration_seconds_bucket{app=\"$application\"}[1m])) by (le)) ",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "Processing",
    "refId": "C"
    },
    {
    "expr": "histogram_quantile(0.95, sum(rate(download_duration_seconds_bucket{app=\"$application\"}[1m])) by (le)) ",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "Downloading",
    "refId": "B"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "95% response time",
    "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": 1,
    "max": null,
    "min": null,
    "show": true
    },
    {
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    }
    ],
    "yaxis": {
    "align": false,
    "alignLevel": null
    }
    },
    {
    "aliasColors": {},
    "bars": false,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 9,
    "w": 24,
    "x": 0,
    "y": 18
    },
    "hiddenSeries": false,
    "id": 12,
    "legend": {
    "alignAsTable": true,
    "avg": true,
    "current": true,
    "max": true,
    "min": true,
    "rightSide": true,
    "show": true,
    "total": false,
    "values": true
    },
    "lines": true,
    "linewidth": 2,
    "links": [],
    "nullPointMode": "null",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [
    {
    "alias": "Total",
    "lines": false,
    "stack": false
    }
    ],
    "spaceLength": 10,
    "stack": true,
    "steppedLine": false,
    "targets": [
    {
    "expr": "sum (container_memory_working_set_bytes{image!=\"\",name=~\"^k8s_.*\",namespace=\"$application\"})",
    "format": "time_series",
    "hide": false,
    "intervalFactor": 1,
    "legendFormat": "Total",
    "refId": "B"
    },
    {
    "expr": "sum (container_memory_working_set_bytes{image!=\"\",name=~\"^k8s_.*\",namespace=\"$application\"}) by (pod_name)",
    "format": "time_series",
    "hide": false,
    "instant": false,
    "interval": "",
    "intervalFactor": 1,
    "legendFormat": "{{pod_name}}",
    "refId": "A"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "Pod memory usage",
    "tooltip": {
    "shared": true,
    "sort": 2,
    "value_type": "individual"
    },
    "type": "graph",
    "xaxis": {
    "buckets": null,
    "mode": "time",
    "name": null,
    "show": true,
    "values": []
    },
    "yaxes": [
    {
    "format": "bytes",
    "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": {},
    "bars": false,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 9,
    "w": 24,
    "x": 0,
    "y": 27
    },
    "hiddenSeries": false,
    "id": 25,
    "legend": {
    "alignAsTable": true,
    "avg": true,
    "current": true,
    "max": true,
    "min": true,
    "rightSide": true,
    "show": true,
    "total": false,
    "values": true
    },
    "lines": true,
    "linewidth": 2,
    "links": [],
    "nullPointMode": "null",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [
    {
    "alias": "Total",
    "lines": false,
    "stack": false
    }
    ],
    "spaceLength": 10,
    "stack": true,
    "steppedLine": false,
    "targets": [
    {
    "expr": "sum (process_resident_memory_bytes{app=\"$application\"})",
    "format": "time_series",
    "hide": false,
    "intervalFactor": 1,
    "legendFormat": "Total",
    "refId": "B"
    },
    {
    "expr": "sum (process_resident_memory_bytes{app=\"$application\"}) by (pod)",
    "format": "time_series",
    "hide": false,
    "instant": false,
    "interval": "",
    "intervalFactor": 1,
    "legendFormat": "{{pod}}",
    "refId": "A"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "RSS",
    "tooltip": {
    "shared": true,
    "sort": 2,
    "value_type": "individual"
    },
    "type": "graph",
    "xaxis": {
    "buckets": null,
    "mode": "time",
    "name": null,
    "show": true,
    "values": []
    },
    "yaxes": [
    {
    "format": "bytes",
    "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": {},
    "bars": false,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 8,
    "w": 24,
    "x": 0,
    "y": 36
    },
    "hiddenSeries": false,
    "id": 10,
    "legend": {
    "alignAsTable": true,
    "avg": true,
    "current": true,
    "max": true,
    "min": true,
    "rightSide": true,
    "show": true,
    "total": false,
    "values": true
    },
    "lines": true,
    "linewidth": 2,
    "links": [],
    "nullPointMode": "null",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [],
    "spaceLength": 10,
    "stack": false,
    "steppedLine": false,
    "targets": [
    {
    "expr": "sum (go_memstats_sys_bytes{app=\"$application\"})",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "Sys",
    "refId": "A"
    },
    {
    "expr": "sum (go_memstats_heap_inuse_bytes{app=\"$application\"})",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "HeapInUse",
    "refId": "B"
    },
    {
    "expr": "sum (go_memstats_heap_idle_bytes{app=\"$application\"})",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "HeapIdle",
    "refId": "C"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "Go memory usage",
    "tooltip": {
    "shared": true,
    "sort": 0,
    "value_type": "individual"
    },
    "type": "graph",
    "xaxis": {
    "buckets": null,
    "mode": "time",
    "name": null,
    "show": true,
    "values": []
    },
    "yaxes": [
    {
    "format": "decbytes",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    },
    {
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    }
    ],
    "yaxis": {
    "align": false,
    "alignLevel": null
    }
    },
    {
    "aliasColors": {},
    "bars": false,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 9,
    "w": 24,
    "x": 0,
    "y": 44
    },
    "hiddenSeries": false,
    "id": 22,
    "legend": {
    "alignAsTable": true,
    "avg": true,
    "current": true,
    "max": true,
    "min": false,
    "rightSide": true,
    "show": true,
    "total": false,
    "values": true
    },
    "lines": true,
    "linewidth": 1,
    "links": [],
    "nullPointMode": "null",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [],
    "spaceLength": 10,
    "stack": false,
    "steppedLine": false,
    "targets": [
    {
    "expr": "sum(vips_memory_bytes{app=\"$application\"})",
    "format": "time_series",
    "instant": false,
    "intervalFactor": 1,
    "legendFormat": "Total",
    "refId": "A"
    },
    {
    "expr": "sum(vips_max_memory_bytes{app=\"$application\"})",
    "format": "time_series",
    "instant": false,
    "intervalFactor": 1,
    "legendFormat": "Highwater",
    "refId": "B"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "Vips memory usage",
    "tooltip": {
    "shared": true,
    "sort": 0,
    "value_type": "individual"
    },
    "type": "graph",
    "xaxis": {
    "buckets": null,
    "mode": "time",
    "name": null,
    "show": true,
    "values": []
    },
    "yaxes": [
    {
    "format": "bytes",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    },
    {
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    }
    ],
    "yaxis": {
    "align": false,
    "alignLevel": null
    }
    },
    {
    "aliasColors": {},
    "bars": false,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 9,
    "w": 24,
    "x": 0,
    "y": 53
    },
    "hiddenSeries": false,
    "id": 24,
    "legend": {
    "alignAsTable": true,
    "avg": true,
    "current": true,
    "max": true,
    "min": false,
    "rightSide": true,
    "show": true,
    "total": false,
    "values": true
    },
    "lines": true,
    "linewidth": 1,
    "links": [],
    "nullPointMode": "null",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [],
    "spaceLength": 10,
    "stack": false,
    "steppedLine": false,
    "targets": [
    {
    "expr": "sum(vips_allocs{app=\"$application\"})",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "Total",
    "refId": "A"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "Vips allocs",
    "tooltip": {
    "shared": true,
    "sort": 0,
    "value_type": "individual"
    },
    "type": "graph",
    "xaxis": {
    "buckets": null,
    "mode": "time",
    "name": null,
    "show": true,
    "values": []
    },
    "yaxes": [
    {
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    },
    {
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    }
    ],
    "yaxis": {
    "align": false,
    "alignLevel": null
    }
    },
    {
    "aliasColors": {},
    "bars": false,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "decimals": 2,
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 10,
    "w": 12,
    "x": 0,
    "y": 62
    },
    "hiddenSeries": false,
    "id": 16,
    "legend": {
    "alignAsTable": true,
    "avg": true,
    "current": true,
    "max": true,
    "min": true,
    "rightSide": false,
    "show": true,
    "total": false,
    "values": true
    },
    "lines": true,
    "linewidth": 1,
    "links": [],
    "nullPointMode": "connected",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [],
    "spaceLength": 10,
    "stack": false,
    "steppedLine": false,
    "targets": [
    {
    "expr": "sum(increase(buffer_size_bytes_sum{app=\"$application\"}[1m])) by (type)\n/\nsum(increase(buffer_size_bytes_count{app=\"$application\"}[1m])) by (type)",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "{{type}}",
    "refId": "A"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "Avg buffer size",
    "tooltip": {
    "shared": true,
    "sort": 0,
    "value_type": "individual"
    },
    "type": "graph",
    "xaxis": {
    "buckets": null,
    "mode": "time",
    "name": null,
    "show": true,
    "values": []
    },
    "yaxes": [
    {
    "decimals": 2,
    "format": "bytes",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": "0",
    "show": true
    },
    {
    "decimals": 2,
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": false
    }
    ],
    "yaxis": {
    "align": false,
    "alignLevel": null
    }
    },
    {
    "aliasColors": {},
    "bars": false,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 10,
    "w": 12,
    "x": 12,
    "y": 62
    },
    "hiddenSeries": false,
    "id": 20,
    "legend": {
    "alignAsTable": true,
    "avg": false,
    "current": true,
    "max": false,
    "min": false,
    "rightSide": false,
    "show": true,
    "total": false,
    "values": true
    },
    "lines": true,
    "linewidth": 1,
    "links": [],
    "nullPointMode": "connected",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [],
    "spaceLength": 10,
    "stack": false,
    "steppedLine": true,
    "targets": [
    {
    "expr": "max(buffer_default_size_bytes{app=\"$application\"}) by (type)",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "default of {{type}}",
    "refId": "A"
    },
    {
    "expr": "max(buffer_max_size_bytes{app=\"$application\"}) by (type)",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "max of {{type}}",
    "refId": "B"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "Buffers calibration stats",
    "tooltip": {
    "shared": true,
    "sort": 0,
    "value_type": "individual"
    },
    "type": "graph",
    "xaxis": {
    "buckets": null,
    "mode": "time",
    "name": null,
    "show": true,
    "values": []
    },
    "yaxes": [
    {
    "format": "bytes",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    },
    {
    "format": "short",
    "label": null,
    "logBase": 1,
    "max": null,
    "min": null,
    "show": true
    }
    ],
    "yaxis": {
    "align": false,
    "alignLevel": null
    }
    },
    {
    "aliasColors": {},
    "bars": false,
    "dashLength": 10,
    "dashes": false,
    "datasource": "${DS_PROMETHEUS}",
    "fill": 1,
    "fillGradient": 0,
    "gridPos": {
    "h": 9,
    "w": 24,
    "x": 0,
    "y": 72
    },
    "hiddenSeries": false,
    "id": 18,
    "legend": {
    "alignAsTable": true,
    "avg": false,
    "current": true,
    "max": false,
    "min": false,
    "rightSide": true,
    "show": true,
    "total": false,
    "values": true
    },
    "lines": true,
    "linewidth": 2,
    "links": [],
    "nullPointMode": "null",
    "options": {
    "dataLinks": []
    },
    "percentage": false,
    "pointradius": 5,
    "points": false,
    "renderer": "flot",
    "seriesOverrides": [],
    "spaceLength": 10,
    "stack": false,
    "steppedLine": false,
    "targets": [
    {
    "expr": "sum(go_goroutines{app=\"$application\"})",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "Goroutines",
    "refId": "A"
    },
    {
    "expr": "sum(go_threads{app=\"$application\"})",
    "format": "time_series",
    "intervalFactor": 1,
    "legendFormat": "Threads",
    "refId": "B"
    }
    ],
    "thresholds": [],
    "timeFrom": null,
    "timeRegions": [],
    "timeShift": null,
    "title": "Concurrency",
    "tooltip": {
    "shared": true,
    "sort": 0,
    "value_type": "individual"
    },
    "type": "graph",
    "xaxis": {
    "buckets": null,
    "mode": "time",
    "name": null,
    "show": true,
    "values": []
    },
    "yaxes": [
    {
    "format": "short",
    "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
    }
    }
    ],
    "refresh": "5s",
    "schemaVersion": 22,
    "style": "dark",
    "tags": [],
    "templating": {
    "list": [
    {
    "allValue": null,
    "current": {},
    "datasource": "${DS_PROMETHEUS}",
    "definition": "",
    "hide": 0,
    "includeAll": false,
    "label": null,
    "multi": false,
    "name": "application",
    "options": [],
    "query": "label_values(app)",
    "refresh": 1,
    "regex": "/^imgproxy.*/",
    "skipUrlSync": false,
    "sort": 1,
    "tagValuesQuery": "",
    "tags": [],
    "tagsQuery": "",
    "type": "query",
    "useTags": false
    }
    ]
    },
    "time": {
    "from": "now-12h",
    "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": "",
    "title": "imgproxy instrumentation",
    "uid": "6UWY8Afik",
    "version": 3
    }