-
- Notifications
You must be signed in to change notification settings - Fork 79
Dashboard Grafana Error
Anthony Gauthier edited this page Sep 9, 2019 · 1 revision
{ "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "gnetId": null, "graphTooltip": 0, "id": 6, "iteration": 1568026289019, "links": [], "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 3, "panels": [], "repeat": "filters", "repeatIteration": 1522681125089, "repeatPanelId": 2, "title": "$filters", "type": "row" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": false, "colors": [ "#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a" ], "datasource": "$datasource", "decimals": 2, "format": "none", "gauge": { "maxValue": null, "minValue": 0, "show": true, "thresholdLabels": false, "thresholdMarkers": false }, "gridPos": { "h": 8, "w": 6, "x": 0, "y": 1 }, "id": 12, "interval": null, "links": [], "mappingType": 2, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "postfix": "%", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", "full": true, "lineColor": "rgb(31, 120, 193)", "show": true }, "tableColumn": "Average", "targets": [ { "bucketAggs": [ { "field": "SampleLabel.keyword", "id": "2", "settings": { "min_doc_count": 1, "order": "desc", "orderBy": "_term", "size": "10" }, "type": "terms" } ], "hide": false, "metrics": [ { "field": "ErrorCount", "id": "1", "inlineScript": "_value*100", "meta": {}, "settings": { "script": { "inline": "_value*100" } }, "type": "avg" } ], "query": "SampleLabel.keyword:$filters", "refId": "A", "timeField": "Timestamp" } ], "thresholds": "1,5", "title": "Error Rate", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "avg" }, { "columns": [ { "text": "ResponseCode", "value": "ResponseCode" }, { "text": "Timestamp", "value": "Timestamp" }, { "text": "ResponseMessage", "value": "ResponseMessage" }, { "text": "ResponseHeaders", "value": "ResponseHeaders" }, { "text": "ResponseBody", "value": "ResponseBody" }, { "text": "ResponseTime", "value": "ResponseTime" }, { "text": "RequestHeaders", "value": "RequestHeaders" }, { "text": "RequestBody", "value": "RequestBody" } ], "datasource": "$datasource", "fontSize": "100%", "gridPos": { "h": 10, "w": 18, "x": 6, "y": 1 }, "id": 14, "links": [], "pageSize": null, "scroll": true, "showHeader": true, "sort": { "col": null, "desc": false }, "styles": [ { "alias": "Time", "dateFormat": "YYYY-MM-DD HH:mm:ss", "pattern": "Time", "type": "date" }, { "alias": "", "colorMode": null, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": null, "pattern": "ResponseTime", "thresholds": [], "type": "number", "unit": "ms" }, { "alias": "", "colorMode": null, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "decimals": 2, "pattern": "/.*/", "thresholds": [], "type": "number", "unit": "short" } ], "targets": [ { "bucketAggs": [], "hide": false, "metrics": [ { "field": "select field", "id": "1", "meta": {}, "settings": { "size": 500 }, "type": "raw_document" } ], "query": "SampleLabel.keyword:$filters AND ErrorCount:>0", "refId": "A", "timeField": "Timestamp" } ], "title": "Errors List", "transform": "json", "type": "table" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": false, "colors": [ "#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a" ], "datasource": "$datasource", "format": "none", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 2, "w": 3, "x": 0, "y": 9 }, "id": 10, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", "full": true, "lineColor": "rgb(31, 120, 193)", "show": false }, "tableColumn": "Sum", "targets": [ { "bucketAggs": [ { "fake": true, "field": "SampleLabel.keyword", "id": "3", "settings": { "min_doc_count": 1, "order": "desc", "orderBy": "_term", "size": "10" }, "type": "terms" } ], "metrics": [ { "field": "ErrorCount", "id": "1", "meta": {}, "settings": {}, "type": "sum" } ], "query": "SampleLabel.keyword:$filters", "refId": "A", "timeField": "Timestamp" } ], "thresholds": "", "title": "# Errors", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "avg" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": false, "colors": [ "#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a" ], "datasource": "$datasource", "format": "none", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 2, "w": 3, "x": 3, "y": 9 }, "id": 9, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", "full": true, "lineColor": "rgb(31, 120, 193)", "show": false }, "tableColumn": "Count", "targets": [ { "bucketAggs": [ { "fake": true, "field": "SampleLabel.keyword", "id": "3", "settings": { "min_doc_count": 1, "order": "desc", "orderBy": "_term", "size": "10" }, "type": "terms" } ], "metrics": [ { "field": "ErrorCount", "id": "1", "meta": {}, "settings": {}, "type": "count" } ], "query": "SampleLabel.keyword:$filters", "refId": "A", "timeField": "Timestamp" } ], "thresholds": "", "title": "# Samples", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "avg" } ], "refresh": "10s", "schemaVersion": 18, "style": "dark", "tags": [], "templating": { "list": [ { "current": { "text": "IndexTest", "value": "IndexTest" }, "hide": 0, "includeAll": false, "label": null, "multi": false, "name": "datasource", "options": [], "query": "elasticsearch", "refresh": 1, "regex": "", "skipUrlSync": false, "type": "datasource" }, { "allValue": null, "current": { "text": "All", "value": "$__all" }, "datasource": "$datasource", "definition": "", "hide": 0, "includeAll": true, "label": null, "multi": true, "name": "filters", "options": [], "query": "{\"find\": \"terms\", \"field\": \"SampleLabel.keyword\", \"query\": \"\"}", "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-5m", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "", "title": "Errors Generics", "uid": "iAuCG4imk", "version": 10 }For any suggestions/corrections to the documentation, feel free to create an issue. Regards, delirius325.