-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy path920-pgbouncer_database.yml
240 lines (232 loc) · 7.15 KB
/
920-pgbouncer_database.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
##
# SYNOPSIS
# pgbouncer_database.pgbouncer_database_116_*
#
# DESCRIPTION
# Pgbouncer database stats (since 1.16)
#
# OPTIONS
# Tags [pgbouncer]
# TTL 10
# Priority 0
# Timeout 100ms
# Fatal false
# Version 11600 ~ higher
# Source 920-pgbouncer_database.yml
#
# METRICS
# name (LABEL)
# Name of configured database entry
# host (LABEL)
# Host that pgbouncer will connects to
# port (LABEL)
# Port that pgbouncer will connects to
# database (LABEL)
# The real database name pgbouncer connects to
# force_user (DISCARD)
# N/A
# pool_size (GAUGE)
# Maximum number of server connections
# min_pool_size (GAUGE)
# Minimum number of server connections
# reserve_pool (GAUGE)
# Maximum number of additional connections for this database
# pool_mode (DISCARD)
# N/A
# max_connections (GAUGE)
# Maximum number of allowed connections for this database
# current_connections (GAUGE)
# Current number of connections for this database
# paused (GAUGE)
# True(1) if this database is currently paused, else 0
# disabled (GAUGE)
# True(1) if this database is currently disabled, else 0
#
pgbouncer_database_123:
name: pgbouncer_database
desc: Pgbouncer database stats (since 1.23) # http://www.pgbouncer.org/usage.html#show-databases
query: SHOW DATABASES;
ttl: 10
min_version: 12300
tags:
- pgbouncer
metrics:
- name:
usage: LABEL
rename: datname
description: Name of configured database entry
- host:
usage: LABEL
description: Host that pgbouncer will connects to
- port:
usage: LABEL
description: Port that pgbouncer will connects to
- database:
usage: LABEL
rename: real_datname
description: The real database name pgbouncer connects to
- force_user:
usage: DISCARD
- pool_size:
usage: GAUGE
description: Maximum number of server connections
- min_pool_size:
usage: GAUGE
description: Minimum number of server connections
- reserve_pool:
usage: GAUGE
description: Maximum number of additional connections for this database
- server_lifetime:
usage: GAUGE
description: The maximum lifetime of a server connection for this database
- pool_mode:
usage: DISCARD
- max_connections:
usage: GAUGE
description: Maximum number of allowed connections for this database
- current_connections:
usage: GAUGE
description: Current number of connections for this database
- paused:
usage: GAUGE
description: True(1) if this database is currently paused, else 0
- disabled:
usage: GAUGE
description: True(1) if this database is currently disabled, else 0
pgbouncer_database_116_122:
name: pgbouncer_database
desc: Pgbouncer database stats (1.16-1.22) # http://www.pgbouncer.org/usage.html#show-databases
query: SHOW DATABASES;
ttl: 10
min_version: 11600
max_version: 12300
tags:
- pgbouncer
metrics:
- name:
usage: LABEL
rename: datname
description: Name of configured database entry
- host:
usage: LABEL
description: Host that pgbouncer will connects to
- port:
usage: LABEL
description: Port that pgbouncer will connects to
- database:
usage: LABEL
rename: real_datname
description: The real database name pgbouncer connects to
- force_user:
usage: DISCARD
- pool_size:
usage: GAUGE
description: Maximum number of server connections
- min_pool_size:
usage: GAUGE
description: Minimum number of server connections
- reserve_pool:
usage: GAUGE
description: Maximum number of additional connections for this database
- pool_mode:
usage: DISCARD
- max_connections:
usage: GAUGE
description: Maximum number of allowed connections for this database
- current_connections:
usage: GAUGE
description: Current number of connections for this database
- paused:
usage: GAUGE
description: True(1) if this database is currently paused, else 0
- disabled:
usage: GAUGE
description: True(1) if this database is currently disabled, else 0
##
# SYNOPSIS
# pgbouncer_database.pgbouncer_database_108_115_*
#
# DESCRIPTION
# Pgbouncer database stats (1.08-1.15)
#
# OPTIONS
# Tags [pgbouncer]
# TTL 10
# Priority 0
# Timeout 100ms
# Fatal false
# Version 10800 ~ 11600
# Source 920-pgbouncer_database.yml
#
# METRICS
# name (LABEL)
# Name of configured database entry
# host (LABEL)
# Host that pgbouncer will connects to
# port (LABEL)
# Port that pgbouncer will connects to
# database (LABEL)
# The real database name pgbouncer connects to
# force_user (DISCARD)
# N/A
# pool_size (COUNTER)
# Maximum number of server connections
# reserve_pool (GAUGE)
# Maximum number of additional connections for this database
# pool_mode (DISCARD)
# N/A
# max_connections (GAUGE)
# Maximum number of allowed connections for this database
# current_connections (GAUGE)
# Current number of connections for this database
# paused (GAUGE)
# True(1) if this database is currently paused, else 0
# disabled (GAUGE)
# True(1) if this database is currently disabled, else 0
#
pgbouncer_database_108_115:
name: pgbouncer_database
desc: Pgbouncer database stats (1.08-1.15) # http://www.pgbouncer.org/usage.html#show-databases
query: SHOW DATABASES;
ttl: 10
min_version: 10800
max_version: 11600
tags:
- pgbouncer
metrics:
- name:
usage: LABEL
rename: datname
description: Name of configured database entry
- host:
usage: LABEL
description: Host that pgbouncer will connects to
- port:
usage: LABEL
description: Port that pgbouncer will connects to
- database:
usage: LABEL
rename: real_datname
description: The real database name pgbouncer connects to
- force_user:
usage: DISCARD
- pool_size:
usage: COUNTER
description: Maximum number of server connections
- reserve_pool:
usage: GAUGE
description: Maximum number of additional connections for this database
- pool_mode:
usage: DISCARD
- max_connections:
usage: GAUGE
description: Maximum number of allowed connections for this database
- current_connections:
usage: GAUGE
description: Current number of connections for this database
- paused:
usage: GAUGE
description: True(1) if this database is currently paused, else 0
- disabled:
usage: GAUGE
description: True(1) if this database is currently disabled, else 0