Documentation
This minimal config scrape only single log file.
Primarily used in rpm/deb packaging where promtail service can be started during system init process.
And too much scraping during init process can overload the complete system.
https://github.com/grafana/loki/issues/11398 (opens in a new tab)
This minimal config scrape only single log file.
Primarily used in rpm/deb packaging where promtail service can be started during system init process.
And too much scraping during init process can overload the complete system.
https://github.com/grafana/loki/issues/11398 (opens in a new tab)
server: http_listen_port: 9080 grpc_listen_port: 0
positions: filename: /tmp/positions.yaml
clients:
- url: http://loki.x.com/loki/api/v1/push (opens in a new tab) basic_auth: username: devopsadmin password: x-devopsadmin
scrape_configs:
Paytring API logs (Grouped)
- job_name: DR-x-logs
static_configs:
-
targets:
- localhost labels: job: DR-x-logs app: x-api env: production path: /var/www/backend/storage/logs/*.log
-
targets:
- localhost labels: job: DR-x-logs app: x-api-multipg env: production path: /var/www/backend/storage/logs/multipg/*.log
-