Last active
October 19, 2022 11:16
-
-
Save wardbekker/e8c637b440a86e88441da6be7ef00987 to your computer and use it in GitHub Desktop.
Demo dashboard for loki+prom example web app dashboard
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
{ | |
"dashboard" : { | |
"annotations": { | |
"list": [ | |
{ | |
"datasource": "Loki", | |
"enable": true, | |
"expr": "{service=~\"[[service]]\"} Error", | |
"hide": false, | |
"iconColor": "rgba(255, 96, 96, 1)", | |
"limit": 100, | |
"name": "http_server_errors", | |
"showIn": 0, | |
"tags": [], | |
"target": {}, | |
"type": "tags" | |
}, | |
{ | |
"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": null, | |
"iteration": 1571130104209, | |
"links": [], | |
"panels": [ | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "Prometheus", | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 12, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 4, | |
"legend": { | |
"alignAsTable": false, | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"dataLinks": [] | |
}, | |
"percentage": false, | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "web_http_requests{service=~\"[[service]]\"}", | |
"legendFormat": "{{service}}", | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Concurrent webapp users", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"datasource": "Loki", | |
"gridPos": { | |
"h": 9, | |
"w": 24, | |
"x": 0, | |
"y": 12 | |
}, | |
"id": 2, | |
"options": { | |
"showTime": true, | |
"sortOrder": "Descending" | |
}, | |
"targets": [ | |
{ | |
"expr": "{service=~\"[[service]]\"}", | |
"refId": "A" | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "HTTP Server Logs", | |
"type": "logs" | |
} | |
], | |
"refresh": "1s", | |
"schemaVersion": 20, | |
"style": "dark", | |
"tags": [], | |
"templating": { | |
"list": [ | |
{ | |
"allValue": "web_app_.*", | |
"current": { | |
"tags": [], | |
"text": "All", | |
"value": [ | |
"$__all" | |
] | |
}, | |
"datasource": "Prometheus", | |
"definition": "{service=~ \"web_app_.+\"}", | |
"hide": 0, | |
"includeAll": true, | |
"label": "Webapp", | |
"multi": true, | |
"name": "service", | |
"options": [ | |
{ | |
"selected": true, | |
"text": "All", | |
"value": "$__all" | |
}, | |
{ | |
"selected": false, | |
"text": "web_app_1", | |
"value": "web_app_1" | |
}, | |
{ | |
"selected": false, | |
"text": "web_app_2", | |
"value": "web_app_2" | |
}, | |
{ | |
"selected": false, | |
"text": "web_app_3", | |
"value": "web_app_3" | |
} | |
], | |
"query": "{service=~ \"web_app_.+\"}", | |
"refresh": 0, | |
"regex": "/.*service=\"([^\"]*).*/", | |
"skipUrlSync": false, | |
"sort": 0, | |
"tagValuesQuery": "", | |
"tags": [], | |
"tagsQuery": "", | |
"type": "query", | |
"useTags": false | |
} | |
] | |
}, | |
"time": { | |
"from": "now-2m", | |
"to": "now" | |
}, | |
"timepicker": { | |
"refresh_intervals": [ | |
"1s" | |
] | |
}, | |
"timezone": "", | |
"title": "My awesome webapp dashboard", | |
"uid": "t-gIFL2Wk", | |
"version": 1 | |
}, | |
"folderId": 0, | |
"overwrite": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment