-
Notifications
You must be signed in to change notification settings - Fork 1
/
jmx_sag_um_exporter.yaml
375 lines (322 loc) · 14.5 KB
/
jmx_sag_um_exporter.yaml
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
---
startDelaySeconds: 10
#Prometheus agent is querying and shipping additional metrics from UM server even if we have not specified them into the rules.
#This may cause CPU spikes. We are introducing a blacklist and whitelist to limit this behaviour.
#Extend or narrow them down for your use case.
blacklistObjectNames:
- "com.softwareag.um.server:type=Broker,subtype=Configuration,*"
- "com.softwareag.um.server:type=Broker,configType=Properties,*"
- "com.softwareag.um.server:type=Broker,destinationType=Security,*"
- "com.softwareag.um.server:type=Broker,entry=acl,*"
- "com.softwareag.um.server:type=Broker,brokerName=*,interface=*"
- "com.softwareag.um.server:type=Broker,brokerName=*,destinationType=Topic,destinationName=*,subtype=Configuration,*"
- "com.softwareag.um.server:type=Broker,brokerName=*,destinationType=Topic,destinationName=*,securityType=Security,entry=acl,*"
- "com.softwareag.um.server:type=Broker,brokerName=*,destinationType=Queue,destinationName=*,subtype=Configuration,*"
- "com.softwareag.um.server:type=Broker,brokerName=*,destinationType=Queue,destinationName=*,securityType=Security,entry=acl,*"
whitelistObjectNames:
- "com.softwareag.um.server:type=Broker,brokerName=*"
- "com.softwareag.um.server:type=Broker,brokerName=*,destinationType=Queue,*"
- "com.softwareag.um.server:type=Broker,brokerName=*,destinationType=Topic,*"
- "com.softwareag.um.server:type=Broker,brokerName=*,threadPool=ThreadPoolMonitor,threadPoolName=*"
- "com.softwareag.um.server:type=Broker,brokerName=*,clusterType=Cluster,clusterName=*"
- "com.softwareag.um.server:type=Broker,brokerName=*,session=Sessions,*"
rules:
#Server Statistics
#Heap Memory Usage - HeapMemory
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(HeapMemory)
name: sag_um_server_memory_heap_usage_bytes
help: "Amount of heap memory used by the server in bytes"
type: GAUGE
#Heap Memory Free - MemoryFree
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(MemoryFree)
name: sag_um_server_memory_heap_free_bytes
help: "Amount of freely available memory on the server in bytes"
type: GAUGE
#Heap Memory Max - MemoryMax
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(MemoryMax)
name: sag_um_server_memory_heap_max_bytes
help: "Maximum amount of memory available for the server in bytes"
type: GAUGE
#Direct Memory Max - DirectMemoryMax
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(DirectMemoryMax)
name: sag_um_server_memory_direct_max_bytes
help: "Maximum amount of direct memory for the server in bytes"
type: GAUGE
#Direct Memory Usage - DirectMemoryUsage
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(DirectMemoryUsage)
name: sag_um_server_memory_direct_usage_bytes
help: "Amount of direct memory used by the server in bytes"
type: GAUGE
#Direct Memory Free - DirectMemoryFree
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(DirectMemoryFree)
name: sag_um_server_memory_direct_free_bytes
help: "Amount of direct memory free for the server in bytes"
type: GAUGE
#Disk Total - DiskTotal
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(DiskTotal)
name: sag_um_server_disk_total_bytes
help: "Total space on disk in bytes"
type: GAUGE
#Disk Usage - DiskUsage
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(DiskUsage)
name: sag_um_server_disk_usage_bytes
help: "Server disk usage in bytes"
type: GAUGE
#Disk Free - DiskFree
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(DiskFree)
name: sag_um_server_disk_free_bytes
help: "Free space on disk in bytes"
type: GAUGE
#CPU
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(CPU)
name: sag_um_server_cpu_usage_ratio
help: "Server CPU usage ratio"
type: GAUGE
#Number Of Current Connections - CurrentConnections
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(CurrentConnections)
name: sag_um_server_currentconnections_total
help: "Number of current client connections to the server"
type: GAUGE
#BytesIn
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(BytesIn)
name: sag_um_server_bytesin_bytes
help: "Total bytes received by the server"
type: COUNTER
#BytesOut
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(BytesOut)
name: sag_um_server_bytesout_bytes
help: "Total bytes sent by the server"
type: COUNTER
#Events Published - TotalPublishedEvents
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(TotalPublishedEvents)
name: sag_um_server_publishedevents_total
help: "Total number of events published by the server"
type: COUNTER
#Events Consumed - TotalConsumedCount
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*)><>(TotalConsumedCount)
name: sag_um_server_consumedevents_total
help: "Total number of events consumed by the server"
type: COUNTER
#Cluster Metrics
#Process Queue Size
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), clusterType=(\S*), clusterName=(\S*)><>(ProcessQueue)
name: sag_um_cluster_processqueue_total
help: "Size of the cluster queue waiting to be processed"
type: GAUGE
#Client Queue Size
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), clusterType=(\S*), clusterName=(\S*)><>(ClientQueue)
name: sag_um_cluster_clientqueue_total
help: "Size of the local cluster client queue"
type: GAUGE
#Comms Queue Size
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), clusterType=(\S*), clusterName=(\S*)><>(CommsQueue)
name: sag_um_cluster_commsqueue_total
help: "Size of the incoming cluster request queue"
type: GAUGE
#The Cluster Node State
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), clusterType=(\S*), clusterName=(\S*)><>.*CurrentState:\s(.*)
name: sag_um_cluster_currentstate_info
value: 1
labels:
state: $4
current_node: $1
cluster_name: $3
help: "Current state of the cluster node"
#Thread Pool Statistics
#Thread Pool's Idle Threads
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), threadPool=(\S*), threadPoolName=(\S*)><>(Idle Threads)
name: sag_um_threadpool_idle_threads
labels:
name: $3
help: "Number of current idle threads (allocated but not processing any tasks) for the thread pool"
type: GAUGE
#Thread Pool's Queued Tasks
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), threadPool=(\S*), threadPoolName=(\S*)><>(Queued Tasks)
name: sag_um_threadpool_queued_tasks
labels:
name: $3
help: "Number of queued tasks waiting to be executed for the thread pool"
type: GAUGE
#Number Of Allocated Tasks
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), threadPool=(\S*), threadPoolName=(\S*)><>(Allocated Threads)
name: sag_um_threadpool_allocated_threads
labels:
name: $3
help: "Number of threads currently allocated for the thread pool"
type: GAUGE
#Number Of Stalled Tasks
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), threadPool=(\S*), threadPoolName=(\S*)><>(Stalled Tasks)
name: sag_um_threadpool_stalled_tasks
labels:
name: $3
help: "Number of stalled tasks since the last check was performed for the thread pool"
type: GAUGE
#Event Handling
#Per Store: Topic Events Published
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Topic, (.*)><>(TotalPublished)
name: sag_um_topic_published_total
labels:
name: $2
help: "Total number of events published on the channel"
type: COUNTER
#Per Store: Total Consumed Events
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Topic, (.*)><>(TotalConsumed)
name: sag_um_topic_consumed_total
labels:
name: $2
help: "Total number of events consumed from the channel"
type: COUNTER
#Per Store: Topic Events In Store
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Topic, (.*)><>(NoOfEvents)
name: sag_um_topic_noofevents_total
labels:
name: $2
help: "Total number of events on the channel"
type: GAUGE
#Per Store: Memory Usage
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Topic, (.*)><>(MemoryUsage)
name: sag_um_topic_memory_usage_bytes
labels:
name: $2
help: "Amount of memory used by the channel in bytes"
type: GAUGE
#Per Store: Disk Usage
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Topic, (.*)><>(UsedSpace)
name: sag_um_topic_disk_usage_bytes
labels:
name: $2
help: "Current space used by the channel in bytes"
type: GAUGE
#Per Store: Current Connections (Subscribers)
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Topic, (.*)><>(CurrentConnections)
name: sag_um_topic_currentconnections_total
labels:
name: $2
help: "Current number of channel consumers"
type: GAUGE
#Per Durable: Durable Node Information - Outstanding, Durable Total Events
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Topic, (.*), durable=(\S*), durableType=(\S*), durableName=(\S*)><>(TotalEvents)
name: sag_um_topic_durable_outstanding_total
labels:
topic_name: $2
durable_name: $5
durable_type: $4
help: "Total number of outstanding events for the durable"
type: GAUGE
#Per Durable: Durable Node Information - Pending, Durable Pending Events
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Topic, (.*), durable=(\S*), durableType=(\S*), durableName=(\S*)><>(TotalPending)
name: sag_um_topic_durable_pending_total
labels:
topic_name: $2
durable_name: $5
durable_type: $4
help: "Total number of pending unacknowledged events for the durable"
type: GAUGE
#Number of Connections (Subscribers)
#Durable Connections - Per Connection Statistics
#Acknowledged
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Topic, (.*), durable=(\S*), durableType=(\S*), durableName=(\S*), subtype=(\S*)><>(Acknowledged)
name: sag_um_topic_durable_connection_acknowledged_total
labels:
topic_name: $2
durable_name: $5
connection: $6
help: "Number of events acknowledged by the connection"
type: COUNTER
#RolledBack
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Topic, destinationName=(\S*), durable=(\S*), durableType=(\S*), durableName=(\S*), subtype=(\S*)><>(RolledBack)
name: sag_um_topic_durable_connection_rolledBack_total
labels:
topic_name: $2
durable_name: $5
durable_type: $4
connection: $6
help: "Number of events rolled back by the connection"
type: COUNTER
#Pending
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Topic, destinationName=(\S*), durable=(\S*), durableType=(\S*), durableName=(\S*), subtype=(\S*)><>(Pending)
name: sag_um_topic_durable_connection_pending_total
labels:
topic_name: $2
durable_name: $5
durable_type: $4
connection: $6
help: "Number of events pending acknowledgement by the connection"
type: GAUGE
#Queue Data
#Per Store: Queue Events Published
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Queue, (.*)><>(TotalPublished)
name: sag_um_queue_published_total
labels:
name: $2
help: "Total number of events published on the queue"
type: COUNTER
#Per Store: Total Consumed Events
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Queue, (.*)><>(TotalConsumed)
name: sag_um_queue_consumed_total
labels:
name: $2
help: "Total number of events consumed from the queue"
type: COUNTER
#Per Store: Queue Events In Store
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Queue, (.*)><>(NoOfEvents)
name: sag_um_queue_events_total
cache: true
labels:
name: $2
help: "Total number of events on the queue"
type: GAUGE
#Per Store: Memory Usage
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Queue, (.*)><>(MemoryUsage)
name: sag_um_queue_memory_usage_bytes
labels:
name: $2
help: "Amount of memory used by the queue in bytes"
type: GAUGE
#Per Store: Disk Usage
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Queue, (.*)><>(UsedSpace)
name: sag_um_queue_disk_usage_bytes
labels:
name: $2
help: "Current space used by the queue in bytes"
type: GAUGE
#Per Store: Current Connections (Subscribers)
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Queue, (.*)><>(CurrentConnections)
name: sag_um_queue_currentconnections_total
labels:
name: $2
help: "Current number of queue consumers"
type: GAUGE
#Queue Connection Metrics
#Acknowledged
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Queue, (.*), Connection=(\S*), ConnectionEntry=(\S*)><>(Acknowledged)
name: sag_um_queue_connection_acknowledged_total
labels:
name: $2
connection: $4
help: "Number of events acknowledged by the connection"
type: COUNTER
#RolledBack
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Queue, (.*), Connection=(\S*), ConnectionEntry=(\S*)><>(RolledBack)
name: sag_um_queue_connection_rolledBack_total
labels:
name: $2
connection: $4
help: "Number of events rolled back by the connection"
type: COUNTER
#Pending
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), destinationType=Queue, (.*), Connection=(\S*), ConnectionEntry=(\S*)><>(Pending)
name: sag_um_queue_connection_pending_total
labels:
name: $2
connection: $4
help: "Number of events pending acknowledgement by the connection"
type: GAUGE
#User Connections
#NumberOfConnections
- pattern: com.softwareag.um.server<type=Broker, brokerName=(\S*), session=Sessions, (.*)><>(NumberOfConnections)
name: sag_um_connections_per_user
labels:
name: $2
help: "Number of user connections currently connected to the server"
type: GAUGE