Add monitoring

This commit is contained in:
Sparky
2025-10-10 14:48:15 +01:00
parent 92cf99d41f
commit ec7d08bcb7
17 changed files with 2735 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
server:
http_listen_port: 43623
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: http://localhost:43622/loki/api/v1/push
scrape_configs:
- job_name: docker
static_configs:
- targets:
- localhost
labels:
job: dockerlogs
__path__: /var/lib/docker/containers/*/*-json.log
pipeline_stages:
- json:
expressions:
stream: stream
attrs: attrs
tag: attrs.tag
- labels:
stream:
tag:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*log