infrastructure/playbooks/roles/telegraf/vars/main.yml

43 lines
1.2 KiB
YAML
Raw Normal View History

2024-09-26 22:02:36 +00:00
---
telegraf_svc:
influxdb:
url: https://tick.serguzim.me
token: "{{ vault_telegraf.influxdb_token }}"
organization: serguzim.net
bucket: metrics
prometheus_unprotected:
urls:
- https://matrix.serguzim.me/_synapse/metrics
- https://push.serguzim.me/metrics
- https://tick.serguzim.me/metrics
- https://todo.serguzim.me/api/v1/metrics
prometheus_protected:
urls:
- https://ci.serguzim.me/metrics
- https://git.serguzim.me/metrics
bearer_token: "{{ vault_metrics_token }}"
postgresql:
host: "{{ postgres.host }}"
port: "{{ postgres.port }}"
user: "{{ opentofu.postgresql_data.telegraf.user }}"
pass: "{{ opentofu.postgresql_data.telegraf.pass }}"
database: "{{ opentofu.postgresql_data.telegraf.database }}"
2024-09-26 22:02:36 +00:00
docker_log:
endpoint: unix:///var/run/docker.sock
source_tag: false
telegraf_compose:
watchtower: false
image: telegraf:1.28
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
file:
services:
app:
user: telegraf
group_add:
- "972" # docker group on host
volumes:
data: