55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
svc:
|
|
name: telegraf
|
|
influxdb:
|
|
url: "https://tick.serguzim.me"
|
|
token: "{{ vault_telegraf.influxdb_token }}"
|
|
organization: serguzim.net
|
|
bucket: metrics
|
|
prometheus:
|
|
urls:
|
|
- https://ci.serguzim.me/metrics
|
|
- https://git.serguzim.me/metrics
|
|
- https://matrix.msrg.cc/_synapse/metrics
|
|
- https://tick.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"
|
|
# from_beginning: false
|
|
# timeout: "5s"
|
|
|
|
# container_name_include: []
|
|
# container_name_exclude: []
|
|
|
|
# docker_label_include: []
|
|
# docker_label_exclude: []
|
|
|
|
## Set the source tag for the metrics to the container ID hostname, eg first 12 chars
|
|
source_tag: false
|
|
|
|
## Optional TLS Config
|
|
# tls_ca: "/etc/telegraf/ca.pem"
|
|
# tls_cert: "/etc/telegraf/cert.pem"
|
|
# tls_key: "/etc/telegraf/key.pem"
|
|
## Use TLS but skip chain & host verification
|
|
# insecure_skip_verify: false
|
|
|
|
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:
|