Created
February 5, 2024 16:07
-
-
Save astarche/5d84f939328959975d997e50dabc52b6 to your computer and use it in GitHub Desktop.
Grafana json snippets for simple Logs dashboards with different datasource configurations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"type": "dashboard" | |
} | |
] | |
}, | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"graphTooltip": 0, | |
"id": 8240, | |
"links": [], | |
"liveNow": false, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "elasticsearch" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 1, | |
"options": { | |
"displayMode": "gradient", | |
"minVizHeight": 10, | |
"minVizWidth": 0, | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": ["max"], | |
"fields": "/^secondsElapsed$/", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"valueMode": "color" | |
}, | |
"pluginVersion": "10.1.2", | |
"targets": [ | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"field": "coralogix.timestamp", | |
"id": "2", | |
"settings": { | |
"interval": "auto" | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"datasource": { | |
"type": "elasticsearch", | |
"uid": "hiqcpbFVk" | |
}, | |
"metrics": [ | |
{ | |
"id": "1", | |
"type": "logs" | |
} | |
], | |
"query": "coralogix.metadata.applicationName:default AND coralogix.metadata.subsystemName:smoke AND name:\"TestExecutionCompleted-smoke\"", | |
"refId": "A", | |
"timeField": "coralogix.timestamp" | |
} | |
], | |
"title": "Max seconds elapsed", | |
"transformations": [], | |
"type": "bargauge" | |
} | |
], | |
"refresh": "", | |
"schemaVersion": 38, | |
"style": "dark", | |
"tags": [], | |
"templating": { | |
"list": [] | |
}, | |
"time": { | |
"from": "now-6h", | |
"to": "now" | |
}, | |
"timepicker": {}, | |
"timezone": "", | |
"title": "astarche Dashboard for coralogix bug (delete datasource uid)", | |
"uid": "0f170b12-a643-4ba9-894f-9794a41823ba", | |
"weekStart": "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"type": "dashboard" | |
} | |
] | |
}, | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"graphTooltip": 0, | |
"id": 8240, | |
"links": [], | |
"liveNow": false, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "elasticsearch", | |
"uid": "hiqcpbFVk" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 1, | |
"options": { | |
"displayMode": "gradient", | |
"minVizHeight": 10, | |
"minVizWidth": 0, | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": ["max"], | |
"fields": "/^secondsElapsed$/", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"valueMode": "color" | |
}, | |
"pluginVersion": "10.1.2", | |
"targets": [ | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"field": "coralogix.timestamp", | |
"id": "2", | |
"settings": { | |
"interval": "auto" | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"datasource": { | |
"type": "elasticsearch", | |
"uid": "hiqcpbFVk" | |
}, | |
"metrics": [ | |
{ | |
"id": "1", | |
"type": "logs" | |
} | |
], | |
"query": "coralogix.metadata.applicationName:default AND coralogix.metadata.subsystemName:smoke AND name:\"TestExecutionCompleted-smoke\"", | |
"refId": "A", | |
"timeField": "coralogix.timestamp" | |
} | |
], | |
"title": "Max seconds elapsed", | |
"transformations": [], | |
"type": "bargauge" | |
} | |
], | |
"refresh": "", | |
"schemaVersion": 38, | |
"style": "dark", | |
"tags": [], | |
"templating": { | |
"list": [] | |
}, | |
"time": { | |
"from": "now-6h", | |
"to": "now" | |
}, | |
"timepicker": {}, | |
"timezone": "", | |
"title": "astarche Dashboard for coralogix bug (dev)", | |
"uid": "8c354aca-1b71-4184-b48c-5a9937074828", | |
"weekStart": "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__inputs": [ | |
{ | |
"name": "DS_LOGS", | |
"label": "Logs", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "elasticsearch", | |
"pluginName": "Elasticsearch" | |
} | |
], | |
"__elements": {}, | |
"__requires": [ | |
{ | |
"type": "panel", | |
"id": "bargauge", | |
"name": "Bar gauge", | |
"version": "" | |
}, | |
{ | |
"type": "datasource", | |
"id": "elasticsearch", | |
"name": "Elasticsearch", | |
"version": "1.0.0" | |
}, | |
{ | |
"type": "grafana", | |
"id": "grafana", | |
"name": "Grafana", | |
"version": "10.1.2" | |
} | |
], | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"type": "dashboard" | |
} | |
] | |
}, | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"graphTooltip": 0, | |
"id": null, | |
"links": [], | |
"liveNow": false, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "elasticsearch", | |
"uid": "${DS_LOGS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 1, | |
"options": { | |
"displayMode": "gradient", | |
"minVizHeight": 10, | |
"minVizWidth": 0, | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": ["max"], | |
"fields": "/^secondsElapsed$/", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"valueMode": "color" | |
}, | |
"pluginVersion": "10.1.2", | |
"targets": [ | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"field": "coralogix.timestamp", | |
"id": "2", | |
"settings": { | |
"interval": "auto" | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"datasource": { | |
"type": "elasticsearch", | |
"uid": "${DS_LOGS}" | |
}, | |
"metrics": [ | |
{ | |
"id": "1", | |
"type": "logs" | |
} | |
], | |
"query": "coralogix.metadata.applicationName:default AND coralogix.metadata.subsystemName:smoke AND name:\"TestExecutionCompleted-smoke\"", | |
"refId": "A", | |
"timeField": "coralogix.timestamp" | |
} | |
], | |
"title": "Max seconds elapsed", | |
"transformations": [], | |
"type": "bargauge" | |
} | |
], | |
"refresh": "", | |
"schemaVersion": 38, | |
"style": "dark", | |
"tags": [], | |
"templating": { | |
"list": [] | |
}, | |
"time": { | |
"from": "now-6h", | |
"to": "now" | |
}, | |
"timepicker": {}, | |
"timezone": "", | |
"title": "astarche Dashboard for coralogix bug (exported for sharing)", | |
"uid": "f4ab19fc-1a0d-456d-a596-e6b3c8f77707", | |
"weekStart": "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"type": "dashboard" | |
} | |
] | |
}, | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"graphTooltip": 0, | |
"id": 8242, | |
"links": [], | |
"liveNow": false, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "elasticsearch", | |
"uid": "XFs7pbK4z" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 1, | |
"options": { | |
"displayMode": "gradient", | |
"minVizHeight": 10, | |
"minVizWidth": 0, | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": ["max"], | |
"fields": "/^secondsElapsed$/", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"valueMode": "color" | |
}, | |
"pluginVersion": "10.1.2", | |
"targets": [ | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"field": "coralogix.timestamp", | |
"id": "2", | |
"settings": { | |
"interval": "auto" | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"datasource": { | |
"type": "elasticsearch", | |
"uid": "XFs7pbK4z" | |
}, | |
"metrics": [ | |
{ | |
"id": "1", | |
"type": "logs" | |
} | |
], | |
"query": "coralogix.metadata.applicationName:default AND coralogix.metadata.subsystemName:smoke AND name:\"TestExecutionCompleted-smoke\"", | |
"refId": "A", | |
"timeField": "coralogix.timestamp" | |
} | |
], | |
"title": "Max seconds elapsed", | |
"transformations": [], | |
"type": "bargauge" | |
} | |
], | |
"refresh": "", | |
"schemaVersion": 38, | |
"style": "dark", | |
"tags": [], | |
"templating": { | |
"list": [] | |
}, | |
"time": { | |
"from": "now-6h", | |
"to": "now" | |
}, | |
"timepicker": {}, | |
"timezone": "", | |
"title": "astarche Dashboard for coralogix bug (test)", | |
"uid": "7b5d9790-e964-4a21-9ea3-fa166ecd407b", | |
"weekStart": "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment