瀏覽代碼

hostname variable correction

master
Coesens Bert 5 月之前
父節點
當前提交
aa5584a415
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      loki-system-logs.sh

+ 2
- 2
loki-system-logs.sh 查看文件

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


Loading…
取消
儲存