Skip to content

Instantly share code, notes, and snippets.

@rverchere
Created June 29, 2022 21:18
Show Gist options
  • Save rverchere/ee160a07e369ed9290163ce428e53e0c to your computer and use it in GitHub Desktop.
Save rverchere/ee160a07e369ed9290163ce428e53e0c to your computer and use it in GitHub Desktop.
Promtail Custom Values 4
# 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