Filippo Giunchedi has uploaded a new change for review.
https://gerrit.wikimedia.org/r/268085
Change subject: grafana: import varnish-http-errors
......................................................................
grafana: import varnish-http-errors
generated by:
cd files/grafana/dashboards
../grafana-dashboard varnish-http-errors
Bug: T125644
Change-Id: I6d17cf71513badfd0c0ee27f8bc9873ff3d8502d
---
A files/grafana/dashboards/varnish-http-errors
M manifests/role/grafana.pp
2 files changed, 1,118 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/85/268085/1
diff --git a/files/grafana/dashboards/varnish-http-errors
b/files/grafana/dashboards/varnish-http-errors
new file mode 100644
index 0000000..391070e
--- /dev/null
+++ b/files/grafana/dashboards/varnish-http-errors
@@ -0,0 +1,1114 @@
+{
+ "annotations": {
+ "enable": true,
+ "list": [
+ {
+ "datasource": "graphite",
+ "enable": false,
+ "iconColor": "rgba(21, 106, 119, 0.86)",
+ "iconSize": 10,
+ "lineColor": "rgba(11, 89, 115, 0.59)",
+ "name": "Show deployments",
+ "showLine": true,
+ "target": "exclude(aliasByNode(deploy.*.count,-2),\"all\")"
+ }
+ ]
+ },
+ "editable": true,
+ "hideControls": true,
+ "id": 92,
+ "links": [],
+ "originalTitle": "Varnish: HTTP Errors",
+ "refresh": "1m",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "100px",
+ "panels": [
+ {
+ "cacheTimeout": null,
+ "colorBackground": false,
+ "colorValue": true,
+ "colors": [
+ "rgba(129, 237, 0, 0.7)",
+ "rgba(237, 129, 40, 0.7)",
+ "rgba(245, 54, 54, 0.7)"
+ ],
+ "datasource": "graphite",
+ "format": "percent",
+ "height": "",
+ "id": 18,
+ "interval": null,
+ "links": [],
+ "maxDataPoints": "",
+ "nullPointMode": "connected",
+ "nullText": null,
+ "postfix": "",
+ "postfixFontSize": "50%",
+ "prefix": "HTTP 5xx/500",
+ "prefixFontSize": "50%",
+ "span": 6,
+ "sparkline": {
+ "fillColor": "rgba(31, 118, 189, 0.18)",
+ "full": true,
+ "lineColor": "rgb(31, 120, 193)",
+ "show": true
+ },
+ "targets": [
+ {
+ "refId": "A",
+ "target":
"asPercent(sumSeries(varnish.*.*.frontend.request.client.status.{5xx,500}.sum),
sumSeries(varnish.*.*.frontend.request.client.status.*.sum))",
+ "textEditor": true
+ }
+ ],
+ "thresholds": "0,0.01,0.1",
+ "timeShift": null,
+ "type": "singlestat",
+ "valueFontSize": "80%",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ],
+ "valueName": "current"
+ },
+ {
+ "cacheTimeout": null,
+ "colorBackground": false,
+ "colorValue": true,
+ "colors": [
+ "rgba(129, 237, 0, 0.7)",
+ "rgba(237, 129, 40, 0.7)",
+ "rgba(245, 54, 54, 0.7)"
+ ],
+ "datasource": "graphite",
+ "format": "percent",
+ "height": "",
+ "id": 19,
+ "interval": null,
+ "links": [],
+ "maxDataPoints": "",
+ "nullPointMode": "connected",
+ "nullText": null,
+ "postfix": "",
+ "postfixFontSize": "50%",
+ "prefix": "HTTP 4xx",
+ "prefixFontSize": "50%",
+ "span": 6,
+ "sparkline": {
+ "fillColor": "rgba(31, 118, 189, 0.18)",
+ "full": true,
+ "lineColor": "rgb(31, 120, 193)",
+ "show": true
+ },
+ "targets": [
+ {
+ "refId": "A",
+ "target":
"asPercent(sumSeries(varnish.*.*.frontend.request.client.status.4xx.sum),
sumSeries(varnish.*.*.frontend.request.client.total.sum))",
+ "textEditor": true
+ }
+ ],
+ "thresholds": "0,3,5",
+ "type": "singlestat",
+ "valueFontSize": "80%",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ],
+ "valueName": "current"
+ },
+ {
+ "cacheTimeout": null,
+ "colorBackground": false,
+ "colorValue": false,
+ "colors": [
+ "rgba(129, 237, 0, 0.7)",
+ "rgba(237, 129, 40, 0.7)",
+ "rgba(245, 54, 54, 0.7)"
+ ],
+ "datasource": "graphite",
+ "format": "short",
+ "height": "",
+ "id": 11,
+ "interval": null,
+ "links": [],
+ "maxDataPoints": "",
+ "nullPointMode": "connected",
+ "nullText": null,
+ "postfix": "/min",
+ "postfixFontSize": "30%",
+ "prefix": "HTTP 500",
+ "prefixFontSize": "50%",
+ "span": 3,
+ "sparkline": {
+ "fillColor": "rgba(31, 118, 189, 0.18)",
+ "full": true,
+ "lineColor": "rgb(31, 120, 193)",
+ "show": true
+ },
+ "targets": [
+ {
+ "refId": "A",
+ "target":
"movingAverage(sumSeries(varnish.*.*.frontend.request.client.status.500.sum),
3)",
+ "textEditor": true
+ }
+ ],
+ "thresholds": "0,100,250",
+ "timeShift": null,
+ "type": "singlestat",
+ "valueFontSize": "50%",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ],
+ "valueName": "current"
+ },
+ {
+ "cacheTimeout": null,
+ "colorBackground": false,
+ "colorValue": false,
+ "colors": [
+ "rgba(129, 237, 0, 0.7)",
+ "rgba(237, 129, 40, 0.7)",
+ "rgba(245, 54, 54, 0.7)"
+ ],
+ "datasource": "graphite",
+ "format": "short",
+ "height": "",
+ "id": 12,
+ "interval": null,
+ "links": [],
+ "maxDataPoints": "",
+ "nullPointMode": "connected",
+ "nullText": null,
+ "postfix": "/min",
+ "postfixFontSize": "30%",
+ "prefix": "HTTP 5xx",
+ "prefixFontSize": "50%",
+ "span": 3,
+ "sparkline": {
+ "fillColor": "rgba(31, 118, 189, 0.18)",
+ "full": true,
+ "lineColor": "rgb(31, 120, 193)",
+ "show": true
+ },
+ "targets": [
+ {
+ "refId": "A",
+ "target":
"movingAverage(sumSeries(varnish.*.*.frontend.request.client.status.5xx.sum),
3)",
+ "textEditor": true
+ }
+ ],
+ "thresholds": "0,100,400",
+ "type": "singlestat",
+ "valueFontSize": "50%",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ],
+ "valueName": "current"
+ },
+ {
+ "cacheTimeout": null,
+ "colorBackground": false,
+ "colorValue": false,
+ "colors": [
+ "rgba(129, 237, 0, 0.7)",
+ "rgba(237, 129, 40, 0.7)",
+ "rgba(245, 54, 54, 0.7)"
+ ],
+ "datasource": "graphite",
+ "format": "short",
+ "height": "",
+ "id": 13,
+ "interval": null,
+ "links": [],
+ "maxDataPoints": "",
+ "nullPointMode": "connected",
+ "nullText": null,
+ "postfix": "/min",
+ "postfixFontSize": "30%",
+ "prefix": "HTTP 4xx",
+ "prefixFontSize": "50%",
+ "span": 3,
+ "sparkline": {
+ "fillColor": "rgba(31, 118, 189, 0.18)",
+ "full": true,
+ "lineColor": "rgb(31, 120, 193)",
+ "show": true
+ },
+ "targets": [
+ {
+ "refId": "A",
+ "target":
"movingAverage(sumSeries(varnish.*.*.frontend.request.client.status.4xx.sum),
3)",
+ "textEditor": true
+ }
+ ],
+ "thresholds": "",
+ "type": "singlestat",
+ "valueFontSize": "50%",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ],
+ "valueName": "current"
+ },
+ {
+ "cacheTimeout": null,
+ "colorBackground": false,
+ "colorValue": false,
+ "colors": [
+ "rgba(129, 237, 0, 0.7)",
+ "rgba(237, 129, 40, 0.7)",
+ "rgba(245, 54, 54, 0.7)"
+ ],
+ "datasource": "graphite",
+ "format": "short",
+ "height": "",
+ "hideTimeOverride": true,
+ "id": 23,
+ "interval": null,
+ "links": [],
+ "maxDataPoints": "",
+ "nullPointMode": "connected",
+ "nullText": null,
+ "postfix": "/min",
+ "postfixFontSize": "30%",
+ "prefix": "Reqs",
+ "prefixFontSize": "50%",
+ "span": 3,
+ "sparkline": {
+ "fillColor": "rgba(31, 118, 189, 0.18)",
+ "full": true,
+ "lineColor": "rgb(31, 120, 193)",
+ "show": true
+ },
+ "targets": [
+ {
+ "refId": "A",
+ "target":
"movingAverage(sumSeries(varnish.*.*.frontend.request.client.total.sum), 3)",
+ "textEditor": true
+ }
+ ],
+ "thresholds": "",
+ "timeShift": "5m",
+ "type": "singlestat",
+ "valueFontSize": "50%",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ],
+ "valueName": "current"
+ }
+ ],
+ "showTitle": false,
+ "title": "Overview"
+ },
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "350px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "annotate": {
+ "enable": false
+ },
+ "bars": false,
+ "datasource": "graphite",
+ "fill": 1,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMax": null,
+ "leftMin": 0,
+ "max": null,
+ "min": null,
+ "rightLogBase": 1,
+ "rightMax": null,
+ "rightMin": null,
+ "threshold1": 100,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": 400,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)",
+ "thresholdLine": false
+ },
+ "height": "",
+ "id": 7,
+ "interactive": true,
+ "leftYAxisLabel": "",
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "legend_counts": true,
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "connected",
+ "options": false,
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "resolution": 100,
+ "scale": 1,
+ "seriesOverrides": [
+ {
+ "alias": "500 resp/min",
+ "fill": 3,
+ "linewidth": 2,
+ "zindex": 1
+ }
+ ],
+ "span": 12,
+ "spyable": true,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "hide": false,
+ "refId": "A",
+ "target":
"alias(movingAverage(sumSeries(varnish.*.*.frontend.request.client.status.500.sum),
5), '500 resp/min')",
+ "textEditor": true
+ },
+ {
+ "hide": true,
+ "refId": "B",
+ "target":
"alias(timeShift(movingAverage(sumSeries(varnish.*.*.frontend.request.client.status.500.sum),
5), '1d'), 'yesterday')",
+ "textEditor": true
+ },
+ {
+ "hide": true,
+ "refId": "C",
+ "target": "alias(timeShift(
sumSeries(varnish.*.*.frontend.request.client.status.500.sum) , '7d'), 'last
week')",
+ "textEditor": true
+ }
+ ],
+ "timeFrom": null,
+ "timeShift": null,
+ "timezone": "browser",
+ "title": "HTTP 500 Responses",
+ "tooltip": {
+ "query_as_alias": true,
+ "shared": true,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "zerofill": true
+ },
+ {
+ "aliasColors": {},
+ "annotate": {
+ "enable": false
+ },
+ "bars": false,
+ "datasource": "graphite",
+ "fill": 1,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMax": null,
+ "leftMin": null,
+ "max": null,
+ "min": null,
+ "rightLogBase": 1,
+ "rightMax": null,
+ "rightMin": null,
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)",
+ "thresholdLine": false
+ },
+ "height": "200px",
+ "id": 14,
+ "interactive": true,
+ "leftYAxisLabel": "",
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": false,
+ "max": false,
+ "min": true,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "legend_counts": true,
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": false,
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "resolution": 100,
+ "scale": 1,
+ "seriesOverrides": [],
+ "span": 12,
+ "spyable": true,
+ "stack": false,
+ "steppedLine": true,
+ "targets": [
+ {
+ "hide": false,
+ "refId": "A",
+ "target":
"alias(summarize(sumSeries(varnish.*.*.frontend.request.client.status.500.sum),
'12h', 'avg', true), '500 resp/min')",
+ "textEditor": true
+ }
+ ],
+ "timeFrom": "2M",
+ "timeShift": null,
+ "timezone": "browser",
+ "title": "History",
+ "tooltip": {
+ "query_as_alias": true,
+ "shared": true,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "zerofill": true
+ }
+ ],
+ "showTitle": false,
+ "title": "500"
+ },
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "350px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "annotate": {
+ "enable": false
+ },
+ "bars": false,
+ "datasource": "graphite",
+ "decimals": null,
+ "fill": 1,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMax": null,
+ "leftMin": 0,
+ "max": null,
+ "min": null,
+ "rightLogBase": 1,
+ "rightMax": null,
+ "rightMin": null,
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)",
+ "thresholdLine": true
+ },
+ "height": "",
+ "id": 17,
+ "interactive": true,
+ "leftYAxisLabel": "",
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "legend_counts": true,
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "connected",
+ "options": false,
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "resolution": 100,
+ "scale": 1,
+ "seriesOverrides": [
+ {
+ "alias": "5xx resp/min",
+ "fill": 3,
+ "linewidth": 2,
+ "zindex": 1
+ }
+ ],
+ "span": 12,
+ "spyable": true,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "hide": false,
+ "refId": "A",
+ "target":
"alias(movingAverage(sumSeries(varnish.*.*.frontend.request.client.status.5xx.sum),
5), '5xx resp/min')",
+ "textEditor": true
+ },
+ {
+ "hide": true,
+ "refId": "B",
+ "target":
"alias(timeShift(movingAverage(sumSeries(varnish.*.*.frontend.request.client.status.5xx.sum),
5), '1d'), 'yesterday')",
+ "textEditor": true
+ },
+ {
+ "hide": true,
+ "refId": "C",
+ "target":
"alias(timeShift(sumSeries(varnish.*.*.frontend.request.client.status.5xx.sum),
'7d'), 'last week')",
+ "textEditor": false
+ }
+ ],
+ "timeFrom": null,
+ "timeShift": null,
+ "timezone": "browser",
+ "title": "HTTP 5xx Responses",
+ "tooltip": {
+ "query_as_alias": true,
+ "shared": true,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "zerofill": true
+ },
+ {
+ "aliasColors": {},
+ "annotate": {
+ "enable": false
+ },
+ "bars": false,
+ "datasource": "graphite",
+ "fill": 1,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMax": null,
+ "leftMin": null,
+ "max": null,
+ "min": null,
+ "rightLogBase": 1,
+ "rightMax": null,
+ "rightMin": null,
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)",
+ "thresholdLine": false
+ },
+ "height": "200px",
+ "id": 21,
+ "interactive": true,
+ "leftYAxisLabel": "",
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": false,
+ "max": false,
+ "min": true,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "legend_counts": true,
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": false,
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "resolution": 100,
+ "scale": 1,
+ "seriesOverrides": [],
+ "span": 12,
+ "spyable": true,
+ "stack": false,
+ "steppedLine": true,
+ "targets": [
+ {
+ "hide": false,
+ "refId": "A",
+ "target": "alias(summarize(
sumSeries(varnish.*.*.frontend.request.client.status.5xx.sum) , '12h', 'avg',
true), '500 resp/min')",
+ "textEditor": true
+ }
+ ],
+ "timeFrom": "2M",
+ "timeShift": null,
+ "timezone": "browser",
+ "title": "History",
+ "tooltip": {
+ "query_as_alias": true,
+ "shared": true,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "zerofill": true
+ }
+ ],
+ "title": "5xx"
+ },
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "350px",
+ "panels": [
+ {
+ "aliasColors": {
+ "max 4xx resp/min": "#F29191"
+ },
+ "annotate": {
+ "enable": false
+ },
+ "bars": false,
+ "datasource": "graphite",
+ "fill": 1,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMax": null,
+ "leftMin": null,
+ "max": null,
+ "min": null,
+ "rightLogBase": 1,
+ "rightMax": null,
+ "rightMin": null,
+ "threshold1": 35000,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": 60000,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "height": "",
+ "id": 9,
+ "interactive": true,
+ "leftYAxisLabel": "",
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "legend_counts": true,
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": false,
+ "percentage": true,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "resolution": 100,
+ "scale": 1,
+ "seriesOverrides": [
+ {
+ "alias": "max 4xx resp/min",
+ "fill": 0,
+ "linewidth": 1,
+ "zindex": -1
+ }
+ ],
+ "span": 12,
+ "spyable": true,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "refId": "A",
+ "target":
"alias(sumSeries(varnish.*.*.frontend.request.client.status.4xx.sum), '4xx
resp/min')",
+ "textEditor": true
+ }
+ ],
+ "timeFrom": null,
+ "timeShift": null,
+ "timezone": "browser",
+ "title": "HTTP 4xx Responses",
+ "tooltip": {
+ "query_as_alias": true,
+ "shared": true,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "zerofill": true
+ },
+ {
+ "aliasColors": {
+ "max 4xx resp/min": "#F29191"
+ },
+ "annotate": {
+ "enable": false
+ },
+ "bars": false,
+ "datasource": "graphite",
+ "decimals": null,
+ "fill": 1,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMax": null,
+ "leftMin": null,
+ "max": null,
+ "min": null,
+ "rightLogBase": 1,
+ "rightMax": null,
+ "rightMin": null,
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "height": "200px",
+ "id": 16,
+ "interactive": true,
+ "leftYAxisLabel": "",
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": false,
+ "max": false,
+ "min": true,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "legend_counts": true,
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": false,
+ "percentage": true,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "resolution": 100,
+ "scale": 1,
+ "seriesOverrides": [],
+ "span": 12,
+ "spyable": true,
+ "stack": false,
+ "steppedLine": true,
+ "targets": [
+ {
+ "refId": "A",
+ "target": "alias(summarize(
sumSeries(varnish.*.*.frontend.request.client.status.4xx.sum) , '12h', 'avg',
true), '4xx resp/min')",
+ "textEditor": true
+ }
+ ],
+ "timeFrom": "2M",
+ "timeShift": null,
+ "timezone": "browser",
+ "title": "History",
+ "tooltip": {
+ "query_as_alias": true,
+ "shared": true,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "zerofill": true
+ }
+ ],
+ "title": "4xx"
+ },
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "350px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "annotate": {
+ "enable": false
+ },
+ "bars": false,
+ "datasource": "graphite",
+ "fill": 1,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMax": null,
+ "leftMin": null,
+ "max": null,
+ "min": null,
+ "rightLogBase": 1,
+ "rightMax": null,
+ "rightMin": null,
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)",
+ "thresholdLine": false
+ },
+ "height": "",
+ "id": 22,
+ "interactive": true,
+ "leftYAxisLabel": "",
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "legend_counts": true,
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "connected",
+ "options": false,
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "resolution": 100,
+ "scale": 1,
+ "seriesOverrides": [
+ {
+ "alias": "reqs/min",
+ "fill": 3,
+ "linewidth": 2,
+ "zindex": 1
+ }
+ ],
+ "span": 12,
+ "spyable": true,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "hide": false,
+ "refId": "A",
+ "target":
"alias(movingAverage(sumSeries(varnish.*.*.frontend.request.client.total.sum),
5), 'reqs/min')",
+ "textEditor": true
+ },
+ {
+ "hide": false,
+ "refId": "B",
+ "target": "alias(timeShift(movingAverage(
sumSeries(varnish.*.*.frontend.request.client.total.sum), 5), '1d'),
'yesterday')",
+ "textEditor": true
+ },
+ {
+ "hide": false,
+ "refId": "C",
+ "target": "alias(timeShift(movingAverage(
sumSeries(varnish.*.*.frontend.request.client.total.sum) , 5), '7d'), 'last
week')",
+ "textEditor": true
+ }
+ ],
+ "timeFrom": null,
+ "timeShift": null,
+ "timezone": "browser",
+ "title": "HTTP Requests (total)",
+ "tooltip": {
+ "query_as_alias": true,
+ "shared": true,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "zerofill": true
+ },
+ {
+ "aliasColors": {
+ "max 4xx resp/min": "#F29191"
+ },
+ "annotate": {
+ "enable": false
+ },
+ "bars": false,
+ "datasource": "graphite",
+ "decimals": 2,
+ "fill": 1,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMax": null,
+ "leftMin": null,
+ "max": null,
+ "min": null,
+ "rightLogBase": 1,
+ "rightMax": null,
+ "rightMin": null,
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "height": "200px",
+ "id": 24,
+ "interactive": true,
+ "leftYAxisLabel": "reqs/min",
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "legend_counts": true,
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": false,
+ "percentage": true,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "resolution": 100,
+ "scale": 1,
+ "seriesOverrides": [],
+ "span": 12,
+ "spyable": true,
+ "stack": false,
+ "steppedLine": true,
+ "targets": [
+ {
+ "refId": "A",
+ "target": "alias(summarize(
sumSeries(varnish.*.*.frontend.request.client.total.sum), '24h', 'avg', true),
'daily')",
+ "textEditor": true
+ },
+ {
+ "refId": "B",
+ "target":
"alias(summarize(sumSeries(varnish.*.*.frontend.request.client.total.sum),
'7d', 'avg', true), 'weekly')",
+ "textEditor": true
+ }
+ ],
+ "timeFrom": "3M",
+ "timeShift": null,
+ "timezone": "browser",
+ "title": "History",
+ "tooltip": {
+ "query_as_alias": true,
+ "shared": true,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "zerofill": true
+ }
+ ],
+ "title": "New row"
+ }
+ ],
+ "schemaVersion": 8,
+ "sharedCrosshair": true,
+ "style": "light",
+ "tags": [
+ "operations",
+ "featured"
+ ],
+ "templating": {
+ "list": []
+ },
+ "time": {
+ "from": "now-12h",
+ "to": "now"
+ },
+ "timepicker": {
+ "collapse": false,
+ "enable": true,
+ "notice": false,
+ "now": true,
+ "nowDelay": "",
+ "refresh_intervals": [
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "1d"
+ ],
+ "status": "Stable",
+ "time_options": [
+ "1h",
+ "8h",
+ "24h",
+ "7d",
+ "30d",
+ "6M",
+ "1y"
+ ],
+ "type": "timepicker"
+ },
+ "timezone": "utc",
+ "title": "Varnish: HTTP Errors",
+ "version": 21
+}
\ No newline at end of file
diff --git a/manifests/role/grafana.pp b/manifests/role/grafana.pp
index 11d87b6..d81f02f 100644
--- a/manifests/role/grafana.pp
+++ b/manifests/role/grafana.pp
@@ -177,4 +177,8 @@
backup::set { 'var-lib-grafana':
require => Class['::grafana'],
}
+
+ grafana::dashboard { 'varnish-http-errors':
+ source => 'puppet:///files/grafana/dashboards/varnish-http-errors',
+ }
}
--
To view, visit https://gerrit.wikimedia.org/r/268085
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6d17cf71513badfd0c0ee27f8bc9873ff3d8502d
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits