Created
July 27, 2021 18:12
-
-
Save mephinet/8e0e5f149bb6a578a701ce8f3ba7d1ef to your computer and use it in GitHub Desktop.
promtail.yaml
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
server: | |
http_listen_port: 9080 | |
grpc_listen_port: 0 | |
clients: | |
- url: http://localhost:3100/loki/api/v1/push | |
scrape_configs: | |
- job_name: system | |
static_configs: | |
- targets: | |
- localhost | |
labels: | |
job: varlogs | |
__path__: /var/log/*log | |
- job_name: journal | |
journal: | |
labels: | |
job: systemd-journal | |
relabel_configs: | |
- source_labels: | |
- __journal__systemd_unit | |
target_label: unit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment