February 2020
Intermediate to advanced
734 pages
38h 13m
English
Assume that we have a PostgreSQL server named pgha1. Follow these steps on the server to enable basic monitoring:
[[inputs.postgresql]] address = "host=pgha1 user=postgres" outputaddress = "pgha1" max_lifetime = "0s" databases = ["pgbench"]
[[outputs.file]] files = ["/tmp/metrics.out"]
sudo systemctl restart telegraf
tail -f /tmp/metrics.out | grep postgres
Read now
Unlock full access