fix(monitoring): exporter auth and reload fixes

- postgres: use lib/pq conninfo DATA_SOURCE_NAME; the postgresql:// URL
  form broke on special chars in the password (net/url: invalid userinfo)
- nginx: flush handlers after deploying stub_status so nginx reloads
  before the exporter starts scraping
- valkey: drop invalid +arcount command from the exporter ACL set
  (Valkey aborted startup parsing the ACL file)
This commit is contained in:
Clément Désiles
2026-09-06 23:47:13 +02:00
parent ed5d0c68f1
commit 65fdb4face
4 changed files with 8 additions and 8 deletions
+3 -6
View File
@@ -42,12 +42,9 @@ valkey_exporter_listen_address: "127.0.0.1:9121"
valkey_exporter_redis_addr: "redis://127.0.0.1:6379"
valkey_exporter_user: valkey_exporter
# valkey_exporter_password: "" # Intentionally undefined - required when enabled
# Read-only command set recommended by redis_exporter for monitoring.
valkey_exporter_commands: >-
-@all +@connection +memory -readonly +strlen +config|get +xinfo +pfcount
-quit +zcard +type +xlen -readwrite -command +client -wait +scard +llen
+hlen +arcount +get +eval +slowlog +cluster|info +cluster|slots +cluster|nodes
-hello -echo +info +latency +scan -reset -auth -asking
# Read-only command set for monitoring: connection (auth/ping/client) + the
# metrics the exporter scrapes (INFO, CONFIG GET maxmemory).
valkey_exporter_commands: "-@all +@connection +info +config|get"
# Valkey log level (debug, verbose, notice, warning)
valkey_loglevel: notice