Browse Source

Mise à jour de 'README.md'

master
Cinabre 8 months ago
parent
commit
1c8acabd49
  1. 56
      README.md

56
README.md

@ -9,3 +9,59 @@ Role Variables @@ -9,3 +9,59 @@ Role Variables
Dans le fichier vars/main.yml, vous trouverez l'URL à configurer pour que Promtail ait accès à Loki.
Template Jinja2
--------------
Fichier avant templating :
```yaml
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: http://url_de_votre_loki:3100/loki/api/v1/push
scrape_configs:
- job_name: authlog
static_configs:
- targets:
- localhost
labels:
host: VOTRE_HOSTNAME
job: authlog
__path__: /var/log/auth.log
- job_name: syslog
static_configs:
- targets:
- localhost
labels:
host: VOTRE_HOSTNAME
job: syslog
__path__: /var/log/syslog
- job_name: Containers
static_configs:
- targets:
- localhost
labels:
host: VOTRE_HOSTNAME
job: containerslogs
__path__: /var/lib/docker/containers/*/*-json.log
- job_name: DaemonLog
static_configs:
- targets:
- localhost
labels:
host: VOTRE_HOSTNAME
job: daemon
__path__: /var/log/daemon.log
```

Loading…
Cancel
Save