Browse Source

hostname variable correction

master
Coesens Bert 5 months ago
parent
commit
aa5584a415
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      loki-system-logs.sh

+ 2
- 2
loki-system-logs.sh View File

@@ -26,7 +26,7 @@ scrape_configs:
- targets: - targets:
- localhost - localhost
labels: labels:
host: ${HOSTNAME}
host: \${HOSTNAME}
job: varlogs job: varlogs
__path__: /var/log/*log __path__: /var/log/*log
- job_name: journal - job_name: journal
@@ -35,7 +35,7 @@ scrape_configs:
max_age: 24h max_age: 24h
path: /var/log/journal path: /var/log/journal
labels: labels:
host: ${HOSTNAME}
host: \${HOSTNAME}
job: systemd-journal job: systemd-journal
relabel_configs: relabel_configs:
- source_labels: ['__journal__systemd_unit'] - source_labels: ['__journal__systemd_unit']


Loading…
Cancel
Save