2023-07-24 14:26:57 +02:00
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- 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": "A dashboard to use to debug a running varnish instance. Easily track requests, cache hits, network i/o, sessions, threads, bans, ban lurker and the ban list size",
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 9903,
"graphTooltip": 0,
"id": 24,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 25,
"panels": [],
"repeat": "cluster",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"refId": "A"
}
],
"title": "Overview",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 1,
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 5,
"x": 0,
"y": 1
},
"id": 9,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.4.0-102000pre",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(irate(varnish_main_client_req{instance=~\"^($host).*\"}[5m]))",
"format": "time_series",
"interval": "15s",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"range": true,
"refId": "A",
"step": 15
}
],
"title": "Frontend Requests",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 1,
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 5,
"x": 5,
"y": 1
},
"id": 2,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.4.0-102000pre",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(irate(varnish_main_backend_req{instance=~\"^$host.*\"}[5m]))",
"format": "time_series",
"interval": "15s",
"intervalFactor": 1,
"legendFormat": "",
"metric": "varnish_main_backend_req",
"range": true,
"refId": "A",
"step": 15
}
],
"title": "Backend Requests",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 10,
"y": 1
},
"id": 16,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.4.0-102000pre",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(varnish_main_vmods{instance=~\"^($host).*\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "",
"range": true,
"refId": "A",
"step": 600
}
],
"title": "Loaded VMODs",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 80
}
]
},
"unit": "dtdurations"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 5,
"x": 14,
"y": 1
},
"id": 18,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/^min\\(varnish_main_uptime\\{instance=~\"\\(emzprdrpc01\\|emzprdrpc02\\)\"\\}\\)$/",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.4.0-102000pre",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "min(varnish_main_uptime{instance=~\"$host\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
"range": true,
"refId": "A",
"step": 600
}
],
"title": "Uptime",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"max": 1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgba(245, 54, 54, 0.9)",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 0
},
{
"color": "rgba(50, 172, 45, 0.97)",
"value": 0
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 5,
"x": 19,
"y": 1
},
"hideTimeOverride": false,
"id": 6,
"links": [],
"maxDataPoints": 100,
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": false
},
"pluginVersion": "9.4.0-102000pre",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "avg(( rate(varnish_main_cache_hit{instance=~\"^($host).*\"}[5m]) / rate(varnish_main_client_req{instance=~\"^($host).*\"}[5m]) ))",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "",
"metric": "",
"range": true,
"refId": "A",
"step": 600
}
],
"title": "Cache Hit Rate",
"type": "gauge"
},
{
"collapsed": false,
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 5
},
"id": 26,
"panels": [],
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"refId": "A"
}
],
"title": "Clients",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 40,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 1,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "fetch total"
},
"properties": [
{
"id": "custom.fillOpacity",
"value": 0
},
{
"id": "min",
"value": 0
},
{
"id": "custom.axisPlacement",
"value": "hidden"
}
]
},
{
"matcher": {
"id": "byName",
"options": "frontend"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#508642",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "backend"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#CCA300",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 11,
"w": 12,
"x": 0,
"y": 6
},
"id": 8,
"links": [],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"sum"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true,
"width": 400
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "9.4.0-96993pre",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(irate(varnish_main_client_req{instance=~\"^($host).*\"}[5m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "frontend",
"metric": "",
"range": true,
"refId": "A",
"step": 30
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(irate(varnish_main_backend_req{instance=~\"^($host).*\"}[5m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "backend",
"range": true,
"refId": "B",
"step": 30
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(varnish_main_fetch_total{instance=~\"^($host).*\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "fetch total",
"range": true,
"refId": "C",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(irate(varnish_main_fetch_total{instance=~\"^($host).*\"}[5m]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "fetched objects",
"range": true,
"refId": "D",
"step": 60
}
],
"title": "Requests",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 60,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "stepAfter",
"lineWidth": 0,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"max": 1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percentunit"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "cache miss %"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#890F02",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "cache hit %"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#508642",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "cache hit pass %"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#C15C17",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 11,
"w": 12,
"x": 12,
"y": 6
},
"id": 14,
"links": [],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"min"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "9.4.0-96993pre",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "avg(rate(varnish_main_cache_hit{instance=~\"^($host).*\"}[5m]) / rate(varnish_main_client_req{instance=~\"^($host).*\"}[5m]))",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "cache hit %",
"range": true,
"refId": "A",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "avg(1 - (rate(varnish_main_cache_hit{instance=~\"^($host).*\"}[5m]) / rate(varnish_main_client_req{instance=~\"^($host).*\"}[5m])))",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "cache miss %",
"range": true,
"refId": "B",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "avg(1 - (rate(varnish_main_cache_hitpass{instance=~\"^($host).*\"}[5m]) / rate(varnish_main_client_req{instance=~\"^($host).*\"}[5m])))",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "cache hit pass %",
"range": true,
"refId": "C",
"step": 60
}
],
"title": "Cache hits",
"type": "timeseries"
},
{
"collapsed": false,
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 17
},
"id": 27,
"panels": [],
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"refId": "A"
}
],
"title": "Status",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 40,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 18
},
"hideTimeOverride": false,
"id": 12,
"links": [],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"sum"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true,
"width": 400
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "9.4.0-96993pre",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(irate(varnish_main_s_resp_hdrbytes{instance=~\"^($host).*\"}[5m]) + irate(varnish_main_s_resp_bodybytes{instance=~\"^($host).*\"}[5m]))",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "frontend",
"range": true,
"refId": "A",
"step": 30
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(irate(varnish_backend_beresp_hdrbytes{instance=~\"^($host).*\"}[5m]) + irate(varnish_backend_beresp_bodybytes{instance=~\"^($host).*\"}[5m]))",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "backend",
"metric": "",
"range": true,
"refId": "B",
"step": 30
}
],
"title": "Network",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 40,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 18
},
"id": 31,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(varnish_sma_g_bytes{instance=~\"$host\"})",
"legendFormat": "cache",
"range": true,
"refId": "A"
}
],
"title": "Cache",
"type": "timeseries"
},
{
"collapsed": false,
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 26
},
"id": 28,
"panels": [],
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"refId": "A"
}
],
"title": "New row",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 40,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 20,
"w": 12,
"x": 0,
"y": 27
},
"id": 21,
"links": [],
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "9.4.0-96993pre",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(rate(varnish_main_backend_conn{instance=~\"^($host).*\"}[1m]))",
"intervalFactor": 2,
"legendFormat": "Backend conn. success",
"range": true,
"refId": "A",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(rate(varnish_main_backend_recycle{instance=~\"^($host).*\"}[1m]))",
"intervalFactor": 2,
"legendFormat": "Backend conn. recycles",
"range": true,
"refId": "B",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(rate(varnish_main_backend_reuse{instance=~\"^($host).*\"}[1m]))",
"intervalFactor": 2,
"legendFormat": "Backend conn. reuses",
"range": true,
"refId": "C",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(rate(varnish_main_backend_fail{instance=~\"^($host).*\"}[1m]))",
"intervalFactor": 2,
"legendFormat": "Backend conn. failures",
"range": true,
"refId": "D",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(rate(varnish_main_backend_unhealthy{instance=~\"^($host).*\"}[1m]))",
"intervalFactor": 2,
"legendFormat": "Backend conn. not attempted",
"range": true,
"refId": "E",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(rate(varnish_main_backend_busy{instance=~\"^($host).*\"}[1m]))",
"intervalFactor": 2,
"legendFormat": "Backend conn. too many",
"range": true,
"refId": "F",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(rate(varnish_main_backend_req{instance=~\"^($host).*\"}[1m]))",
"intervalFactor": 2,
"legendFormat": "Backend requests made",
"range": true,
"refId": "G",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(rate(varnish_main_backend_retry{instance=~\"^($host).*\"}[1m]))",
"intervalFactor": 2,
"legendFormat": "Backend conn. retry",
"range": true,
"refId": "H",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(rate(varnish_backend_conn{instance=~\"^($host).*\"}[1m]))",
"intervalFactor": 2,
"legendFormat": "Concurrent connections to backend",
"range": true,
"refId": "I",
"step": 60
}
],
"title": "Backend Connections (per minute)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 40,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 20,
"w": 12,
"x": 12,
"y": 27
},
"id": 19,
"links": [],
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "9.4.0-96993pre",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum by(type) (rate(varnish_main_sessions{instance=~\"^($host).*\"}[1m]))",
"intervalFactor": 2,
2023-07-24 18:36:48 +02:00
"legendFormat": "session - {{ '{{' }}type{{ '}}' }}",
2023-07-24 14:26:57 +02:00
"range": true,
"refId": "A",
"step": 60
}
],
"title": "Sessions",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 40,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 16,
"w": 24,
"x": 0,
"y": 47
},
"id": 20,
"links": [],
"options": {
"legend": {
"calcs": [
"lastNotNull",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true,
"sortBy": "Last *",
"sortDesc": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "9.4.0-96993pre",
"targets": [
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(varnish_main_threads_created{instance=~\"^($host).*\"})",
"intervalFactor": 2,
"legendFormat": "Threads created",
"metric": "varnish_main_threads_created",
"range": true,
"refId": "A",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(varnish_main_threads_destroyed{instance=~\"^($host).*\"})",
"intervalFactor": 2,
"legendFormat": "Threads destroyed",
"range": true,
"refId": "B",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(varnish_main_threads_failed{instance=~\"^($host).*\"})",
"intervalFactor": 2,
"legendFormat": "Thread creation failed",
"range": true,
"refId": "C",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(varnish_main_threads_limited{instance=~\"^($host).*\"})",
"intervalFactor": 2,
"legendFormat": "Max Threads hit",
"range": true,
"refId": "D",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(varnish_main_threads{instance=~\"^($host).*\"})",
"intervalFactor": 2,
"legendFormat": "Total number of threads",
"range": true,
"refId": "E",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(varnish_main_thread_queue_len{instance=~\"^($host).*\"})",
"intervalFactor": 2,
"legendFormat": "Length of session queue waiting for threads",
"range": true,
"refId": "F",
"step": 60
},
{
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"editorMode": "code",
"expr": "sum(varnish_main_pools{instance=~\"^($host).*\"})",
"intervalFactor": 2,
"legendFormat": "Number of thread pools ",
"range": true,
"refId": "G",
"step": 60
}
],
"title": "Threads",
"type": "timeseries"
}
],
"refresh": "1m",
"revision": 1,
"schemaVersion": 38,
"style": "dark",
"tags": [
"varnish"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus",
2023-07-24 15:03:08 +02:00
"uid": "{{ grafana_datasource_uid }}"
2023-07-24 14:26:57 +02:00
},
"definition": "label_values(varnish_up, instance)",
"hide": 0,
"includeAll": false,
"label": "Host",
"multi": true,
"name": "host",
"options": [],
"query": {
"query": "label_values(varnish_up, instance)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "{{ grafana_dashboard_regex | default('') }}",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-12h",
"to": "now"
},
"timepicker": {
"now": true,
"nowDelay": "",
"refresh_intervals": [
"5s",
"15s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "browser",
"title": "Varnish",
"uid": "WqtaeGo4z",
"version": 9,
"weekStart": ""
}