Initial Commit

This commit is contained in:
Arseniy Kuznetsov
2022-10-21 16:37:19 +01:00
parent b03b913dec
commit 08917e86e5
2 changed files with 12 additions and 16 deletions
@@ -26,7 +26,6 @@
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"gnetId": 17139, "gnetId": 17139,
"graphTooltip": 0, "graphTooltip": 0,
"id": 6,
"links": [ "links": [
{ {
"asDropdown": true, "asDropdown": true,
@@ -261,7 +260,7 @@
"type": "logs" "type": "logs"
} }
], ],
"refresh": false, "refresh": "5s",
"schemaVersion": 37, "schemaVersion": 37,
"style": "dark", "style": "dark",
"tags": [ "tags": [
@@ -273,12 +272,8 @@
{ {
"current": { "current": {
"selected": true, "selected": true,
"text": [ "text": "MKT-MBD-PD",
"All" "value": "MKT-MBD-PD"
],
"value": [
"$__all"
]
}, },
"datasource": { "datasource": {
"type": "loki", "type": "loki",
@@ -286,9 +281,9 @@
}, },
"definition": "", "definition": "",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": false,
"label": "Routerboard", "label": "Routerboard",
"multi": true, "multi": false,
"name": "routerboard", "name": "routerboard",
"options": [], "options": [],
"query": { "query": {
@@ -456,13 +451,13 @@
] ]
}, },
"time": { "time": {
"from": "now-3h", "from": "now-6h",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "", "timezone": "",
"title": "Mikrotik Loki Logs", "title": "Mikrotik Loki Logs",
"uid": "awslix6doiakp-mkt-loki", "uid": "awslix6doiakp-mkt-loki",
"version": 6, "version": 1,
"weekStart": "" "weekStart": ""
} }
+5 -4
View File
@@ -20,11 +20,12 @@ scrape_configs:
relabel_configs: relabel_configs:
- source_labels: ['__syslog_message_hostname'] - source_labels: ['__syslog_message_hostname']
target_label: 'routerboard' target_label: 'routerboard'
- source_labels: ['__syslog_message_severity']
target_label: 'severity'
- source_labels: ['__syslog_message_facility']
target_label: 'facility'
- source_labels: ['__syslog_connection_hostname'] - source_labels: ['__syslog_connection_hostname']
target_label: 'syslog_host' target_label: 'syslog_host'
- source_labels: ['__syslog_connection_ip_address'] - source_labels: ['__syslog_connection_ip_address']
target_label: 'syslog_host_ip' target_label: 'syslog_host_ip'
# - source_labels: ['__syslog_message_severity']
# target_label: 'severity'
# - source_labels: ['__syslog_message_facility']
# target_label: 'facility'