Last active
November 10, 2022 03:16
-
-
Save yohanb/230b75fb3047cf856e68c79a47d164e8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", | |
| "target": { | |
| "limit": 100, | |
| "matchAny": false, | |
| "tags": [], | |
| "type": "dashboard" | |
| }, | |
| "type": "dashboard" | |
| } | |
| ] | |
| }, | |
| "description": "Loki dashboard with quick search and timeline.", | |
| "editable": true, | |
| "fiscalYearStartMonth": 0, | |
| "gnetId": 13186, | |
| "graphTooltip": 0, | |
| "iteration": 1668049711957, | |
| "links": [], | |
| "liveNow": false, | |
| "panels": [ | |
| { | |
| "aliasColors": {}, | |
| "bars": true, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "fieldConfig": { | |
| "defaults": { | |
| "links": [] | |
| }, | |
| "overrides": [] | |
| }, | |
| "fill": 1, | |
| "fillGradient": 0, | |
| "gridPos": { | |
| "h": 14, | |
| "w": 24, | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "hiddenSeries": false, | |
| "id": 6, | |
| "interval": "1s", | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": false, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": false, | |
| "linewidth": 1, | |
| "nullPointMode": "null", | |
| "options": { | |
| "alertThreshold": true | |
| }, | |
| "percentage": false, | |
| "pluginVersion": "8.3.5", | |
| "pointradius": 2, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "loki", | |
| "uid": "P8E80F9AEF21F6940" | |
| }, | |
| "expr": "sum(count_over_time({namespace=\"$namespace\", pod=~\"$pod\"} |~ \"$search\"[$__interval]))", | |
| "hide": false, | |
| "refId": "A" | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeRegions": [], | |
| "title": "Timeline", | |
| "tooltip": { | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "mode": "time", | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "$$hashKey": "object:194", | |
| "format": "short", | |
| "logBase": 10, | |
| "show": true | |
| }, | |
| { | |
| "$$hashKey": "object:195", | |
| "format": "short", | |
| "logBase": 1, | |
| "show": false | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false | |
| } | |
| }, | |
| { | |
| "gridPos": { | |
| "h": 25, | |
| "w": 24, | |
| "x": 0, | |
| "y": 14 | |
| }, | |
| "id": 2, | |
| "maxDataPoints": "", | |
| "options": { | |
| "dedupStrategy": "none", | |
| "enableLogDetails": true, | |
| "prettifyLogMessage": false, | |
| "showCommonLabels": false, | |
| "showLabels": true, | |
| "showTime": true, | |
| "sortOrder": "Descending", | |
| "wrapLogMessage": true | |
| }, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "loki", | |
| "uid": "P8E80F9AEF21F6940" | |
| }, | |
| "expr": "{namespace=\"$namespace\", pod=~\"$pod\"} |~ \"$search\"", | |
| "hide": false, | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Logs", | |
| "type": "logs" | |
| } | |
| ], | |
| "refresh": "", | |
| "schemaVersion": 34, | |
| "style": "dark", | |
| "tags": [], | |
| "templating": { | |
| "list": [ | |
| { | |
| "current": { | |
| "selected": true, | |
| "text": "argocd", | |
| "value": "argocd" | |
| }, | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PBFA97CFB590B2093" | |
| }, | |
| "definition": "label_values(kube_namespace_labels, exported_namespace)", | |
| "hide": 0, | |
| "includeAll": false, | |
| "multi": false, | |
| "name": "namespace", | |
| "options": [], | |
| "query": { | |
| "query": "label_values(kube_namespace_labels, exported_namespace)", | |
| "refId": "StandardVariableQuery" | |
| }, | |
| "refresh": 1, | |
| "regex": "", | |
| "skipUrlSync": false, | |
| "sort": 0, | |
| "tagValuesQuery": "", | |
| "tagsQuery": "", | |
| "type": "query", | |
| "useTags": false | |
| }, | |
| { | |
| "allValue": ".*", | |
| "current": { | |
| "selected": true, | |
| "text": "All", | |
| "value": "$__all" | |
| }, | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PBFA97CFB590B2093" | |
| }, | |
| "definition": "label_values({namespace=~\"$namespace\"},pod)", | |
| "hide": 0, | |
| "includeAll": true, | |
| "multi": false, | |
| "name": "pod", | |
| "options": [], | |
| "query": { | |
| "query": "label_values({namespace=~\"$namespace\"},pod)", | |
| "refId": "StandardVariableQuery" | |
| }, | |
| "refresh": 1, | |
| "regex": "", | |
| "skipUrlSync": false, | |
| "sort": 0, | |
| "tagValuesQuery": "", | |
| "tagsQuery": "", | |
| "type": "query", | |
| "useTags": false | |
| }, | |
| { | |
| "current": { | |
| "selected": false, | |
| "text": "", | |
| "value": "" | |
| }, | |
| "hide": 0, | |
| "name": "search", | |
| "options": [ | |
| { | |
| "selected": true, | |
| "text": "", | |
| "value": "" | |
| } | |
| ], | |
| "query": "", | |
| "skipUrlSync": false, | |
| "type": "textbox" | |
| } | |
| ] | |
| }, | |
| "time": { | |
| "from": "now-15m", | |
| "to": "now" | |
| }, | |
| "timepicker": { | |
| "refresh_intervals": [ | |
| "10s", | |
| "30s", | |
| "1m", | |
| "5m", | |
| "15m", | |
| "30m", | |
| "1h", | |
| "2h", | |
| "1d" | |
| ] | |
| }, | |
| "timezone": "", | |
| "title": "Loki Dashboard", | |
| "uid": "liz0yRCZz", | |
| "version": 1, | |
| "weekStart": "" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment