adding node exporter, loki, and promtail
This commit is contained in:
11
addon-promtail-main/rootfs/etc/promtail/base_config.yaml
Normal file
11
addon-promtail-main/rootfs/etc/promtail/base_config.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
server:
|
||||
http_listen_port: 9080
|
||||
grpc_listen_port: 0
|
||||
log_level: "${LOG_LEVEL}"
|
||||
|
||||
positions:
|
||||
filename: /data/promtail/positions.yaml
|
||||
|
||||
clients:
|
||||
- url: "${URL}"
|
@ -0,0 +1,27 @@
|
||||
---
|
||||
- job_name: journal
|
||||
journal:
|
||||
json: false
|
||||
max_age: 12h
|
||||
labels:
|
||||
job: systemd-journal
|
||||
path: "${JOURNAL_PATH}"
|
||||
relabel_configs:
|
||||
- source_labels:
|
||||
- __journal__systemd_unit
|
||||
target_label: unit
|
||||
- source_labels:
|
||||
- __journal__hostname
|
||||
target_label: nodename
|
||||
- source_labels:
|
||||
- __journal_syslog_identifier
|
||||
target_label: syslog_identifier
|
||||
- source_labels:
|
||||
- __journal_container_name
|
||||
target_label: container_name
|
||||
pipeline_stages:
|
||||
- match:
|
||||
selector: '{container_name=~"homeassistant|hassio_supervisor"}'
|
||||
stages:
|
||||
- multiline:
|
||||
firstline: '^\x{001b}'
|
Reference in New Issue
Block a user