Commit 91e47be
Opus: T-17092 Build cluster-agent from source, remove statement_timeout from DSN
coroot-cluster-agent hardcodes statement_timeout=<ms> as a PostgreSQL DSN
parameter. lib/pq sends DSN parameters as startup parameters during the
connection handshake. PgBouncer (since v1.20.0) rejects unrecognized
startup parameters, breaking metrics collection for customers using
PgBouncer as a connection pooler.
The fix removes statement_timeout from the DSN. Query timeouts are still
enforced client-side via Go's context.WithTimeout in the collector's
Collect() method.
To apply this patch, we now build cluster-agent from source (like we
already do for node-agent) instead of pulling a pre-built image.
Also upgrades cluster-agent from v1.2.4 to v1.6.1.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8170f77 commit 91e47be
2 files changed
Lines changed: 36 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
22 | 35 | | |
23 | 36 | | |
24 | 37 | | |
| |||
71 | 84 | | |
72 | 85 | | |
73 | 86 | | |
74 | | - | |
| 87 | + | |
75 | 88 | | |
76 | 89 | | |
77 | 90 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments