fix promtail labels

This commit is contained in:
2025-11-16 14:22:26 +00:00
parent 48f8b10b9c
commit f5c087cb5b

View File

@@ -3,6 +3,11 @@ config:
- url: "????" #replaced values.local.yaml. Example: https://lokiserver/loki/api/v1/push
# by default all scrap configs had node_name
snippets:
extraRelabelConfigs:
- target_label: host
replacement: ${HOSTNAME}
- target_label: cluster
replacement: casa
extraScrapeConfigs: |
#scrape config for syslog
@@ -24,6 +29,7 @@ config:
replacement: '${HOSTNAME}'
- target_label: 'cluster'
replacement: 'casa'
extraArgs:
- --config.expand-env=true
extraVolumes: