Difference between revisions of "/etc/promtail/config.yml"

From wikieduonline
Jump to navigation Jump to search
(Created page with " /etc/promtail/config.yml server: http_listen_port: 9080 grpc_listen_port: 0 positions: filename: /tmp/positions.yaml clients: - url: http://loki...")
 
Line 21: Line 21:
 
       __path__: [[/var/log/]]*log
 
       __path__: [[/var/log/]]*log
  
 +
== See also ==
 +
* {{Promtail}}
  
 
+
[[Category:Promtail]]
* {{Promtail}}
 

Revision as of 12:57, 21 December 2022

/etc/promtail/config.yml
server:
  http_listen_port: 9080
  grpc_listen_port: 0

positions:
  filename: /tmp/positions.yaml 

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

scrape_configs:
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: varlogs
      __path__: /var/log/*log

See also

Advertising: