Created
June 29, 2022 21:18
-
-
Save rverchere/ee160a07e369ed9290163ce428e53e0c to your computer and use it in GitHub Desktop.
Promtail Custom Values 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Allow environment variables usage | |
extraArgs: | |
- -config.expand-env=true | |
# Scrape config to read syslog file from node | |
config: | |
snippets: | |
extraScrapeConfigs: | | |
# Add an additional scrape config for syslog | |
- job_name: node-syslog | |
static_configs: | |
- targets: | |
- localhost | |
labels: | |
job: node/syslog | |
__path__: /var/log/host/syslog | |
node_name: '${HOSTNAME}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment