⇤ ← Revision 1 as of 2022-05-21 16:47:34
Size: 788
Comment:
|
← Revision 2 as of 2023-04-08 13:52:33 ⇥
Size: 939
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
'''Promtail''' is a log aggregation project to compliment [[Prometheus]]. | '''Promtail''' is a log aggregation project to compliment [[Prometheus]] and part of the [[Grafana]] project. |
Line 52: | Line 52: |
---- == See also == [[https://grafana.com/docs/loki/latest/clients/promtail/|Promtail Documentation]] |
Promtail
Promtail is a log aggregation project to compliment Prometheus and part of the Grafana project.
Contents
Installation
Configuration
The basic configuration is:
server: http_listen_address = 0.0.0.0 http_listen_port: 9080 positions: filename: /tmp/positions.yaml clients: -url: http://loki:3100/loki/api/v1/push scrape_configs: <something>
To scrape Syslogd, try:
scrape_configs: - job_name: syslog syslog: listen_address: 0.0.0.0:601 idle_timeout: 60s label_structured_data: yes labels: job: "syslog" relabel_configs: - source_labels: ["__syslog_message_hostname"] target_label: "host"