
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 40s
154 lines
3.4 KiB
JSON
154 lines
3.4 KiB
JSON
{
|
|
"annotations": {
|
|
"list": [
|
|
{
|
|
"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,
|
|
"links": [],
|
|
"panels": [
|
|
{
|
|
"datasource": "Loki",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 3,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 4,
|
|
"options": {
|
|
"content": "## Central Log Viewer\n\n**Quick Filters:** Click any label (hostname, container_name, job) to filter | **Search:** Use the search box above each panel | **Time Range:** Top right corner",
|
|
"mode": "markdown"
|
|
},
|
|
"pluginVersion": "7.5.7",
|
|
"title": "",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"datasource": "Loki",
|
|
"fieldConfig": {
|
|
"defaults": {},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 10,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 3
|
|
},
|
|
"id": 2,
|
|
"options": {
|
|
"dedupStrategy": "none",
|
|
"enableLogDetails": true,
|
|
"prettifyLogMessage": false,
|
|
"showCommonLabels": false,
|
|
"showLabels": true,
|
|
"showTime": true,
|
|
"sortOrder": "Descending",
|
|
"wrapLogMessage": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"expr": "{job=\"docker\"}",
|
|
"legendFormat": "{{hostname}} - {{container_name}}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Docker Container Logs (All Servers)",
|
|
"type": "logs"
|
|
},
|
|
{
|
|
"datasource": "Loki",
|
|
"fieldConfig": {
|
|
"defaults": {},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 13
|
|
},
|
|
"id": 3,
|
|
"options": {
|
|
"dedupStrategy": "none",
|
|
"enableLogDetails": true,
|
|
"prettifyLogMessage": false,
|
|
"showCommonLabels": false,
|
|
"showLabels": true,
|
|
"showTime": true,
|
|
"sortOrder": "Descending",
|
|
"wrapLogMessage": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"expr": "{job=~\"syslog|auth\"}",
|
|
"legendFormat": "{{hostname}} - {{job}}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "System Logs (All Servers)",
|
|
"type": "logs"
|
|
}
|
|
],
|
|
"refresh": "10s",
|
|
"schemaVersion": 27,
|
|
"style": "dark",
|
|
"tags": ["logs", "central"],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"allValue": ".*",
|
|
"current": {
|
|
"selected": true,
|
|
"text": ["All"],
|
|
"value": ["$__all"]
|
|
},
|
|
"datasource": "Loki",
|
|
"definition": "label_values(hostname)",
|
|
"description": "Filter by server",
|
|
"error": null,
|
|
"hide": 0,
|
|
"includeAll": true,
|
|
"label": "Server",
|
|
"multi": true,
|
|
"name": "hostname",
|
|
"options": [],
|
|
"query": "label_values(hostname)",
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 1,
|
|
"type": "query"
|
|
}
|
|
]
|
|
},
|
|
"time": {
|
|
"from": "now-15m",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {
|
|
"refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h"]
|
|
},
|
|
"timezone": "",
|
|
"title": "Central Logs",
|
|
"uid": "central-logs",
|
|
"version": 0
|
|
} |