Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "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": "Logs collected from Kubernetes, stored in Loki",
- "editable": true,
- "fiscalYearStartMonth": 0,
- "gnetId": 15141,
- "graphTooltip": 0,
- "id": 381,
- "links": [],
- "liveNow": false,
- "panels": [
- {
- "datasource": {
- "type": "loki",
- "uid": "${Source}"
- },
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "bars",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 24,
- "x": 0,
- "y": 0
- },
- "id": 4,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "loki",
- "uid": "${Source}"
- },
- "expr": "sum(count_over_time({namespace=~\"$namespace\", stream=~\"$stream\", container =~\"$container\"} |= \"$query\" [$__interval]))",
- "instant": false,
- "legendFormat": "Log count",
- "range": true,
- "refId": "A"
- }
- ],
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "loki",
- "uid": "${Source}"
- },
- "description": "Logs from services running in Kubernetes",
- "gridPos": {
- "h": 25,
- "w": 24,
- "x": 0,
- "y": 4
- },
- "id": 2,
- "options": {
- "dedupStrategy": "none",
- "enableLogDetails": true,
- "prettifyLogMessage": false,
- "showCommonLabels": false,
- "showLabels": false,
- "showTime": false,
- "sortOrder": "Descending",
- "wrapLogMessage": true
- },
- "targets": [
- {
- "datasource": {
- "type": "loki",
- "uid": "${Source}"
- },
- "expr": "{namespace=~\"$namespace\", stream=~\"$stream\", container =~\"$container\"} |= \"$query\"",
- "refId": "A"
- }
- ],
- "type": "logs"
- }
- ],
- "refresh": "",
- "schemaVersion": 38,
- "style": "dark",
- "tags": [],
- "templating": {
- "list": [
- {
- "current": {
- "selected": true,
- "text": "",
- "value": ""
- },
- "description": "String to search for",
- "hide": 0,
- "label": "Search Query",
- "name": "query",
- "options": [
- {
- "selected": true,
- "text": "",
- "value": ""
- }
- ],
- "query": "",
- "skipUrlSync": false,
- "type": "textbox"
- },
- {
- "current": {
- "selected": true,
- "text": "Loki",
- "value": "bed4e5e9-f334-405a-886e-de793c409db7"
- },
- "hide": 0,
- "includeAll": false,
- "multi": false,
- "name": "Source",
- "options": [],
- "query": "loki",
- "queryValue": "",
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "type": "datasource"
- },
- {
- "allValue": ".+",
- "current": {
- "selected": true,
- "text": [
- "cymo-ebau-prod",
- "kata-dev",
- "cymo-ebau-test"
- ],
- "value": [
- "cymo-ebau-prod",
- "kata-dev",
- "cymo-ebau-test"
- ]
- },
- "datasource": {
- "type": "loki",
- "uid": "${Source}"
- },
- "definition": "",
- "hide": 0,
- "includeAll": true,
- "multi": true,
- "name": "namespace",
- "options": [],
- "query": {
- "label": "namespace",
- "refId": "LokiVariableQueryEditor-VariableQuery",
- "stream": "",
- "type": 1
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "type": "query"
- },
- {
- "allValue": ".+",
- "current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
- },
- "datasource": {
- "type": "loki",
- "uid": "${Source}"
- },
- "definition": "label_values(stream)",
- "hide": 0,
- "includeAll": true,
- "multi": true,
- "name": "stream",
- "options": [],
- "query": "label_values(stream)",
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "type": "query"
- },
- {
- "allValue": ".*",
- "current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
- },
- "datasource": {
- "type": "loki",
- "uid": "${Source}"
- },
- "definition": "",
- "hide": 0,
- "includeAll": true,
- "multi": true,
- "name": "pod",
- "options": [],
- "query": {
- "label": "pod",
- "refId": "LokiVariableQueryEditor-VariableQuery",
- "stream": "{namespace=\"$namespace\"}",
- "type": 1
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "type": "query"
- },
- {
- "allValue": ".+",
- "current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
- },
- "datasource": {
- "type": "loki",
- "uid": "${Source}"
- },
- "definition": "",
- "hide": 0,
- "includeAll": true,
- "multi": true,
- "name": "container",
- "options": [],
- "query": {
- "label": "container",
- "refId": "LokiVariableQueryEditor-VariableQuery",
- "stream": "{namespace=\"$namespace\"}",
- "type": 1
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "type": "query"
- }
- ]
- },
- "time": {
- "from": "now-15m",
- "to": "now"
- },
- "timepicker": {},
- "timezone": "",
- "title": "Loki Kubernetes Logs 2",
- "uid": "o6-BGgnnk",
- "version": 23,
- "weekStart": ""
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement