Files
server-initializer/templates/monitoring/grafana/dashboards/api-logs.json

128 lines
2.5 KiB
JSON

{
"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": 6,
"links": [],
"panels": [
{
"datasource": {
"type": "loki",
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "line"
},
"properties": []
}
]
},
"gridPos": {
"h": 20,
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": true
},
"pluginVersion": "11.4.1",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "$datasource"
},
"expr": "{app=\"$app\"}",
"refId": "A"
}
],
"title": "Application Logs",
"type": "logs"
}
],
"preload": false,
"refresh": "10s",
"schemaVersion": 40,
"tags": [
"logs",
"loki"
],
"templating": {
"list": [
{
"current": {
"text": "dev-01",
"value": "aex1cmrcd5q0wf"
},
"includeAll": false,
"name": "datasource",
"options": [],
"query": "loki",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"allValue": ".*",
"current": {
"text": "sisvoto-api",
"value": "sisvoto-api"
},
"datasource": {
"type": "loki",
"uid": "$datasource"
},
"definition": "label_values(app)",
"includeAll": true,
"name": "app",
"options": [],
"query": "label_values(app)",
"refresh": 2,
"regex": "",
"sort": 1,
"type": "query"
}
]
},
"time": {
"from": "now-1h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Simple App Log Stream",
"uid": "bex4ub3xkzrwgd",
"version": 6,
"weekStart": ""
}