Filippo Giunchedi has submitted this change and it was merged. 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, 877 insertions(+), 0 deletions(-) Approvals: Filippo Giunchedi: Verified; Looks good to me, approved diff --git a/files/grafana/dashboards/varnish-http-errors b/files/grafana/dashboards/varnish-http-errors new file mode 100644 index 0000000..60a29af --- /dev/null +++ b/files/grafana/dashboards/varnish-http-errors @@ -0,0 +1,873 @@ +{ + "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": "5m", + "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": "", + "hideTimeOverride": true, + "id": 18, + "interval": null, + "links": [ + { + "dashUri": "db/varnish-http-errors-datacenters", + "dashboard": "Varnish: HTTP Errors (datacenters)", + "title": "Varnish: HTTP Errors (datacenters)", + "type": "dashboard" + } + ], + "maxDataPoints": "", + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "refId": "A", + "target": "asPercent(sumSeries(varnish.*.*.frontend.request.client.status.{5xx,500}.rate), sumSeries(varnish.*.*.frontend.request.client.status.*.rate))", + "textEditor": true + } + ], + "thresholds": "0.002,0.02", + "timeFrom": "5m", + "timeShift": null, + "title": "HTTP 5xx/500", + "type": "singlestat", + "valueFontSize": "100%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "avg" + }, + { + "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": "short", + "height": "", + "hideTimeOverride": true, + "id": 12, + "interval": null, + "links": [], + "maxDataPoints": "", + "nullPointMode": "connected", + "nullText": null, + "postfix": "/min", + "postfixFontSize": "50%", + "prefix": "HTTP 5xx", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": true, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "targets": [ + { + "refId": "A", + "target": "movingAverage(scale(sumSeries(varnish.*.*.frontend.request.client.status.5xx.rate), 60), 3)", + "textEditor": false + } + ], + "thresholds": "100,400", + "timeFrom": "1h", + "type": "singlestat", + "valueFontSize": "100%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "max" + }, + { + "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": 11, + "interval": null, + "links": [], + "maxDataPoints": "", + "nullPointMode": "connected", + "nullText": null, + "postfix": "/min", + "postfixFontSize": "50%", + "prefix": "HTTP 500", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": true, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "targets": [ + { + "refId": "A", + "target": "movingAverage(scale(sumSeries(varnish.*.*.frontend.request.client.status.500.rate), 60), 3)", + "textEditor": false + } + ], + "thresholds": "100,250", + "timeFrom": "1h", + "timeShift": null, + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + } + ], + "showTitle": false, + "title": "Overview" + }, + { + "collapse": false, + "editable": true, + "height": "25px", + "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": "", + "hideTimeOverride": true, + "id": 19, + "interval": null, + "links": [ + { + "dashUri": "db/varnish-http-errors-datacenters", + "dashboard": "Varnish: HTTP Errors (datacenters)", + "targetBlank": true, + "title": "Varnish: HTTP Errors (datacenters)", + "type": "dashboard" + } + ], + "maxDataPoints": "", + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "refId": "A", + "target": "asPercent(sumSeries(varnish.*.*.frontend.request.client.status.4xx.sum), sumSeries(varnish.*.*.frontend.request.client.total.sum))", + "textEditor": true + } + ], + "thresholds": "3,5", + "timeFrom": "5m", + "timeShift": null, + "title": "HTTP 4xx", + "type": "singlestat", + "valueFontSize": "100%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "avg" + }, + { + "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": "none", + "height": "", + "id": 13, + "interval": null, + "links": [], + "maxDataPoints": "", + "nullPointMode": "connected", + "nullText": null, + "postfix": "/min", + "postfixFontSize": "50%", + "prefix": "HTTP 4xx", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": true, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "targets": [ + { + "refId": "A", + "target": "movingAverage(scale(sumSeries(varnish.*.*.frontend.request.client.status.4xx.rate), 60), 3)", + "textEditor": false + } + ], + "thresholds": "", + "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": "", + "hideTimeOverride": true, + "id": 23, + "interval": null, + "links": [], + "maxDataPoints": "", + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": true, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "targets": [ + { + "refId": "A", + "target": "movingAverage(scale(sumSeries(varnish.*.*.frontend.request.client.total.rate), 60), 3)", + "textEditor": false + } + ], + "thresholds": "", + "timeShift": "5m", + "title": "Total requests per minute", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + } + ], + "title": "Overview" + }, + { + "collapse": false, + "editable": true, + "height": "350px", + "panels": [ + { + "aliasColors": {}, + "annotate": { + "enable": false + }, + "bars": false, + "datasource": "graphite", + "fill": 3, + "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": 2, + "links": [], + "nullPointMode": "null as zero", + "options": false, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "resolution": 100, + "scale": 1, + "seriesOverrides": [], + "span": 12, + "spyable": true, + "stack": false, + "steppedLine": false, + "targets": [ + { + "hide": false, + "refId": "A", + "target": "alias(movingMedian(scale(sumSeries(varnish.*.*.frontend.request.client.status.500.rate), 60), 5), '500 resp/min')", + "textEditor": false + } + ], + "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 + } + ], + "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": false, + "current": true, + "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(movingMedian(scale(sumSeries(varnish.*.*.frontend.request.client.status.5xx.rate), 60), 5), '5xx resp/min')", + "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 + } + ], + "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 as zero", + "options": false, + "percentage": true, + "pointradius": 5, + "points": false, + "renderer": "flot", + "resolution": 100, + "scale": 1, + "seriesOverrides": [], + "span": 12, + "spyable": true, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "alias(movingMedian(scale(sumSeries(varnish.*.*.frontend.request.client.status.4xx.rate), 60), 3), '4xx resp/min')", + "textEditor": false + } + ], + "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 + } + ], + "title": "4xx" + }, + { + "collapse": true, + "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 + } + ], + "showTitle": true, + "title": "HTTP Request count" + } + ], + "schemaVersion": 10, + "sharedCrosshair": true, + "style": "light", + "tags": [ + "operations", + "featured", + "source:puppet.git", + "readonly" + ], + "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": 28 +} \ 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: merged Gerrit-Change-Id: I6d17cf71513badfd0c0ee27f8bc9873ff3d8502d Gerrit-PatchSet: 6 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: Addshore <addshorew...@gmail.com> Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org> Gerrit-Reviewer: BBlack <bbl...@wikimedia.org> Gerrit-Reviewer: Faidon Liambotis <fai...@wikimedia.org> Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: Krinkle <krinklem...@gmail.com> Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits