promtail-config.yaml
37 lines
| 751 B
| text/x-yaml
|
YamlLexer
r15 | server: | ||
http_listen_port: 9080 | |||
grpc_listen_port: 0 | |||
# Describes how to save read file offsets to disk | |||
positions: | |||
filename: /tmp/positions.yaml | |||
clients: | |||
- url: http://loki:3100/loki/api/v1/push | |||
tenant_id: docker | |||
## Definition to what to scrape | |||
scrape_configs: | |||
- job_name: scraping_nginx | |||
static_configs: | |||
- targets: | |||
- localhost | |||
labels: | |||
__path__: /var/log_volume/nginx/rhodecode* | |||
job: nginx | |||
- job_name: scraping_vcsserver | |||
static_configs: | |||
- targets: | |||
- localhost | |||
labels: | |||
__path__: /var/log_volume/apps/rhodecode* | |||
job: rhodecode | |||
- job_name: scraping_rhodecode | |||
static_configs: | |||
- targets: | |||
- localhost | |||
labels: | |||
__path__: /var/log_volume/apps/vcsserver* | |||
job: vcsserver |