From 08917e86e55dd861ffdad72f47f5e7d58b0cba57 Mon Sep 17 00:00:00 2001 From: Arseniy Kuznetsov Date: Fri, 21 Oct 2022 16:37:19 +0100 Subject: [PATCH] Initial Commit --- .../mikrotik/mikrotik_loki_logs.json | 19 +++++++------------ promtail/promtail-config.yml | 9 +++++---- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/grafana/dashboards/mikrotik/mikrotik_loki_logs.json b/grafana/dashboards/mikrotik/mikrotik_loki_logs.json index 507dd4a..3c5eb54 100644 --- a/grafana/dashboards/mikrotik/mikrotik_loki_logs.json +++ b/grafana/dashboards/mikrotik/mikrotik_loki_logs.json @@ -26,7 +26,6 @@ "fiscalYearStartMonth": 0, "gnetId": 17139, "graphTooltip": 0, - "id": 6, "links": [ { "asDropdown": true, @@ -261,7 +260,7 @@ "type": "logs" } ], - "refresh": false, + "refresh": "5s", "schemaVersion": 37, "style": "dark", "tags": [ @@ -273,12 +272,8 @@ { "current": { "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] + "text": "MKT-MBD-PD", + "value": "MKT-MBD-PD" }, "datasource": { "type": "loki", @@ -286,9 +281,9 @@ }, "definition": "", "hide": 0, - "includeAll": true, + "includeAll": false, "label": "Routerboard", - "multi": true, + "multi": false, "name": "routerboard", "options": [], "query": { @@ -456,13 +451,13 @@ ] }, "time": { - "from": "now-3h", + "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Mikrotik Loki Logs", "uid": "awslix6doiakp-mkt-loki", - "version": 6, + "version": 1, "weekStart": "" } \ No newline at end of file diff --git a/promtail/promtail-config.yml b/promtail/promtail-config.yml index f6ad5d2..a23fc23 100755 --- a/promtail/promtail-config.yml +++ b/promtail/promtail-config.yml @@ -20,11 +20,12 @@ scrape_configs: relabel_configs: - source_labels: ['__syslog_message_hostname'] target_label: 'routerboard' - - source_labels: ['__syslog_message_severity'] - target_label: 'severity' - - source_labels: ['__syslog_message_facility'] - target_label: 'facility' - source_labels: ['__syslog_connection_hostname'] target_label: 'syslog_host' - source_labels: ['__syslog_connection_ip_address'] target_label: 'syslog_host_ip' + +# - source_labels: ['__syslog_message_severity'] +# target_label: 'severity' +# - source_labels: ['__syslog_message_facility'] +# target_label: 'facility'