diff --git a/docker-compose-examples/grafana-monitoring/.env b/docker-compose-examples/grafana-monitoring/.env index 408715e..fe4d260 100755 --- a/docker-compose-examples/grafana-monitoring/.env +++ b/docker-compose-examples/grafana-monitoring/.env @@ -9,4 +9,4 @@ PROMETHEUS_CONF=./conf/prometheus.yml GRAFANA_CONF=./conf/grafana/grafana.ini GRAFANA_PROVISIONING=./conf/grafana/provisioning -GRAFANA_PORT=3000 +GRAFANA_PORT=3000 \ No newline at end of file diff --git a/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_Overview.json b/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_Overview.json new file mode 100644 index 0000000..2c2c74e --- /dev/null +++ b/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_Overview.json @@ -0,0 +1,2901 @@ +{ + "__inputs": [ + { + "name": "DS_PROMETHEUS", + "label": "Prometheus", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.3.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": { + "type": "datasource", + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "enable": true, + "expr": "sum(increase(varnish_mgt_child_panic{host=~\"$cache_node\"}[$__rate_interval])) by (host) ", + "hide": true, + "iconColor": "red", + "name": "Panic", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "textFormat": "{{host}}", + "titleFormat": "Panic" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "enable": true, + "expr": "sum(increase(varnish_main_vcl_fail{host=~\"$cache_node\"}[$__rate_interval])) by (host)", + "hide": true, + "iconColor": "orange", + "name": "VCL Failure", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "textFormat": "{{host}}", + "useValueForTime": "on" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "enable": true, + "expr": "sum(increase(varnish_mse_c_fail{host=~\"$cache_node\"}[$__rate_interval]) + ignoring(__name__) increase(varnish_mse_c_fail_malloc{host=~\"$cache_node\"}[$__rate_interval])) by (host)", + "hide": true, + "iconColor": "purple", + "name": "MSE Failure", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "textFormat": "{{host}}", + "titleFormat": "MSE Failure" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "enable": true, + "expr": "sum(increase(varnish_main_sc_stream_failure{host=~\"$cache_node\"}[$__rate_interval]) + \nincrease(varnish_main_sc_tx_error{host=~\"$cache_node\"}[$__rate_interval]) + \nincrease(varnish_main_sc_vdp_error{host=~\"$cache_node\"}[$__rate_interval]) +\nincrease(varnish_main_sc_vcl_failure{host=~\"$cache_node\"}[$__rate_interval])) by (host)", + "hide": true, + "iconColor": "super-light-orange", + "name": "Session Failure", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "textFormat": "{{host}}", + "titleFormat": "Session Failure" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": null, + "links": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "light-orange", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 2, + "x": 0, + "y": 0 + }, + "id": 108, + "interval": "$_interval", + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "delta" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_ws_client_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) + \nsum(increase(varnish_main_ws_backend_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) +\nsum(increase(varnish_main_ws_thread_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) +\nsum(increase(varnish_main_ws_session_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]) )", + "hide": false, + "legendFormat": "Workspace", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_rx_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) +\nsum(increase(varnish_main_sc_pipe_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# SC overflow separated from other type of overflow", + "hide": false, + "legendFormat": "Session Close", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_losthdr{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n# Header overflow separated from other type of overflow", + "hide": false, + "legendFormat": "Header", + "range": true, + "refId": "C" + } + ], + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Overflow", + "mode": "reduceRow", + "reduce": { + "include": [], + "reducer": "sum" + }, + "replaceFields": true + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "MAIN backend metric\n\nBackend Wait and Fail\n\nBackend Fetch Fail", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 4, + "x": 2, + "y": 0 + }, + "id": 99, + "interval": "$_interval", + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "vertical", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(varnish_main_backend_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) +\nsum(increase(varnish_main_backend_wait_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "instant": false, + "legendFormat": "Backend Fail", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(varnish_main_fetch{type=~\"failed\",org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "Fetch Fail", + "range": true, + "refId": "B" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "MAIN session close debug", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "light-orange", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 7, + "x": 6, + "y": 0 + }, + "id": 141, + "interval": "$_interval", + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "vertical", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_tx_error{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Tx", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_rx_bad{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Rx", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_stream_failure{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Stream", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_rapid_reset{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Rreset", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_bankrupt{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "bankrupt", + "range": true, + "refId": "F" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "MAIN metric", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "from": 0.0001, + "result": { + "color": "red", + "index": 0, + "text": "Thread Failed" + }, + "to": 99 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 4, + "x": 13, + "y": 0 + }, + "id": 102, + "interval": "$_interval", + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_threads_failed{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "legendFormat": "Thread", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sessions{type=~\"fail.+\",org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Session", + "range": true, + "refId": "B" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "MAIN goto metric", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "from": 0.0001, + "result": { + "color": "red", + "index": 0, + "text": "DNS Lookup" + }, + "to": 99 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 7, + "x": 17, + "y": 0 + }, + "id": 106, + "interval": "$_interval", + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_vcl_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "VCL", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_esi_errors{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "ESI", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_sma_c_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",type=~\"s.+\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "Malloc", + "range": true, + "refId": "E" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "light-red", + "value": 0.5 + }, + { + "color": "#EF843C", + "value": 0.6 + }, + { + "color": "#EAB839", + "value": 0.8 + }, + { + "color": "green", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 7, + "x": 0, + "y": 1 + }, + "id": 2, + "interval": "$_interval", + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": true, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_main_cache_hit{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) / ignoring (type) group_left \nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n", + "hide": false, + "legendFormat": "Now", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "max(sum(rate(varnish_main_cache_hit{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[12h])) / ignoring (type) group_left \nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[12h])))", + "hide": false, + "legendFormat": "12 hour max", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "max(sum(rate(varnish_main_cache_hit{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[3d])) / ignoring (type) group_left \nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[3d])))", + "hide": false, + "interval": "", + "legendFormat": "3 days max", + "range": true, + "refId": "C" + } + ], + "title": "Cache HIT", + "type": "stat" + }, + { + "datasource": { + "default": false, + "type": "datasource", + "uid": "-- Dashboard --" + }, + "description": "Current Network Usage\n\nMAIN metric request and response bytes", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Ingress/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-blue", + "mode": "continuous-YlRd" + } + }, + { + "id": "displayName", + "value": "Ingress" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Egress/" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "continuous-YlRd" + } + }, + { + "id": "displayName", + "value": "Egress" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 3, + "x": 7, + "y": 1 + }, + "id": 143, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "panelId": 112, + "refId": "A" + } + ], + "title": "Traffic byte", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Ingress Total", + "binary": { + "left": "Req Header", + "reducer": "sum", + "right": "Req Body" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Egress Total", + "binary": { + "left": "Header", + "reducer": "sum", + "right": "Body" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": [ + "Time", + "Egress Total", + "Ingress Total" + ] + } + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Rate of request seen", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "orange", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 3, + "x": 10, + "y": 1 + }, + "id": 69, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Client", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_backend_req{org=~\"$org\",tier=~\"$tier\",id!~\"cluster\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Backend", + "range": true, + "refId": "B" + } + ], + "title": "Request", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Derived rate of request seen per session", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 13, + "y": 1 + }, + "id": 75, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\"}[$__rate_interval])) / \nsum(rate(varnish_main_sessions{type=~\"conn\",org=~\"$org\",tier=~\"$tier\"}[$__rate_interval]))", + "hide": false, + "interval": "", + "legendFormat": "Client Request / Session", + "range": true, + "refId": "A" + } + ], + "title": "Client Request/Session", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 6, + "x": 16, + "y": 1 + }, + "id": 157, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "diff" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_n_obj_purged{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "legendFormat": "Cache", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_bans{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "BAN", + "range": true, + "refId": "C" + } + ], + "title": "Purge", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 22, + "y": 1 + }, + "id": 79, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "max(varnish_main_vmods{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"})", + "legendFormat": "import", + "range": true, + "refId": "A" + } + ], + "title": "VMOD count", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Derived rate of backend request per connection\n\nHigher is better, meaning connection is reused\n\nExclude cluster,default,goto", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 13, + "y": 4 + }, + "id": 87, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "(\n sum(rate(varnish_backend_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) +\n sum(rate(varnish_main_s_pass{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) +\n sum(rate(varnish_main_s_pipe{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) \n )\n/\nsum(rate(varnish_backend_conn{org=~\"$org\",tier=~\"$tier\",id!~\"cluster|default|goto\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "interval": "", + "legendFormat": "Backend Connection / Reuse", + "range": true, + "refId": "A" + } + ], + "title": "Backend Connection/Reuse", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "object-core in comparison to object-head count \n", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 16, + "y": 4 + }, + "id": 160, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_n_objectcore{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) / \nsum(rate(varnish_main_n_objecthead{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "instant": false, + "interval": "", + "legendFormat": "Object Variation Rate", + "range": true, + "refId": "A" + } + ], + "title": "Object core/head", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Compression / decompression", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 18, + "y": 4 + }, + "id": 139, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_n_gzip{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) / \nsum(rate(varnish_main_n_gunzip{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "instant": false, + "legendFormat": "gzip /gunzip rate", + "range": true, + "refId": "A" + } + ], + "title": "gzip / gunzip", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Rate of esi request", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 20, + "y": 4 + }, + "id": 161, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_esi_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "instant": false, + "legendFormat": "gzip /gunzip rate", + "range": true, + "refId": "A" + } + ], + "title": "ESI", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Thread queue length", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + }, + { + "color": "super-light-yellow", + "value": 1 + }, + { + "color": "orange", + "value": 200 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Queue" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "continuous-GrYlRd" + } + } + ] + } + ] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 22, + "y": 4 + }, + "id": 73, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(varnish_main_thread_queue_len{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "interval": "", + "legendFormat": "Thread Queue", + "range": true, + "refId": "A" + } + ], + "title": "Thread Queue", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Cache hit, hit_grace, hitmiss, hitpass VS synth, pass", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "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": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/hit$|hit_grace/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "shades" + } + }, + { + "id": "custom.lineWidth", + "value": 2 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 7 + }, + "id": 93, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": " # varnish-cache hit\n (\n sum(rate(varnish_main_cache_hit{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n )\n\n/\nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) ", + "hide": false, + "instant": false, + "legendFormat": "hit", + "range": true, + "refId": "varnish-cache hit" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": " # varnish-cache hitmiss\n (\n sum(rate(varnish_main_cache_hitmiss{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n )\n\n/\nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) ", + "hide": false, + "instant": false, + "legendFormat": "hitmiss", + "range": true, + "refId": "varnish-cache hitmiss" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": " # varnish-cache hitpass\n (\n sum(rate(varnish_main_cache_hitpass{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n )\n\n/\nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) ", + "hide": false, + "instant": false, + "legendFormat": "hitpass", + "range": true, + "refId": "varnish-cache hitpass" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_s_synth{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) /\nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# Synth usage may be higher depends on VCL. This must not be included when trying to account for 100% of client requests", + "hide": false, + "instant": false, + "legendFormat": "synth", + "range": true, + "refId": "varnish-cache synth" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_s_pass{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) /\nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "pass", + "range": true, + "refId": "varnish-cache pass" + } + ], + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 13 + }, + "id": 147, + "panels": [], + "title": "Resource Saturation", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 39, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "linearThreshold": 2, + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "G" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + }, + { + "id": "custom.fillOpacity", + "value": 51 + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "normal" + } + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.gradientMode", + "value": "none" + }, + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": false, + "viz": false + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "H" + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 15, + "x": 0, + "y": 14 + }, + "id": 112, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [ + "mean", + "stdDev" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(varnish_main_s_req_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# irate is used to get raw numbers on \"surges\" of bytes", + "hide": false, + "legendFormat": "Req Header", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(varnish_main_s_req_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Req Body", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(varnish_main_s_resp_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Header", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(varnish_main_s_resp_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Body", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(varnish_main_s_pipe_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Pipe Header", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_main_s_req_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) + \nsum(rate(varnish_main_s_req_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# ingress bytes expected to be very minimal than egress (response) bytes", + "hide": false, + "legendFormat": "Ingress", + "range": true, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "(sum(rate(varnish_main_s_resp_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (host) + \n sum(rate(varnish_main_s_resp_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (host)) * 8\n\n# inverted graphs per host respose bytes", + "hide": false, + "legendFormat": "{{host}}", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "(sum(rate(varnish_main_s_resp_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) + \n sum(rate(varnish_main_s_resp_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))) * 8\n\n# hidden in view, used as positive numbers in legend. Total of response bytes in Y axis (not inverted)", + "hide": false, + "legendFormat": "Egress", + "range": true, + "refId": "H" + } + ], + "title": "Network Usage", + "transformations": [ + { + "id": "filterByRefId", + "options": { + "include": "F|G|H" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "description": "Network Payload\n\nDerived from other panel", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 0, + "scaleDistribution": { + "log": 10, + "type": "log" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Req /" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "bars" + }, + { + "id": "custom.fillOpacity", + "value": 50 + }, + { + "id": "custom.lineWidth", + "value": 0 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Req Header" + }, + "properties": [ + { + "id": "displayName", + "value": "Request Header" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Req Body" + }, + "properties": [ + { + "id": "displayName", + "value": "Request Body" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Header" + }, + "properties": [ + { + "id": "displayName", + "value": "Response Header" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Body" + }, + "properties": [ + { + "id": "displayName", + "value": "Response Body" + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 9, + "x": 15, + "y": 14 + }, + "id": 149, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "panelId": 112, + "refId": "A" + } + ], + "title": "Header vs Body bytes", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": [ + "Time", + "Req Header", + "Req Body", + "Header", + "Body" + ] + } + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Bars: RSS size\n\nLine: Allocated and freed Resources", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "left", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "bars" + }, + { + "id": "custom.fillOpacity", + "value": 20 + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": false, + "viz": false + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 15, + "x": 0, + "y": 24 + }, + "id": 114, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(varnish_sma_g_space{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",type=~\"s.+\"}) by (host) + \nsum(varnish_sma_g_bytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",type=~\"s.+\"}) by (host)", + "hide": false, + "legendFormat": "RSS {{host}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_sma_g_bytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",type=~\"s.+\"}[$__rate_interval])) by (host)", + "hide": false, + "legendFormat": "Allocated", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_sma_c_freed{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",type=~\"s.+\"}[$__rate_interval])) by (host)", + "hide": false, + "legendFormat": "Freed", + "range": true, + "refId": "C" + } + ], + "title": "Cache Memory Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Client request vs backend requests\n\nBars: Backend request count\n\nLine: Host client request count", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 10, + "type": "log" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "bars" + }, + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "custom.fillOpacity", + "value": 30 + }, + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + { + "id": "color", + "value": { + "fixedColor": "text", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": false, + "viz": false + } + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 9, + "x": 15, + "y": 25 + }, + "id": 156, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (host)", + "format": "time_series", + "hide": false, + "interval": "$_interval", + "legendFormat": "{{host}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_backend_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (backend)", + "format": "time_series", + "hide": false, + "interval": "$_interval", + "legendFormat": "{{backend}}", + "range": true, + "refId": "B" + } + ], + "title": "HTTP Request vs Backend", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": "([a-zA-Z0-9-_.]+).*", + "renamePattern": "$1" + } + } + ], + "transparent": true, + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Delta objects, showing differences of objects from previous point in time\n\nAlso showing increase removal by purging, nuking, or expiring objects\n\nSolid lines: Host object count\nDots: Count of removed objects", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Expired/" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "line" + }, + { + "id": "color", + "value": { + "fixedColor": "super-light-orange", + "mode": "fixed" + } + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [ + 0, + 10 + ], + "fill": "dot" + } + }, + { + "id": "custom.lineWidth", + "value": 2 + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Removed/" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.drawStyle", + "value": "bars" + }, + { + "id": "custom.fillOpacity", + "value": 50 + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "normal" + } + }, + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": false, + "viz": false + } + }, + { + "id": "custom.axisCenteredZero", + "value": true + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 15, + "x": 0, + "y": 30 + }, + "id": 110, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(delta(varnish_main_n_object{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (host)\n\n# changes in cache object per host", + "hide": false, + "legendFormat": "{{host}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_n_expired{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# expired entries from cache", + "hide": false, + "legendFormat": "Expired", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_n_lru_nuked{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) + \nsum(increase(varnish_main_n_obj_purged{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# nuked andor removed from cache", + "hide": false, + "legendFormat": "Removed", + "range": true, + "refId": "C" + } + ], + "title": "Object Fill", + "transparent": true, + "type": "timeseries" + } + ], + "refresh": "auto", + "schemaVersion": 40, + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "hide": 2, + "includeAll": false, + "label": "Datasource", + "name": "DS_PROMETHEUS", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "definition": "label_values(varnish_main_uptime,org)", + "description": "Filter organizations", + "includeAll": false, + "label": "Organization", + "name": "org", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(varnish_main_uptime,org)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "definition": "label_values(varnish_main_uptime{org=~\"$org\"},tier)", + "includeAll": false, + "label": "Tier", + "multi": true, + "name": "tier", + "options": [], + "query": { + "query": "label_values(varnish_main_uptime{org=~\"$org\"},tier)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "allValue": "test", + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "definition": "label_values(varnish_main_cache{org=~\"$org\",tier=~\"$tier\"},host)", + "description": "", + "includeAll": false, + "label": "Caching Node", + "multi": true, + "name": "cache_node", + "options": [], + "query": { + "query": "label_values(varnish_main_cache{org=~\"$org\",tier=~\"$tier\"},host)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "/([A-Za-z0-9-_.:]+).*/", + "sort": 1, + "type": "query" + }, + { + "auto": true, + "auto_count": 40, + "auto_min": "30s", + "current": { + "text": "1m", + "value": "1m" + }, + "description": "interval used for queries and result grouping", + "label": "Query Rate Interval", + "name": "_interval", + "options": [ + { + "selected": true, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + } + ], + "query": "1m,5m,10m,30m", + "refresh": 2, + "type": "interval" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": { + "nowDelay": "", + "refresh_intervals": [ + "20s", + "30s", + "1m", + "5m" + ] + }, + "timezone": "", + "title": "Overview", + "uid": "fe3wy5pmbupkwa", + "version": 5, + "weekStart": "" +} \ No newline at end of file diff --git a/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_debug.json b/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_debug.json new file mode 100644 index 0000000..9e18bf7 --- /dev/null +++ b/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_debug.json @@ -0,0 +1,5603 @@ +{ + "__inputs": [ + { + "name": "DS_PROMETHEUS", + "label": "Prometheus", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.3.0" + }, + { + "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": { + "type": "datasource", + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "enable": true, + "expr": "sum(increase(varnish_mgt_child_panic{host=~\"$cache_node\"}[$__rate_interval])) by (host) ", + "hide": true, + "iconColor": "red", + "name": "Panic", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "textFormat": "{{host}}", + "titleFormat": "Panic" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "enable": true, + "expr": "sum(increase(varnish_main_vcl_fail{host=~\"$cache_node\"}[$__rate_interval])) by (host)", + "hide": true, + "iconColor": "orange", + "name": "VCL Failure", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "textFormat": "{{host}}", + "useValueForTime": "on" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "enable": true, + "expr": "sum(increase(varnish_mse_c_fail{host=~\"$cache_node\"}[$__rate_interval]) + ignoring(__name__) increase(varnish_mse_c_fail_malloc{host=~\"$cache_node\"}[$__rate_interval])) by (host)", + "hide": true, + "iconColor": "purple", + "name": "MSE Failure", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "textFormat": "{{host}}", + "titleFormat": "MSE Failure" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "enable": true, + "expr": "sum(increase(varnish_main_sc_stream_failure{host=~\"$cache_node\"}[$__rate_interval]) + \nincrease(varnish_main_sc_tx_error{host=~\"$cache_node\"}[$__rate_interval]) + \nincrease(varnish_main_sc_vdp_error{host=~\"$cache_node\"}[$__rate_interval]) +\nincrease(varnish_main_sc_vcl_failure{host=~\"$cache_node\"}[$__rate_interval])) by (host)", + "hide": true, + "iconColor": "super-light-orange", + "name": "Session Failure", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "textFormat": "{{host}}", + "titleFormat": "Session Failure" + } + ] + }, + "description": "this is for review and validate sections.\nRate Error [ Duration ] is used here", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": null, + "links": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "light-orange", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 2, + "x": 0, + "y": 0 + }, + "id": 108, + "interval": "$_interval", + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "delta" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_ws_client_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) + \nsum(increase(varnish_main_ws_backend_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) +\nsum(increase(varnish_main_ws_thread_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) +\nsum(increase(varnish_main_ws_session_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]) )", + "hide": false, + "legendFormat": "Workspace", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_rx_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) +\nsum(increase(varnish_main_sc_pipe_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# SC overflow separated from other type of overflow", + "hide": false, + "legendFormat": "Session Close", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_losthdr{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n# Header overflow separated from other type of overflow", + "hide": false, + "legendFormat": "Header", + "range": true, + "refId": "C" + } + ], + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Overflow", + "mode": "reduceRow", + "reduce": { + "include": [], + "reducer": "sum" + }, + "replaceFields": true + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "MAIN backend metric\n\nBackend Wait and Fail\n\nBackend Fetch Fail", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 4, + "x": 2, + "y": 0 + }, + "id": 99, + "interval": "$_interval", + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "vertical", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(varnish_main_backend_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) +\nsum(increase(varnish_main_backend_wait_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "instant": false, + "legendFormat": "Backend Fail", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(varnish_main_fetch{type=~\"failed\",org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "Fetch Fail", + "range": true, + "refId": "B" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "MAIN session close debug", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "light-orange", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 7, + "x": 6, + "y": 0 + }, + "id": 141, + "interval": "$_interval", + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "vertical", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_tx_error{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Tx", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_rx_bad{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Rx", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_stream_failure{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Stream", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_rapid_reset{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Rreset", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sc_bankrupt{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "bankrupt", + "range": true, + "refId": "F" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "MAIN metric", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "from": 0.0001, + "result": { + "color": "red", + "index": 0, + "text": "Thread Failed" + }, + "to": 99 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 4, + "x": 13, + "y": 0 + }, + "id": 102, + "interval": "$_interval", + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_threads_failed{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "legendFormat": "Thread", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_sessions{type=~\"fail.+\",org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Session", + "range": true, + "refId": "B" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "MAIN goto metric", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "from": 0.0001, + "result": { + "color": "red", + "index": 0, + "text": "DNS Lookup" + }, + "to": 99 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 1, + "w": 7, + "x": 17, + "y": 0 + }, + "id": 106, + "interval": "$_interval", + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_vcl_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "VCL", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_esi_errors{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "ESI", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_sma_c_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",type=~\"s.+\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "Malloc", + "range": true, + "refId": "E" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "light-red", + "value": 0.5 + }, + { + "color": "#EF843C", + "value": 0.6 + }, + { + "color": "#EAB839", + "value": 0.8 + }, + { + "color": "green", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 7, + "x": 0, + "y": 1 + }, + "id": 2, + "interval": "$_interval", + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": true, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_main_cache_hit{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) / ignoring (type) group_left \nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Now", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "max(sum(rate(varnish_main_cache_hit{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[12h])) / ignoring (type) group_left \nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[12h])))", + "hide": false, + "legendFormat": "12 hour max", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "max(sum(rate(varnish_main_cache_hit{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[3d])) / ignoring (type) group_left \nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[3d])))", + "hide": false, + "interval": "", + "legendFormat": "3 days max", + "range": true, + "refId": "C" + } + ], + "title": "Cache HIT", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Current Network Usage\n\nMAIN metric request and response bytes", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Ingress/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-blue", + "mode": "continuous-YlRd" + } + }, + { + "id": "displayName", + "value": "Ingress" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Egress/" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "continuous-YlRd" + } + }, + { + "id": "displayName", + "value": "Egress" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 3, + "x": 7, + "y": 1 + }, + "id": 143, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(varnish_main_s_req_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# irate is used to get raw numbers on \"surges\" of bytes\n# used in transforming to \"ingress total\"", + "instant": false, + "legendFormat": "Req Header", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(varnish_main_s_req_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# used in transforming to \"ingress total\"", + "hide": false, + "instant": false, + "legendFormat": "Req Body", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(varnish_main_s_resp_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# used in transforming to \"egress total\"", + "hide": false, + "instant": false, + "legendFormat": "Header", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(varnish_main_s_resp_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# used in transforming to \"egress total\"", + "hide": false, + "instant": false, + "legendFormat": "Body", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(varnish_main_s_pipe_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "Pipe Header", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_main_s_req_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) + \nsum(rate(varnish_main_s_req_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# ingress bytes expected to be very minimal than egress (response) bytes", + "hide": false, + "instant": false, + "legendFormat": "Ingress", + "range": true, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "(sum(rate(varnish_main_s_resp_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (host) + \n sum(rate(varnish_main_s_resp_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (host)) * 8\n\n# inverted graphs per host respose bytes", + "hide": false, + "instant": false, + "legendFormat": "{{host}}", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "(sum(rate(varnish_main_s_resp_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) + \n sum(rate(varnish_main_s_resp_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))) * 8\n\n# hidden in view, used as positive numbers in legend. Total of response bytes in Y axis (not inverted)", + "hide": false, + "instant": false, + "legendFormat": "Egress", + "range": true, + "refId": "H" + } + ], + "title": "Traffic byte", + "transformations": [ + { + "id": "calculateField", + "options": { + "alias": "Ingress Total", + "binary": { + "left": { + "matcher": { + "id": "byName", + "options": "Req Header" + } + }, + "right": { + "matcher": { + "id": "byName", + "options": "Req Body" + } + } + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Egress Total", + "binary": { + "left": { + "matcher": { + "id": "byName", + "options": "Header" + } + }, + "right": { + "matcher": { + "id": "byName", + "options": "Body" + } + } + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": [ + "Time", + "Egress Total", + "Ingress Total" + ] + } + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Rate of request seen", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "orange", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 3, + "x": 10, + "y": 1 + }, + "id": 69, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Client", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_backend_req{org=~\"$org\",tier=~\"$tier\",id!~\"cluster\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "legendFormat": "Backend", + "range": true, + "refId": "B" + } + ], + "title": "Request", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Derived rate of request seen per session", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 13, + "y": 1 + }, + "id": 75, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_main_req_dropped{org=~\"$org\",tier=~\"$tier\"}[$__rate_interval])) ", + "hide": false, + "interval": "", + "legendFormat": "Dropped", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_main_req_reset{org=~\"$org\",tier=~\"$tier\"}[$__rate_interval])) ", + "hide": false, + "interval": "", + "legendFormat": "Reset", + "range": true, + "refId": "B" + } + ], + "title": "Request", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 6, + "x": 16, + "y": 1 + }, + "id": 157, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "diff" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_n_obj_purged{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "legendFormat": "Purge", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_bans{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "BAN", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(increase(varnish_main_n_lru_nuked{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "LRU", + "range": true, + "refId": "C" + } + ], + "title": "Cache Eviction", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 22, + "y": 1 + }, + "id": 79, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "max(varnish_main_n_vcl_avail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"})", + "legendFormat": "Available", + "range": true, + "refId": "A" + } + ], + "title": "VCL", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "\n\nHigher is better, meaning connection is reused\n\nExclude cluster,default,goto", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 13, + "y": 4 + }, + "id": 87, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_main_backend_retry{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "interval": "", + "legendFormat": "Retry", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(rate(varnish_main_backend_wait{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "interval": "", + "legendFormat": "Wait", + "range": true, + "refId": "B" + } + ], + "title": "Backend", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 16, + "y": 4 + }, + "id": 160, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_beresp_shortlived{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "instant": false, + "interval": "", + "legendFormat": "shortlived", + "range": true, + "refId": "A" + } + ], + "title": "object", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 18, + "y": 4 + }, + "id": 139, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_shm_flushes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "instant": false, + "legendFormat": "Flush", + "range": true, + "refId": "A" + } + ], + "title": "SHM", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Rate of esi request", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 20, + "y": 4 + }, + "id": 161, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_esi_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "instant": false, + "legendFormat": "gzip /gunzip rate", + "range": true, + "refId": "A" + } + ], + "title": "ESI", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Thread queue length", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + }, + { + "color": "super-light-yellow", + "value": 1 + }, + { + "color": "orange", + "value": 200 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Queue" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "continuous-GrYlRd" + } + } + ] + } + ] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 22, + "y": 4 + }, + "id": 73, + "interval": "$_interval", + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(resets(varnish_backend_happy{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "interval": "", + "legendFormat": "Fail", + "range": true, + "refId": "A" + } + ], + "title": "Probe", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Cache hit, hit_grace, hitmiss, hitpass VS synth, pass", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "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": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/hit$|hit_grace/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "shades" + } + }, + { + "id": "custom.lineWidth", + "value": 2 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 7 + }, + "id": 93, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": " # varnish-cache hit\n (\n sum(rate(varnish_main_cache_hit{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n )\n\n/\nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) ", + "hide": false, + "instant": false, + "legendFormat": "hit", + "range": true, + "refId": "varnish-cache hit" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": " # varnish-cache hitmiss\n (\n sum(rate(varnish_main_cache_hitmiss{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n )\n\n/\nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) ", + "hide": false, + "instant": false, + "legendFormat": "hitmiss", + "range": true, + "refId": "varnish-cache hitmiss" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": " # varnish-cache hitpass\n (\n sum(rate(varnish_main_cache_hitpass{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n )\n\n/\nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) ", + "hide": false, + "instant": false, + "legendFormat": "hitpass", + "range": true, + "refId": "varnish-cache hitpass" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_s_synth{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) /\nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# Synth usage may be higher depends on VCL. This must not be included when trying to account for 100% of client requests", + "hide": false, + "instant": false, + "legendFormat": "synth", + "range": true, + "refId": "varnish-cache synth" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_s_pass{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) /\nsum(rate(varnish_main_client_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "pass", + "range": true, + "refId": "varnish-cache pass" + } + ], + "type": "timeseries" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 13 + }, + "id": 180, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 15, + "x": 0, + "y": 14 + }, + "id": 165, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_busy{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "busy", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_conn{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "conn", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_reuse{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "reuse", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_unhealthy{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "unhealthy", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "fail", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_recycle{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "recycle", + "range": true, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_retry{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "retry", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_wait{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "wait", + "range": true, + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_wait_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "wait_fail", + "range": true, + "refId": "I" + } + ], + "title": "Backend [Main]", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "text", + "mode": "fixed" + } + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-purple", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "C" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-blue", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "D" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-yellow", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "E" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-orange", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "F" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "semi-dark-purple", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "G" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-red", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 9, + "x": 15, + "y": 14 + }, + "id": 166, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_backend_conn{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Connection(All good)", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_backend_busy{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "busy", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_backend_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "fail", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_backend_reuse{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "reuse", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_backend_recycle{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "recycle", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_backend_retry{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "retry", + "range": true, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_backend_wait{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "wait", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_backend_wait_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "wait_fail", + "range": true, + "refId": "H" + } + ], + "title": "Connection State [Main]", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-blue", + "mode": "shades" + } + }, + { + "id": "custom.drawStyle", + "value": "line" + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "bars" + }, + { + "id": "color", + "value": { + "fixedColor": "light-orange", + "mode": "shades" + } + }, + { + "id": "custom.fillOpacity", + "value": 31 + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "C" + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + { + "id": "color", + "value": { + "fixedColor": "semi-dark-blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "D" + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + { + "id": "custom.drawStyle", + "value": "bars" + }, + { + "id": "custom.fillOpacity", + "value": 30 + }, + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 15, + "x": 0, + "y": 22 + }, + "id": 183, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_bereq_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "request header-{{backend}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_bereq_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "request body-{{backend}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_beresp_hdrbytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "response header-{{backend}}", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_beresp_bodybytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "response body-{{backend}}", + "range": true, + "refId": "D" + } + ], + "title": "Backend bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "text", + "mode": "fixed" + } + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-purple", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "C" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-blue", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "D" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-yellow", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "E" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-orange", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "F" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "semi-dark-purple", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "G" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-red", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 9, + "x": 15, + "y": 22 + }, + "id": 182, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_conn{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": true, + "instant": false, + "interval": "", + "legendFormat": "Connection(All good)", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_fail_eacces{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "eaccess-{{backend}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_fail_eaddrnotavail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "eaddrnotavail-{{backend}}", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_fail_econnrefused{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "econnrefused-{{backend}}", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_fail_enetunreach{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "enetunreach-{{backend}}", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_fail_etimedout{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "etimedout-{{backend}}", + "range": true, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_fail_other{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "other-{{backend}}", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_backend_helddown{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",backend=~\"$backend\"}[$__rate_interval])) by (backend)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "helddown-{{backend}}", + "range": true, + "refId": "H" + } + ], + "title": "Fail Reasons", + "type": "timeseries" + } + ], + "title": "Backend", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 14 + }, + "id": 181, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 0, + "y": 63 + }, + "id": 168, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_lock_created{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (target)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Locks created", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 8, + "y": 63 + }, + "id": 169, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_lck_dbg_busy{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (id)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Locks busy", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 63 + }, + "id": 170, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_lck_dbg_try_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (id)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Locks trylock", + "type": "timeseries" + } + ], + "title": "Lock", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 15 + }, + "id": 162, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 71 + }, + "id": 164, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "\nsum(rate(varnish_main_sessions{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",type!~\"fail.*\"}[$__rate_interval])) by (type)\n", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Connection", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "fail" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "text", + "mode": "fixed" + } + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 71 + }, + "id": 163, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "\nsum(rate(varnish_main_sessions{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\",type=~\"fail.*\"}[$__rate_interval])) by (type)\n", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Fail Reasons", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "fail" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "text", + "mode": "fixed" + } + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 71 + }, + "id": 167, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_bankrupt{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "bankrupt", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_rapid_reset{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "rapid_reset", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_vcl_failure{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "vcl_failure", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_req_http20{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "req_http20", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_range_short{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "range_short", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_pipe_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "pipe_overflow", + "range": true, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_overload{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "overload", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_tx_error{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "tx_error", + "range": true, + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_rx_close_idle{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "rx_close_idle", + "range": true, + "refId": "I" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_rx_timeout{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))\n\n# may be seen as normal behavior for some application", + "hide": false, + "instant": false, + "legendFormat": "rx_timeout", + "range": true, + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_rx_overflow{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "rx_overflow", + "range": true, + "refId": "K" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_rx_junk{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "rx_junk", + "range": true, + "refId": "L" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_rx_body{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "rx_body", + "range": true, + "refId": "M" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_rx_bad{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "rx_bad", + "range": true, + "refId": "N" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_sc_req_http10{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "req_http10", + "range": true, + "refId": "O" + } + ], + "title": "Closed with error", + "type": "timeseries" + } + ], + "title": "Session", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 16 + }, + "id": 171, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 0, + "y": 80 + }, + "id": 172, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(varnish_mempool_sz_wanted{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}) by (id) -\nsum(varnish_mempool_sz_actual{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}) by (id)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Mempool size requested - allocated", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "barWidthFactor": 0.4, + "drawStyle": "bars", + "fillOpacity": 11, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 3600000, + "lineInterpolation": "linear", + "lineStyle": { + "dash": [ + 10, + 10 + ], + "fill": "dash" + }, + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": 3600000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 6, + "y": 80 + }, + "id": 174, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(varnish_mempool_frees{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}) by (id) /\nsum(varnish_mempool_allocs{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}) by (id)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Mempool frees / allocations", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "barWidthFactor": 0.4, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 3600000, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": 3600000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 12, + "y": 80 + }, + "id": 175, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_mempool_timeout{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (id,host) / \nsum(rate(varnish_mempool_recycle{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (id,host)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "{{id}}", + "range": true, + "refId": "A" + } + ], + "title": "Mempool timeout / recycle", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "barWidthFactor": 0.4, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 3600000, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": 3600000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 18, + "y": 80 + }, + "id": 176, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_mempool_toosmall{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (id,host)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "toosmall-{{id}},{{host}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_mempool_surplus{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (id,host)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "surplus-{{id}},{{host}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_mempool_randry{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (id,host)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "randry-{{id}},{{host}}", + "range": true, + "refId": "C" + } + ], + "title": "Mempool others", + "type": "timeseries" + } + ], + "title": "Mempool", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 179, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*-s./" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*-transient/" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "shades" + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 9, + "x": 0, + "y": 89 + }, + "id": 178, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(varnish_sma_g_space{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}) by (type,host) + \nsum(varnish_sma_g_bytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}) by (type,host)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "malloc-{{type}},{{host}}", + "range": true, + "refId": "A" + } + ], + "title": "Malloc Size", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "s0" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "bars" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/s.-.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/transient-.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "shades" + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 9, + "x": 9, + "y": 89 + }, + "id": 173, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_sma_c_bytes{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (type)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "{{type}}-allocation", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_sma_c_freed{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (type)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "{{type}}-freed", + "range": true, + "refId": "B" + } + ], + "title": "SMA allocated and freed", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": false, + "viz": true + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "points" + }, + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "color", + "value": { + "fixedColor": "light-red", + "mode": "shades" + } + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "normal" + } + }, + { + "id": "custom.scaleDistribution", + "value": { + "type": "linear" + } + }, + { + "id": "custom.pointSize", + "value": 10 + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/s..*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*transient.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "shades" + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 6, + "x": 18, + "y": 89 + }, + "id": 177, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_sma_c_req{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (type)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(varnish_sma_c_fail{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (type)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "fail-{{type}}", + "range": true, + "refId": "B" + } + ], + "title": "SMA requests and failures", + "type": "timeseries" + } + ], + "title": "Malloc", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 185, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "s0" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "transient" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 9, + "x": 0, + "y": 90 + }, + "id": 186, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_s_bgfetch{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "background", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_fetch_total{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Initiated", + "range": true, + "refId": "B" + } + ], + "title": "Fetch", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "s0" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "shades" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "transient" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 15, + "x": 9, + "y": 90 + }, + "id": 187, + "interval": "$_interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(varnish_main_fetch{org=~\"$org\",tier=~\"$tier\",host=~\"$cache_node\"}[$__rate_interval])) by (type)", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "{{type}}", + "range": true, + "refId": "A" + } + ], + "title": "Type", + "type": "timeseries" + } + ], + "title": "Fetch", + "type": "row" + } + ], + "refresh": "auto", + "schemaVersion": 40, + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "hide": 2, + "includeAll": false, + "label": "Datasource", + "name": "DS_PROMETHEUS", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "definition": "label_values(varnish_main_uptime,org)", + "description": "Filter organizations", + "includeAll": false, + "label": "Organization", + "name": "org", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(varnish_main_uptime,org)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "definition": "label_values(varnish_main_uptime{org=~\"$org\"},tier)", + "includeAll": false, + "label": "Tier", + "multi": true, + "name": "tier", + "options": [], + "query": { + "query": "label_values(varnish_main_uptime{org=~\"$org\"},tier)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "allValue": "test", + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "definition": "label_values(varnish_main_cache{org=~\"$org\",tier=~\"$tier\"},host)", + "description": "", + "includeAll": false, + "label": "Caching Node", + "multi": true, + "name": "cache_node", + "options": [], + "query": { + "query": "label_values(varnish_main_cache{org=~\"$org\",tier=~\"$tier\"},host)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "/([A-Za-z0-9-_.:]+).*/", + "sort": 1, + "type": "query" + }, + { + "auto": true, + "auto_count": 40, + "auto_min": "30s", + "current": { + "text": "1m", + "value": "1m" + }, + "description": "interval used for queries and result grouping", + "label": "Query Rate Interval", + "name": "_interval", + "options": [ + { + "selected": true, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + } + ], + "query": "1m,5m,10m,30m", + "refresh": 2, + "type": "interval" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "definition": "label_values(varnish_backend_req,backend)", + "includeAll": true, + "label": "Backend", + "multi": true, + "name": "backend", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(varnish_backend_req,backend)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": { + "nowDelay": "", + "refresh_intervals": [ + "20s", + "30s", + "1m", + "5m" + ] + }, + "timezone": "", + "title": "Debug Dashboard", + "uid": "fe4dbh84ac5c0c", + "version": 6, + "weekStart": "" +} \ No newline at end of file diff --git a/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_logs.json b/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_logs.json index 00e276a..8a0f1bb 100644 --- a/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_logs.json +++ b/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_logs.json @@ -1,289 +1,626 @@ { - "__inputs": [ - { - "name": "DS_LOKI", - "label": "loki", - "description": "", - "type": "datasource", - "pluginId": "loki", - "pluginName": "Loki" - } - ], - "__elements": {}, - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "10.2.3" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph (old)", - "version": "" - }, - { - "type": "panel", - "id": "logs", - "name": "Logs", - "version": "" - }, - { - "type": "datasource", - "id": "loki", - "name": "Loki", - "version": "1.0.0" - } - ], - "annotations": { - "list": [ + "__inputs": [ { - "$$hashKey": "object:75", - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" + "name": "DS_PROMETHEUS", + "label": "Prometheus", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + }, + { + "name": "DS_LOKI", + "label": "loki", + "description": "", + "type": "datasource", + "pluginId": "loki", + "pluginName": "Loki" } - ] - }, - "description": "Log Viewer Dashboard for Loki", - "editable": false, - "fiscalYearStartMonth": 0, - "gnetId": 13639, - "graphTooltip": 0, - "id": null, - "links": [ - { - "$$hashKey": "object:59", - "icon": "bolt", - "includeVars": true, - "keepTime": true, - "tags": [], - "targetBlank": true, - "title": "View In Explore", - "type": "link", - "url": "/explore?orgId=1&left=[\"now-1h\",\"now\",\"Loki\",{\"expr\":\"{job=\\\"$app\\\"}\"},{\"ui\":[true,true,true,\"none\"]}]" - }, - { - "$$hashKey": "object:61", - "icon": "external link", - "tags": [], - "targetBlank": true, - "title": "Learn LogQL", - "type": "link", - "url": "https://grafana.com/docs/loki/latest/logql/" - } - ], - "liveNow": false, - "panels": [ - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "loki", - "uid": "lokiUID" + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.3.0" }, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] + { + "type": "panel", + "id": "logs", + "name": "Logs", + "version": "" }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 3, - "w": 24, - "x": 0, - "y": 0 + { + "type": "datasource", + "id": "loki", + "name": "Loki", + "version": "1.0.0" }, - "hiddenSeries": false, - "id": 6, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" }, - "lines": false, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" }, - "percentage": false, - "pluginVersion": "10.2.3", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "annotations": { + "list": [ { + "$$hashKey": "object:75", + "builtIn": 1, "datasource": { - "type": "loki", - "uid": "lokiUID" + "type": "datasource", + "uid": "grafana" }, - "expr": "sum(count_over_time({job=\"$app\"} |= \"$search\" [$__interval]))", - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:168", - "format": "short", - "logBase": 1, - "show": false - }, - { - "$$hashKey": "object:169", - "format": "short", - "logBase": 1, - "show": false + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" } - ], - "yaxis": { - "align": false - } + ] }, - { - "datasource": { - "type": "loki", - "uid": "lokiUID" + "description": "Log Viewer Dashboard for Loki", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [ + { + "$$hashKey": "object:59", + "icon": "bolt", + "includeVars": true, + "keepTime": true, + "tags": [], + "targetBlank": true, + "title": "View In Explore", + "type": "link", + "url": "/explore?orgId=1&left=[\"now-1h\",\"now\",\"Loki\",{\"expr\":\"{job=\\\"$app\\\"}\"},{\"ui\":[true,true,true,\"none\"]}]" }, - "gridPos": { - "h": 25, - "w": 24, - "x": 0, - "y": 3 + { + "$$hashKey": "object:61", + "icon": "external link", + "tags": [], + "targetBlank": true, + "title": "Learn LogQL", + "type": "link", + "url": "https://grafana.com/docs/loki/latest/logql/" + } + ], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "hidden", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 5, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "503" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "points" + }, + { + "id": "custom.pointSize", + "value": 10 + }, + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "custom.axisGridShow", + "value": false + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 6, + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "status:count:rate15s", + "legendFormat": "{{status}}", + "range": true, + "refId": "A" + } + ], + "title": "Status Code", + "type": "timeseries" }, - "id": 2, - "maxDataPoints": "", - "options": { - "dedupStrategy": "none", - "enableLogDetails": true, - "prettifyLogMessage": false, - "showCommonLabels": false, - "showLabels": false, - "showTime": true, - "sortOrder": "Descending", - "wrapLogMessage": false + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 10, + "x": 0, + "y": 3 + }, + "id": 7, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(handling:count:rate15s) by (handling)", + "legendFormat": "{{handling}}", + "range": true, + "refId": "A" + } + ], + "transformations": [ + { + "id": "timeSeriesTable", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "handling": false + }, + "includeByName": {}, + "indexByName": {}, + "renameByName": { + "Trend #A": "Rate", + "handling": "Handling" + } + } + } + ], + "type": "table" }, - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "lokiUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" }, - "expr": "{job=\"$app\"} |= \"$search\" | logfmt", - "hide": false, - "legendFormat": "", - "refId": "A" - } - ], - "transparent": true, - "type": "logs" - } - ], - "refresh": "", - "schemaVersion": 39, - "tags": [], - "templating": { - "list": [ + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 10, + "x": 10, + "y": 3 + }, + "id": 9, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(content_type:count:rate15s) by (type)", + "hide": false, + "legendFormat": "{{type}}", + "range": true, + "refId": "A" + } + ], + "transformations": [ + { + "id": "timeSeriesTable", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": {}, + "renameByName": { + "Trend #A": "Rate", + "type": "Content-type" + } + } + } + ], + "type": "table" + }, { - "current": {}, "datasource": { - "type": "loki", - "uid": "lokiUID" + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] }, - "definition": "label_values(job)", - "hide": 0, - "includeAll": false, - "label": "App", - "multi": false, - "name": "app", - "options": [], - "query": "label_values(job)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false + "gridPos": { + "h": 8, + "w": 4, + "x": 20, + "y": 3 + }, + "id": 10, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(protocol:count:rate15s) by(proto)", + "legendFormat": "{{proto}}", + "range": true, + "refId": "A" + } + ], + "transformations": [ + { + "id": "timeSeriesTable", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": {}, + "renameByName": { + "Trend #A": "Rate", + "proto": "Protocol" + } + } + } + ], + "type": "table" }, { - "current": { - "selected": false, - "text": "", - "value": "" + "datasource": { + "type": "loki", + "uid": "${DS_LOKI}" + }, + "gridPos": { + "h": 25, + "w": 24, + "x": 0, + "y": 11 }, - "hide": 0, - "label": "String Match", - "name": "search", - "options": [ + "id": 2, + "maxDataPoints": "", + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": true, + "sortOrder": "Descending", + "wrapLogMessage": true + }, + "pluginVersion": "11.3.0", + "targets": [ { - "selected": true, - "text": "", - "value": "" + "datasource": { + "type": "loki", + "uid": "${DS_LOKI}" + }, + "editorMode": "code", + "expr": "{service_name=\"$app\"} |> \"${search}<_>\"", + "hide": false, + "legendFormat": "", + "queryType": "range", + "refId": "A" } ], - "query": "", - "skipUrlSync": false, - "type": "textbox" + "transparent": true, + "type": "logs" } - ] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": { - "hidden": false, - "refresh_intervals": [ - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ] - }, - "timezone": "", - "title": "Varnish logs", - "uid": "sadlil-loki-apps-dashboard", - "version": 1, - "weekStart": "" -} + ], + "refresh": "30s", + "schemaVersion": 40, + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "loki", + "uid": "${DS_LOKI}" + }, + "definition": "", + "label": "App", + "name": "app", + "options": [], + "query": { + "label": "service_name", + "refId": "LokiVariableQueryEditor-VariableQuery", + "stream": "", + "type": 1 + }, + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "current": { + "text": "", + "value": "" + }, + "label": "String Match", + "name": "search", + "options": [ + { + "selected": true, + "text": "", + "value": "" + } + ], + "query": "", + "type": "textbox" + }, + { + "current": {}, + "hide": 2, + "includeAll": false, + "name": "DS_PROMETHEUS", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, + { + "current": {}, + "hide": 2, + "name": "DS_LOKI", + "options": [], + "query": "loki", + "refresh": 1, + "regex": "", + "type": "datasource" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "15s", + "30s", + "1m", + "5m", + "15m" + ] + }, + "timezone": "", + "title": "Varnish logs", + "uid": "be4kwt2e2fu2oc", + "version": 1, + "weekStart": "" + } \ No newline at end of file diff --git a/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_metrics.json b/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_metrics.json index 06938ca..22340f3 100644 --- a/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_metrics.json +++ b/docker-compose-examples/grafana-monitoring/conf/grafana/provisioning/dashboards/varnish_metrics.json @@ -1,2348 +1,2236 @@ { - "annotations": { - "list": [ + "__inputs": [ { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" + "name": "DS_PROMETHEUS", + "label": "Prometheus", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" } - ] - }, - "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": 2, - "links": [], - "liveNow": false, - "panels": [ - { - "collapsed": false, - "datasource": { - "type": "loki", - "uid": "lokiUID" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 25, - "panels": [], - "repeat": "cluster", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "lokiUID" - }, - "refId": "A" - } - ], - "title": "Row title", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + ], + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "gauge", + "name": "Gauge", + "version": "" }, - "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": [] + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.3.0" }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 1 + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" }, - "id": 9, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" }, - "pluginVersion": "10.4.3", - "targets": [ + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "annotations": { + "list": [ { + "builtIn": 1, "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(irate(varnish_main_client_req{instance=~\"^($varnish_instance).*\"}[5m]))", - "format": "time_series", - "interval": "15s", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 15 + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" } - ], - "title": "Frontend Requests", - "transparent": true, - "type": "stat" + ] }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + "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, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 25, + "panels": [], + "repeat": "cluster", + "title": "Row title", + "type": "row" }, - "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 - }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ { - "color": "red", - "value": 80 + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 4, - "y": 1 - }, - "id": 2, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "irate(varnish_main_backend_req{instance=~\"^$varnish_instance.*\"}[5m])", - "format": "time_series", - "interval": "15s", - "intervalFactor": 1, - "legendFormat": "", - "metric": "varnish_main_backend_req", - "refId": "A", - "step": 15 - } - ], - "title": "Backend Requests", - "transparent": true, - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 0, + "y": 1 + }, + "id": 9, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "sum(irate(varnish_main_client_req{instance=~\"^($varnish_instance).*\"}[5m]))", + "format": "time_series", + "interval": "15s", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 15 + } + ], + "title": "Frontend Requests", + "transparent": true, + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ { - "color": "red", - "value": 80 + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } - ] - }, - "unit": "none" + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 4, + "y": 1 + }, + "id": 2, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "irate(varnish_main_backend_req{instance=~\"^$varnish_instance.*\"}[5m])", + "format": "time_series", + "interval": "15s", + "intervalFactor": 1, + "legendFormat": "", + "metric": "varnish_main_backend_req", + "refId": "A", + "step": 15 + } + ], + "title": "Backend Requests", + "transparent": true, + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "overrides": [] + "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": 6, + "w": 2, + "x": 8, + "y": 1 + }, + "id": 16, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "sum(varnish_main_vmods{instance=~\"^($varnish_instance).*\"})", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "", + "refId": "A", + "step": 600 + } + ], + "title": "Loaded VMODs", + "transparent": true, + "type": "stat" }, - "gridPos": { - "h": 6, - "w": 2, - "x": 8, - "y": 1 + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "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": "dtdurations" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 10, + "y": 1 + }, + "id": 18, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min(varnish_main_uptime{instance=~\"^($varnish_instance).*\"})", + "format": "time_series", + "hide": false, + "instant": true, + "intervalFactor": 2, + "legendFormat": "", + "range": false, + "refId": "A", + "step": 600 + } + ], + "title": "Uptime", + "transparent": true, + "type": "stat" }, - "id": 16, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "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": 6, + "w": 10, + "x": 14, + "y": 1 + }, + "id": 6, + "options": { + "minVizHeight": 200, + "minVizWidth": 200, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": false, + "sizing": "auto" + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "avg(rate(varnish_main_cache_hit[15s]) / rate(varnish_main_client_req[15s]))", + "format": "time_series", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "interval": "", + "intervalFactor": 2, + "legendFormat": "", + "metric": "", + "range": true, + "refId": "A", + "step": 600, + "useBackend": false + } + ], + "title": "Cache Hit Rate", + "transparent": true, + "type": "gauge" }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(varnish_main_vmods{instance=~\"^($varnish_instance).*\"})", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "", - "refId": "A", - "step": 600 - } - ], - "title": "Loaded VMODs", - "transparent": true, - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 7 + }, + "id": 26, + "panels": [], + "title": "Row title", + "type": "row" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - { - "color": "red", - "value": 80 + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ] - }, - "unit": "dtdurations" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 10, - "y": 1 - }, - "id": 18, - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "editorMode": "code", - "exemplar": false, - "expr": "min(varnish_main_uptime{instance=~\"^($varnish_instance).*\"})", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "legendFormat": "", - "range": false, - "refId": "A", - "step": 600 - } - ], - "title": "Uptime", - "transparent": true, - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + }, + "mappings": [], + "min": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" }, - "mappings": [ + "overrides": [ { - "options": { - "match": "null", - "result": { - "text": "N/A" - } + "matcher": { + "id": "byName", + "options": "fetch total" }, - "type": "special" - } - ], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(245, 54, 54, 0.9)", - "value": null + "properties": [ + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "min", + "value": 0 + }, + { + "id": "custom.axisPlacement", + "value": "hidden" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "frontend" }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0 + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#508642", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "backend" }, - { - "color": "rgba(50, 172, 45, 0.97)", - "value": 0 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 10, - "x": 14, - "y": 1 - }, - "hideTimeOverride": false, - "id": 6, - "maxDataPoints": 100, - "options": { - "minVizHeight": 200, - "minVizWidth": 200, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": false, - "sizing": "auto" - }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "avg(rate(varnish_main_cache_hit[5m])) / rate(varnish_main_client_req[5m])", - "format": "time_series", - "fullMetaSearch": false, - "hide": false, - "includeNullMetadata": true, - "interval": "", - "intervalFactor": 2, - "legendFormat": "", - "metric": "", - "range": true, - "refId": "A", - "step": 600, - "useBackend": false - } - ], - "title": "Cache Hit Rate", - "transparent": true, - "type": "gauge" - }, - { - "collapsed": false, - "datasource": { - "type": "loki", - "uid": "lokiUID" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 7 - }, - "id": 26, - "panels": [], - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "lokiUID" - }, - "refId": "A" - } - ], - "title": "Row title", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#CCA300", + "mode": "fixed" + } + } + ] } - }, - "mappings": [], - "min": 1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" + ] + }, + "gridPos": { + "h": 14, + "w": 12, + "x": 0, + "y": 8 + }, + "id": 8, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "sum" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "width": 400 + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "overrides": [ + "pluginVersion": "11.3.0", + "targets": [ { - "matcher": { - "id": "byName", - "options": "fetch total" + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "min", - "value": 0 - }, - { - "id": "custom.axisPlacement", - "value": "hidden" - } - ] + "expr": "sum(irate(varnish_main_client_req{instance=~\"^($varnish_instance).*\"}[5m]))", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "frontend", + "metric": "", + "refId": "A", + "step": 30 }, { - "matcher": { - "id": "byName", - "options": "frontend" + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#508642", - "mode": "fixed" - } - } - ] + "expr": "sum(irate(varnish_main_backend_req{instance=~\"^($varnish_instance).*\"}[5m]))", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "backend", + "refId": "B", + "step": 30 }, { - "matcher": { - "id": "byName", - "options": "backend" + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#CCA300", - "mode": "fixed" - } - } - ] + "expr": "sum(varnish_main_fetch_total{instance=~\"^($varnish_instance).*\"})", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "fetch total", + "refId": "C", + "step": 60 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "sum(irate(varnish_main_fetch_total{instance=~\"^($varnish_instance).*\"}[5m]))", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "fetched objects", + "refId": "D", + "step": 60 } - ] - }, - "gridPos": { - "h": 14, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 8, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "sum" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "width": 400 - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } + ], + "title": "Requests", + "transparent": true, + "type": "timeseries" }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(irate(varnish_main_client_req{instance=~\"^($varnish_instance).*\"}[5m]))", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "frontend", - "metric": "", - "refId": "A", - "step": 30 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(irate(varnish_main_backend_req{instance=~\"^($varnish_instance).*\"}[5m]))", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "backend", - "refId": "B", - "step": 30 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(varnish_main_fetch_total{instance=~\"^($varnish_instance).*\"})", - "format": "time_series", - "intervalFactor": 2, - "legendFormat": "fetch total", - "refId": "C", - "step": 60 + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(irate(varnish_main_fetch_total{instance=~\"^($varnish_instance).*\"}[5m]))", - "format": "time_series", - "intervalFactor": 2, - "legendFormat": "fetched objects", - "refId": "D", - "step": 60 - } - ], - "title": "Requests", - "transparent": true, - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 60, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": 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 + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 60, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "color": "red", - "value": 80 + "insertNulls": false, + "lineInterpolation": "stepAfter", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "cache miss %" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#890F02", - "mode": "fixed" + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 } - } - ] + ] + }, + "unit": "percentunit" }, - { - "matcher": { - "id": "byName", - "options": "cache hit %" + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "cache miss %" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#890F02", + "mode": "fixed" + } + } + ] }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#508642", - "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" + { + "matcher": { + "id": "byName", + "options": "cache hit pass %" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#C15C17", + "mode": "fixed" + } } - } - ] + ] + } + ] + }, + "gridPos": { + "h": 14, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 14, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" } - ] - }, - "gridPos": { - "h": 14, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 14, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "avg(rate(varnish_main_cache_hit{instance=~\"^($varnish_instance).*\"}[5m]) / rate(varnish_main_client_req{instance=~\"^($varnish_instance).*\"}[5m]))", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 2, - "legendFormat": "cache hit %", - "refId": "A", - "step": 60 }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "avg(rate(varnish_main_cache_hit{instance=~\"^($varnish_instance).*\"}[5m]) / rate(varnish_main_client_req{instance=~\"^($varnish_instance).*\"}[5m]))", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "cache hit %", + "refId": "A", + "step": 60 }, - "expr": "avg(1 - (rate(varnish_main_cache_hit{instance=~\"^($varnish_instance).*\"}[5m]) / rate(varnish_main_client_req{instance=~\"^($varnish_instance).*\"}[5m])))", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 2, - "legendFormat": "cache miss %", - "refId": "B", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "avg(1 - (rate(varnish_main_cache_hit{instance=~\"^($varnish_instance).*\"}[5m]) / rate(varnish_main_client_req{instance=~\"^($varnish_instance).*\"}[5m])))", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "cache miss %", + "refId": "B", + "step": 60 }, - "expr": "avg(1 - (rate(varnish_main_cache_hitpass{instance=~\"^($varnish_instance).*\"}[5m]) / rate(varnish_main_client_req{instance=~\"^($varnish_instance).*\"}[5m])))", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 2, - "legendFormat": "cache hit pass %", - "refId": "C", - "step": 60 - } - ], - "title": "Cache hits", - "transparent": true, - "type": "timeseries" - }, - { - "collapsed": false, - "datasource": { - "type": "loki", - "uid": "lokiUID" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 22 + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "avg(1 - (rate(varnish_main_cache_hitpass{instance=~\"^($varnish_instance).*\"}[5m]) / rate(varnish_main_client_req{instance=~\"^($varnish_instance).*\"}[5m])))", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "cache hit pass %", + "refId": "C", + "step": 60 + } + ], + "title": "Cache hits", + "transparent": true, + "type": "timeseries" }, - "id": 27, - "panels": [], - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "lokiUID" - }, - "refId": "A" - } - ], - "title": "Row title", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 27, + "panels": [], + "title": "Row title", + "type": "row" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 50, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 1024, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/backend .*/" + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 70 + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 50, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" } - ] + }, + "mappings": [], + "min": 1024, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" }, - { - "matcher": { - "id": "byName", - "options": "frontend" + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/backend .*/" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 70 + } + ] }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#508642", - "mode": "fixed" + { + "matcher": { + "id": "byName", + "options": "frontend" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#508642", + "mode": "fixed" + } + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/^backend$/" }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#CCA300", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } } - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": "/^backend$/" + ] }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#CCA300", - "mode": "fixed" + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 } }, - { - "id": "custom.fillOpacity", - "value": 0 + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsNull", + "value": 0 + } }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } } - } - ] + ] + } + ] + }, + "gridPos": { + "h": 14, + "w": 12, + "x": 0, + "y": 23 + }, + "id": 12, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "sum" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "width": 400 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "sum(irate(varnish_main_s_resp_hdrbytes{instance=~\"^($varnish_instance).*\"}[5m]) + irate(varnish_main_s_resp_bodybytes{instance=~\"^($varnish_instance).*\"}[5m]))", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "frontend", + "refId": "A", + "step": 30 }, { - "matcher": { - "id": "byValue", - "options": { - "op": "gte", - "reducer": "allIsZero", - "value": 0 - } + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": true, - "tooltip": true, - "viz": false - } - } - ] + "expr": "sum(irate(varnish_backend_beresp_hdrbytes{instance=~\"^($varnish_instance).*\"}[5m]) + irate(varnish_backend_beresp_bodybytes{instance=~\"^($varnish_instance).*\"}[5m]))", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "backend", + "metric": "", + "refId": "B", + "step": 30 }, { - "matcher": { - "id": "byValue", - "options": { - "op": "gte", - "reducer": "allIsNull", - "value": 0 - } + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": true, - "tooltip": true, - "viz": false - } - } - ] + "expr": "sum(irate(varnish_backend_beresp_hdrbytes{instance=~\"^($varnish_instance).*\"}[5m]) + irate(varnish_backend_beresp_bodybytes{instance=~\"^($varnish_instance).*\"}[5m])) by (backend)", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "backend {{ backend }}", + "refId": "C", + "step": 60 } - ] - }, - "gridPos": { - "h": 14, - "w": 12, - "x": 0, - "y": 23 + ], + "title": "Network", + "transparent": true, + "type": "timeseries" }, - "hideTimeOverride": false, - "id": 12, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "sum" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "width": 400 - }, - "tooltip": { - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(irate(varnish_main_s_resp_hdrbytes{instance=~\"^($varnish_instance).*\"}[5m]) + irate(varnish_main_s_resp_bodybytes{instance=~\"^($varnish_instance).*\"}[5m]))", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "frontend", - "refId": "A", - "step": 30 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(irate(varnish_backend_beresp_hdrbytes{instance=~\"^($varnish_instance).*\"}[5m]) + irate(varnish_backend_beresp_bodybytes{instance=~\"^($varnish_instance).*\"}[5m]))", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "backend", - "metric": "", - "refId": "B", - "step": 30 + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(irate(varnish_backend_beresp_hdrbytes{instance=~\"^($varnish_instance).*\"}[5m]) + irate(varnish_backend_beresp_bodybytes{instance=~\"^($varnish_instance).*\"}[5m])) by (backend)", - "format": "time_series", - "intervalFactor": 2, - "legendFormat": "backend {{ backend }}", - "refId": "C", - "step": 60 - } - ], - "title": "Network", - "transparent": true, - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": 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 + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "color": "red", - "value": 80 + "insertNulls": 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": "none" }, - "unit": "none" + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/.*expired/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#82B5D8", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*LRU moved/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#F9E2D2", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*LRU nuked/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#BF1B00", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*mem /" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#BA43A9", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "unit", + "value": "bytes" + } + ] + } + ] + }, + "gridPos": { + "h": 14, + "w": 12, + "x": 12, + "y": 23 + }, + "id": 13, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "max", + "min", + "sum" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "overrides": [ + "pluginVersion": "11.3.0", + "targets": [ { - "matcher": { - "id": "byRegexp", - "options": "/.*expired/" + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#82B5D8", - "mode": "fixed" - } - } - ] + "expr": "sum(irate(varnish_main_n_expired{instance=~\"^($varnish_instance).*\"}[5m]))", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "expired", + "metric": "varnish_main_n_object", + "refId": "A", + "step": 60 }, { - "matcher": { - "id": "byRegexp", - "options": "/.*LRU moved/" + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#F9E2D2", - "mode": "fixed" - } - } - ] + "expr": "sum(irate(varnish_main_n_lru_moved{instance=~\"^($varnish_instance).*\"}[5m]))", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "LRU moved", + "refId": "C", + "step": 60 }, { - "matcher": { - "id": "byRegexp", - "options": "/.*LRU nuked/" + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#BF1B00", - "mode": "fixed" - } - } - ] + "expr": "sum(irate(varnish_main_n_lru_nuked{instance=~\"^($varnish_instance).*\"}[5m]))", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "LRU nuked", + "refId": "B", + "step": 60 }, { - "matcher": { - "id": "byRegexp", - "options": "/.*mem /" + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#BA43A9", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "unit", - "value": "bytes" - } - ] + "expr": "sum(varnish_sma_g_bytes{type=\"s0\", instance=~\"^($varnish_instance).*\"})", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "mem used", + "metric": "", + "refId": "E", + "step": 60 } - ] + ], + "title": "Cache", + "transparent": true, + "type": "timeseries" }, - "gridPos": { - "h": 14, - "w": 12, - "x": 12, - "y": 23 - }, - "hideTimeOverride": false, - "id": 13, - "options": { - "legend": { - "calcs": [ - "lastNotNull", - "max", - "min", - "sum" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 37 + }, + "id": 28, + "panels": [], + "title": "New row", + "type": "row" }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(irate(varnish_main_n_expired{instance=~\"^($varnish_instance).*\"}[5m]))", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "expired", - "metric": "varnish_main_n_object", - "refId": "A", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(irate(varnish_main_n_lru_moved{instance=~\"^($varnish_instance).*\"}[5m]))", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "LRU moved", - "refId": "C", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(irate(varnish_main_n_lru_nuked{instance=~\"^($varnish_instance).*\"}[5m]))", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "LRU nuked", - "refId": "B", - "step": 60 + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum(varnish_sma_g_bytes{type=\"s0\", instance=~\"^($varnish_instance).*\"})", - "format": "time_series", - "intervalFactor": 2, - "legendFormat": "mem used", - "metric": "", - "refId": "E", - "step": 60 - } - ], - "title": "Cache", - "transparent": true, - "type": "timeseries" - }, - { - "collapsed": false, - "datasource": { - "type": "loki", - "uid": "lokiUID" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 37 - }, - "id": 28, - "panels": [], - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "lokiUID" - }, - "refId": "A" - } - ], - "title": "New row", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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 + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "color": "red", - "value": 80 + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ] - }, - "unit": "short" + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 14, + "w": 12, + "x": 0, + "y": 38 + }, + "id": 21, + "options": { + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "overrides": [] - }, - "gridPos": { - "h": 14, - "w": 12, - "x": 0, - "y": 38 - }, - "id": 21, - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "rate(varnish_main_backend_conn[1m])", + "intervalFactor": 2, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "step": 60 + } + ], + "title": "Backend Connections (per minute)", + "transparent": true, + "type": "timeseries" }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "rate(varnish_main_backend_conn{instance=~\"^($varnish_instance).*\"}[1m])", - "intervalFactor": 2, - "legendFormat": "Backend conn. success", - "refId": "A", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "rate(varnish_main_backend_recycle{instance=~\"^($varnish_instance).*\"}[1m])", - "intervalFactor": 2, - "legendFormat": "Backend conn. recycles", - "refId": "B", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "rate(varnish_main_backend_reuse{instance=~\"^($varnish_instance).*\"}[1m])", - "intervalFactor": 2, - "legendFormat": "Backend conn. reuses", - "refId": "C", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "rate(varnish_main_backend_fail{instance=~\"^($varnish_instance).*\"}[1m])", - "intervalFactor": 2, - "legendFormat": "Backend conn. failures", - "refId": "D", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "rate(varnish_main_backend_unhealthy{instance=~\"^($varnish_instance).*\"}[1m])", - "intervalFactor": 2, - "legendFormat": "Backend conn. not attempted", - "refId": "E", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "rate(varnish_main_backend_busy{instance=~\"^($varnish_instance).*\"}[1m])", - "intervalFactor": 2, - "legendFormat": "Backend conn. too many", - "refId": "F", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "rate(varnish_main_backend_req{instance=~\"^($varnish_instance).*\"}[1m])", - "intervalFactor": 2, - "legendFormat": "Backend requests made", - "refId": "G", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "rate(varnish_main_backend_retry{instance=~\"^($varnish_instance).*\"}[1m])", - "intervalFactor": 2, - "legendFormat": "Backend conn. retry", - "refId": "H", - "step": 60 + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "rate(varnish_backend_conn{instance=~\"^($varnish_instance).*\"}[1m])", - "intervalFactor": 2, - "legendFormat": "Concurrent connections to backend", - "refId": "I", - "step": 60 - } - ], - "title": "Backend Connections (per minute)", - "transparent": true, - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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 + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "color": "red", - "value": 80 + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ] - }, - "unit": "short" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 14, + "w": 12, + "x": 12, + "y": 38 + }, + "id": 19, + "options": { + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "overrides": [] - }, - "gridPos": { - "h": 14, - "w": 12, - "x": 12, - "y": 38 - }, - "id": 19, - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "sum by(type) (rate(varnish_main_sessions{instance=~\"^($varnish_instance).*\"}[1m]))", - "intervalFactor": 2, - "legendFormat": "session - {{type}}", - "refId": "A", - "step": 60 - } - ], - "title": "Sessions", - "transparent": true, - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "sum by(type) (rate(varnish_main_sessions{instance=~\"^($varnish_instance).*\"}[1m]))", + "intervalFactor": 2, + "legendFormat": "session - {{type}}", + "refId": "A", + "step": 60 + } + ], + "title": "Sessions", + "transparent": true, + "type": "timeseries" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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 + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "color": "red", - "value": 80 + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 14, - "w": 12, - "x": 0, - "y": 52 - }, - "id": 20, - "options": { - "legend": { - "calcs": [ - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "varnish_main_threads_created{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Threads created", - "metric": "varnish_main_threads_created", - "refId": "A", - "step": 60 + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 14, + "w": 12, + "x": 0, + "y": 52 + }, + "id": 20, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_threads_created{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Threads created", + "metric": "varnish_main_threads_created", + "refId": "A", + "step": 60 }, - "expr": "varnish_main_threads_destroyed{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Threads destroyed", - "refId": "B", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_threads_destroyed{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Threads destroyed", + "refId": "B", + "step": 60 }, - "expr": "varnish_main_threads_failed{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Thread creation failed", - "refId": "C", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_threads_failed{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Thread creation failed", + "refId": "C", + "step": 60 }, - "expr": "varnish_main_threads_limited{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Max Threads hit", - "refId": "D", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_threads_limited{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Max Threads hit", + "refId": "D", + "step": 60 }, - "expr": "varnish_main_threads{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Total number of threads", - "refId": "E", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_threads{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Total number of threads", + "refId": "E", + "step": 60 }, - "expr": "varnish_main_thread_queue_len{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Length of session queue waiting for threads", - "refId": "F", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_thread_queue_len{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Length of session queue waiting for threads", + "refId": "F", + "step": 60 }, - "expr": "varnish_main_pools{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Number of thread pools ", - "refId": "G", - "step": 60 - } - ], - "title": "Threads", - "transparent": true, - "type": "timeseries" - }, - { - "collapsed": false, - "datasource": { - "type": "loki", - "uid": "lokiUID" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 66 + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_pools{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Number of thread pools ", + "refId": "G", + "step": 60 + } + ], + "title": "Threads", + "transparent": true, + "type": "timeseries" }, - "id": 29, - "panels": [], - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "lokiUID" - }, - "refId": "A" - } - ], - "title": "New row", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 66 + }, + "id": 29, + "panels": [], + "title": "New row", + "type": "row" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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 + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "color": "red", - "value": 80 + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 67 - }, - "id": 22, - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "editorMode": "code", - "expr": "varnish_main_bans{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Count of Bans", - "range": true, - "refId": "A", - "step": 60 + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 67 + }, + "id": 22, + "options": { + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "varnish_main_bans{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Count of Bans", + "range": true, + "refId": "A", + "step": 60 }, - "expr": "varnish_main_bans_completed{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Number of bans marked 'completed'", - "refId": "B", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_bans_completed{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Number of bans marked 'completed'", + "refId": "B", + "step": 60 }, - "expr": "varnish_main_bans_deleted{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Bans deleted", - "refId": "C", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_bans_deleted{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Bans deleted", + "refId": "C", + "step": 60 }, - "expr": "varnish_main_bans_dups{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Bans superseded by other bans", - "refId": "D", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_bans_dups{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Bans superseded by other bans", + "refId": "D", + "step": 60 }, - "expr": "varnish_main_bans_obj{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Number of bans using obj.*", - "refId": "I", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_bans_obj{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Number of bans using obj.*", + "refId": "I", + "step": 60 }, - "expr": "varnish_main_bans_obj_killed{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Objects killed by bans (lookup)", - "refId": "J", - "step": 60 - } - ], - "title": "Bans", - "transparent": true, - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_bans_obj_killed{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Objects killed by bans (lookup)", + "refId": "J", + "step": 60 + } + ], + "title": "Bans", + "transparent": true, + "type": "timeseries" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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 + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "color": "red", - "value": 80 + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 67 - }, - "id": 23, - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "varnish_main_bans_persisted_bytes{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Bytes used by the persisted ban lists", - "refId": "K", - "step": 60 + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 12, + "y": 67 + }, + "id": 23, + "options": { + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_bans_persisted_bytes{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Bytes used by the persisted ban lists", + "refId": "K", + "step": 60 }, - "expr": "varnish_main_bans_persisted_fragmentation{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Extra bytes in persisted ban lists due to fragmentation", - "refId": "L", - "step": 60 - } - ], - "title": "Size of Ban Lists", - "transparent": true, - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_bans_persisted_fragmentation{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Extra bytes in persisted ban lists due to fragmentation", + "refId": "L", + "step": 60 + } + ], + "title": "Size of Ban Lists", + "transparent": true, + "type": "timeseries" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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 + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "color": "red", - "value": 80 + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ] - }, - "unit": "short" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 79 + }, + "id": 24, + "options": { + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 79 - }, - "id": 24, - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "10.4.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_bans_lurker_contention{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Lurker gave way for lookup", + "refId": "E", + "step": 60 }, - "expr": "varnish_main_bans_lurker_contention{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Lurker gave way for lookup", - "refId": "E", - "step": 60 - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_bans_lurker_obj_killed{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Objects killed by bans (lurker)", + "refId": "F", + "step": 60 }, - "expr": "varnish_main_bans_lurker_obj_killed{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Objects killed by bans (lurker)", - "refId": "F", - "step": 60 - }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_bans_lurker_tested{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Bans tested against objects (lurker)", + "refId": "G", + "step": 60 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "varnish_main_bans_lurker_tests_tested{instance=~\"^($varnish_instance).*\"}", + "intervalFactor": 2, + "legendFormat": "Ban tests tested against objects (lurker)", + "refId": "H", + "step": 60 + } + ], + "title": "Ban Lurker", + "transparent": true, + "type": "timeseries" + } + ], + "refresh": "30s", + "schemaVersion": 40, + "tags": [], + "templating": { + "list": [ { + "current": {}, "datasource": { "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "varnish_main_bans_lurker_tested{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Bans tested against objects (lurker)", - "refId": "G", - "step": 60 + "uid": "${DS_PROMETHEUS}" + }, + "definition": "", + "includeAll": true, + "label": "Instance", + "name": "varnish_instance", + "options": [], + "query": "label_values(varnish_up, instance)", + "refresh": 1, + "regex": "/^(.*):/", + "sort": 1, + "type": "query" }, { - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "expr": "varnish_main_bans_lurker_tests_tested{instance=~\"^($varnish_instance).*\"}", - "intervalFactor": 2, - "legendFormat": "Ban tests tested against objects (lurker)", - "refId": "H", - "step": 60 + "current": {}, + "description": "", + "hide": 2, + "name": "DS_PROMETHEUS", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" } - ], - "title": "Ban Lurker", - "transparent": true, - "type": "timeseries" - } - ], - "refresh": "", - "schemaVersion": 39, - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "prometheusUID" - }, - "definition": "", - "hide": 0, - "includeAll": true, - "label": "Instance", - "multi": false, - "name": "varnish_instance", - "options": [], - "query": "label_values(varnish_up, instance)", - "refresh": 1, - "regex": "/^(.*):/", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "2024-08-13T15:34:27.201Z", - "to": "2024-08-13T16:54:27.233Z" - }, - "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 metrics", - "uid": "ecbe1e96-9e52-40b6-b7ce-742538729dd8", - "version": 1, - "weekStart": "" -} \ No newline at end of file + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": { + "nowDelay": "", + "refresh_intervals": [ + "5s", + "15s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "browser", + "title": "Varnish metrics", + "uid": "ce2f9bo3ci7swc", + "version": 1, + "weekStart": "" + } \ No newline at end of file diff --git a/docker-compose-examples/grafana-monitoring/conf/loki/local-config.yaml b/docker-compose-examples/grafana-monitoring/conf/loki/local-config.yaml new file mode 100644 index 0000000..255deb0 --- /dev/null +++ b/docker-compose-examples/grafana-monitoring/conf/loki/local-config.yaml @@ -0,0 +1,64 @@ +auth_enabled: false + +server: + http_listen_port: 3100 + grpc_listen_port: 9096 + +common: + path_prefix: /tmp/loki + storage: + filesystem: + chunks_directory: /tmp/loki/chunks + rules_directory: /tmp/loki/rules + replication_factor: 1 + ring: + kvstore: + store: inmemory + +query_range: + results_cache: + cache: + embedded_cache: + enabled: true + max_size_mb: 100 + +schema_config: + configs: + - from: 2024-10-30 + store: tsdb + object_store: filesystem + schema: v13 + index: + prefix: index_ + period: 24h + +ruler: + wal: + dir: /loki + evaluation_interval: 15s + storage: + type: local + local: + directory: /etc/loki/rules + alertmanager_url: http://localhost:9093 + remote_write: + enabled: true + client: + url: http://prometheus:9090/api/v1/write + +limits_config: + ingestion_rate_mb: 12 + ingestion_burst_size_mb: 16 + +# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration +# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/ +# +# Statistics help us better understand how Loki is used, and they show us performance +# levels for most users. This helps us prioritize features and documentation. +# For more information on what's sent, look at +# https://github.com/grafana/loki/blob/main/pkg/analytics/stats.go +# Refer to the buildReport method to see what goes into a report. +# +# If you would like to disable reporting, uncomment the following lines: +analytics: + reporting_enabled: false diff --git a/docker-compose-examples/grafana-monitoring/conf/loki/rules/fake/log.yaml b/docker-compose-examples/grafana-monitoring/conf/loki/rules/fake/log.yaml new file mode 100644 index 0000000..dccc4b4 --- /dev/null +++ b/docker-compose-examples/grafana-monitoring/conf/loki/rules/fake/log.yaml @@ -0,0 +1,24 @@ +groups: + - name: LOG + interval: 15s + rules: + - record: status:count:rate15s + expr: | + sum(rate({service_name="varnish"} | json status="resp.status" | keep status [15s])) by (status) + labels: + job: varnish + - record: handling:count:rate15s + expr: | + sum(rate({service_name="varnish"} | json handling | keep handling [15s])) by (handling) + labels: + job: varnish + - record: protocol:count:rate15s + expr: | + sum(rate({service_name="varnish"} | json proto="req.proto" | keep proto [15s])) by (proto) + labels: + job: varnish + - record: content_type:count:rate15s + expr: | + sum(rate({service_name="varnish"} | json type="resp.headers[\"content-type\"][0]" | keep type [15s])) by (type) + labels: + job: varnish \ No newline at end of file diff --git a/docker-compose-examples/grafana-monitoring/docker-compose.yaml b/docker-compose-examples/grafana-monitoring/docker-compose.yaml index 3d40f16..ff105e2 100755 --- a/docker-compose-examples/grafana-monitoring/docker-compose.yaml +++ b/docker-compose-examples/grafana-monitoring/docker-compose.yaml @@ -107,15 +107,24 @@ services: image: prom/prometheus:v2.53.0 volumes: - ${PROMETHEUS_CONF}:/etc/prometheus/prometheus.yml - command: --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --web.console.libraries=/usr/share/prometheus/console_libraries --web.console.templates=/usr/share/prometheus/consoles --enable-feature=otlp-write-receiver --web.enable-remote-write-receiver --enable-feature=native-histograms + command: + - '--config.file=/etc/prometheus/prometheus.yml' + - '--storage.tsdb.path=/prometheus' + - '--web.console.libraries=/usr/share/prometheus/console_libraries' + - '--web.console.templates=/usr/share/prometheus/consoles' + - '--enable-feature=otlp-write-receiver' + - '--web.enable-remote-write-receiver' + - '--enable-feature=native-histograms' loki: image: grafana/loki:3.1.0 command: -config.file=/etc/loki/local-config.yaml + volumes: + - ./conf/loki:/etc/loki volumes: workdir: driver: local driver_opts: type: tmpfs - device: tmpfs + device: tmpfs \ No newline at end of file diff --git a/docker-compose-examples/grafana-monitoring/image/dashboard_debug.png b/docker-compose-examples/grafana-monitoring/image/dashboard_debug.png new file mode 100644 index 0000000..eec7248 Binary files /dev/null and b/docker-compose-examples/grafana-monitoring/image/dashboard_debug.png differ diff --git a/docker-compose-examples/grafana-monitoring/image/dashboard_overview.png b/docker-compose-examples/grafana-monitoring/image/dashboard_overview.png new file mode 100644 index 0000000..45863f5 Binary files /dev/null and b/docker-compose-examples/grafana-monitoring/image/dashboard_overview.png differ diff --git a/docker-compose-examples/grafana-monitoring/image/style_stats.png b/docker-compose-examples/grafana-monitoring/image/style_stats.png new file mode 100644 index 0000000..0295a36 Binary files /dev/null and b/docker-compose-examples/grafana-monitoring/image/style_stats.png differ diff --git a/docker-compose-examples/grafana-monitoring/image/style_stoplight.png b/docker-compose-examples/grafana-monitoring/image/style_stoplight.png new file mode 100644 index 0000000..f2ceacf Binary files /dev/null and b/docker-compose-examples/grafana-monitoring/image/style_stoplight.png differ diff --git a/docker-compose-examples/grafana-monitoring/image/style_timeseries.png b/docker-compose-examples/grafana-monitoring/image/style_timeseries.png new file mode 100644 index 0000000..f02e075 Binary files /dev/null and b/docker-compose-examples/grafana-monitoring/image/style_timeseries.png differ