44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
---
|
|
telegraf_svc:
|
|
name: telegraf
|
|
influxdb:
|
|
url: https://tick.serguzim.me
|
|
token: "{{ vault_telegraf.influxdb_token }}"
|
|
organization: serguzim.net
|
|
bucket: metrics
|
|
prometheus_unprotected:
|
|
urls:
|
|
- http://node002.vpn.serguzim.net:2019/metrics
|
|
- 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:
|
|
user: "{{ vault_telegraf.db.user }}"
|
|
pass: "{{ vault_telegraf.db.pass }}"
|
|
host: "{{ postgres.host }}"
|
|
port: "{{ postgres.port }}"
|
|
database: telegraf
|
|
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:
|