aboutsummaryrefslogtreecommitdiffstats
path: root/roles/loki/templates/promtail.yml.j2
blob: 16c580eb5e9bca6436a61d1025e111398c82eac9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
server:
  http_listen_port: 9080
  grpc_listen_port: 0

positions:
  filename: /var/promtail/positions.yaml

clients:
  - url: http://localhost:3100/loki/api/v1/push

scrape_configs:
  - job_name: system
    static_configs:
      - targets:
          - localhost
        labels:
          job: var_logs
          __path__: /var/log/*log
      - targets:
          - localhost
        labels:
          job: www_logs
          __path__: /var/www/logs/*log
remember that computers suck.