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...")
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
 
  [[/etc/promtail/]]config.yml
 
  [[/etc/promtail/]]config.yml
 +
[[~/brew/etc/promtail-local-config.yaml]]
  
 
  server:
 
  server:
   http_listen_port: 9080
+
   http_listen_port: [[9080]]
 
   [[grpc]]_listen_port: 0
 
   [[grpc]]_listen_port: 0
 
   
 
   
Line 21: Line 22:
 
       __path__: [[/var/log/]]*log
 
       __path__: [[/var/log/]]*log
  
 +
== Related ==
 +
* [[Loki]]
 +
* <code>[[brew services start promtail]]</code>
 +
* <code>[[promtail -check-syntax]]</code>
 +
* <code>[[promtail-local-config.yaml]]</code>
  
 +
== See also ==
 +
* {{Promtail}}
  
* {{Promtail}}
+
[[Category:Promtail]]

Latest revision as of 16:50, 9 April 2024

/etc/promtail/config.yml
~/brew/etc/promtail-local-config.yaml
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

Related[edit]

See also[edit]

Advertising: