Skip to content

Commit

Permalink
update normalized data
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelsaks committed Dec 10, 2024
1 parent 7973937 commit 0c5ed2d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
25 changes: 15 additions & 10 deletions metricbeat/module/pgbouncer/lists/_meta/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,23 @@
},
"pgbouncer": {
"lists": {
"databases": 1,
"free_clients": 48,
"free_servers": 0,
"users": 4,
"dns_zones": 0,
"users": 2,
"clients": {
"free": 47,
"used": 3,
"login": 0
},
"peers": 0,
"peer_pools": 0,
"login_clients": 0,
"pools": 1,
"used_clients": 2,
"used_servers": 0,
"dns_names": 0
"dns_queries": 0,
"databases": 1,
"dns_names": 0,
"servers": {
"free": 0,
"used": 0
},
"dns_zones": 0,
"pools": 1
}
},
"service": {
Expand Down
6 changes: 3 additions & 3 deletions metricbeat/module/pgbouncer/lists/lists_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ func TestMetricSet_Fetch(t *testing.T) {
assert.Contains(t, event, "peers")
assert.Contains(t, event, "pools")
assert.Contains(t, event, "peer_pools")
assert.Contains(t, event, "clients.used")
assert.Contains(t, event, "servers.free")
assert.Contains(t, event, "servers.used")
assert.Contains(t, event["clients"], "used")
assert.Contains(t, event["servers"], "free")
assert.Contains(t, event["servers"], "used")
}
func getConfig(host string) map[string]interface{} {
return map[string]interface{}{
Expand Down

0 comments on commit 0c5ed2d

Please sign in to comment.