Skip to content

Instantly share code, notes, and snippets.

@rootsec1
Last active October 28, 2022 13:40
Show Gist options
  • Save rootsec1/f2b1d0b930fb10a1e235cfdc3f1fe067 to your computer and use it in GitHub Desktop.
Save rootsec1/f2b1d0b930fb10a1e235cfdc3f1fe067 to your computer and use it in GitHub Desktop.
promtail-custom-config
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
client:
url: https://312367:eyJrIjoiYTlkZjU5N2VmZjMxMDBmMmEwNjYxYTM3OGI4MmYwZDlmNzU2NzU5NiIsIm4iOiJQcmltYXJ5IEFQSSBLZXkiLCJpZCI6NzMzNjc0fQ==@logs-prod-014.grafana.net/api/prom/push
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*.log
- job_name: backend-eb
static_configs:
- targets:
- localhost
labels:
job: backend-eb
__path__: /var/app/current/log/*.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment