Skip to content

Commit 1abf72c

Browse files
Add missing metric on pgbouncer pool that avoids unmarshal of others. (#78)
* Add missing metric on pgbouncer pool that avoids unmarshal of others.
1 parent 792d421 commit 1abf72c

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

src/metrics/pgbouncer_definitions.go

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,17 @@ var pgbouncerPoolsDefinition = &QueryDefinition{
3838

3939
dataModels: []struct {
4040
databaseBase
41-
User *string `db:"user"`
42-
ClActive *int64 `db:"cl_active" metric_name:"pgbouncer.pools.clientConnectionsActive" source_type:"gauge"`
43-
ClWaiting *int64 `db:"cl_waiting" metric_name:"pgbouncer.pools.clientConnectionsWaiting" source_type:"gauge"`
44-
SvActive *int64 `db:"sv_active" metric_name:"pgbouncer.pools.serverConnectionsActive" source_type:"gauge"`
45-
SvIdle *int64 `db:"sv_idle" metric_name:"pgbouncer.pools.serverConnectionsIdle" source_type:"gauge"`
46-
SvUsed *int64 `db:"sv_used" metric_name:"pgbouncer.pools.serverConnectionsUsed" source_type:"gauge"`
47-
SvTested *int64 `db:"sv_tested" metric_name:"pgbouncer.pools.serverConnectionsTested" source_type:"gauge"`
48-
SvLogin *int64 `db:"sv_login" metric_name:"pgbouncer.pools.serverConnectionsLogin" source_type:"gauge"`
49-
MaxWait *int64 `db:"maxwait" metric_name:"pgbouncer.pools.maxwaitInMilliseconds" source_type:"gauge"`
50-
MaxWaitUs *int64 `db:"maxwait_us"`
51-
PoolMode *string `db:"pool_mode"`
41+
User *string `db:"user"`
42+
ClCancelReq *int64 `db:"cl_cancel_req" metric_name:"pgbouncer.pools.clientConnectionsCancelReq" source_type:"gauge"`
43+
ClActive *int64 `db:"cl_active" metric_name:"pgbouncer.pools.clientConnectionsActive" source_type:"gauge"`
44+
ClWaiting *int64 `db:"cl_waiting" metric_name:"pgbouncer.pools.clientConnectionsWaiting" source_type:"gauge"`
45+
SvActive *int64 `db:"sv_active" metric_name:"pgbouncer.pools.serverConnectionsActive" source_type:"gauge"`
46+
SvIdle *int64 `db:"sv_idle" metric_name:"pgbouncer.pools.serverConnectionsIdle" source_type:"gauge"`
47+
SvUsed *int64 `db:"sv_used" metric_name:"pgbouncer.pools.serverConnectionsUsed" source_type:"gauge"`
48+
SvTested *int64 `db:"sv_tested" metric_name:"pgbouncer.pools.serverConnectionsTested" source_type:"gauge"`
49+
SvLogin *int64 `db:"sv_login" metric_name:"pgbouncer.pools.serverConnectionsLogin" source_type:"gauge"`
50+
MaxWait *int64 `db:"maxwait" metric_name:"pgbouncer.pools.maxwaitInMilliseconds" source_type:"gauge"`
51+
MaxWaitUs *int64 `db:"maxwait_us"`
52+
PoolMode *string `db:"pool_mode"`
5253
}{},
5354
}

0 commit comments

Comments
 (0)