@@ -27,20 +27,20 @@ All metrics are divided into the following groups:
27
27
=== "Prometheus"
28
28
29
29
<h3>`counter`</h3>
30
-
30
+
31
31
A monotonically increasing metric type. It is used for events like the number of stanzas processed by the system.
32
-
32
+
33
33
**Example:**
34
34
```
35
35
# TYPE c2s_element_in_message_count counter
36
36
# HELP c2s_element_in_message_count Event: c2s_element_in, Metric: message_count
37
37
c2s_element_in_message_count{host_type="localhost"} 0
38
38
```
39
-
39
+
40
40
<h3>`gauge`</h3>
41
-
41
+
42
42
A metric that represents a current value in the system.
43
-
43
+
44
44
**Example:**
45
45
```
46
46
# TYPE mnesia_info_running_db_nodes gauge
@@ -49,9 +49,9 @@ All metrics are divided into the following groups:
49
49
```
50
50
51
51
<h3>`histogram`</h3>
52
-
52
+
53
53
A histogram collects values and groups them in buckets.
54
-
54
+
55
55
**Example:**
56
56
```
57
57
# TYPE c2s_xmpp_element_size_in_byte_size histogram
@@ -61,35 +61,35 @@ All metrics are divided into the following groups:
61
61
c2s_xmpp_element_size_in_byte_size_bucket{le="1073741824"} 0
62
62
c2s_xmpp_element_size_in_byte_size_bucket{le="+Inf"} 0
63
63
```
64
-
64
+
65
65
=== "Exometer"
66
-
66
+
67
67
<h3>`spiral`</h3>
68
-
68
+
69
69
This kind of metric provides 2 values: `total` event count (e.g. stanzas processed) and a value in 60s window (`one` value).
70
70
Dividing `one` value by 60 provides an average per-second value over last minute.
71
-
71
+
72
72
**Example:** `[{total, 1000}, {one, 20}]`
73
-
73
+
74
74
<h3>`counter`</h3>
75
-
75
+
76
76
A simple monotonically increasing value. It consists of two properties:
77
-
77
+
78
78
**Example:** `[{value, 12}, {ms_since_reset, 91761}]`
79
-
79
+
80
80
<h3>`gauge`</h3>
81
-
81
+
82
82
It is similar to a `counter` type but can be set to any value.
83
-
83
+
84
84
* `value`
85
85
* `ms_since_reset` - Time in milliseconds elapsed from the last metric update.
86
-
86
+
87
87
**Example:** `[{value, 12}, {ms_since_reset, 91761}]`
88
88
89
89
<h3>`histogram`</h3>
90
-
90
+
91
91
A histogram collects values over a sliding window of 60s and exposes the following stats:
92
-
92
+
93
93
* `n` - A number of samples.
94
94
* `mean` - An arithmetic mean.
95
95
* `min`
@@ -228,26 +228,26 @@ Since Exometer doesn't support labels, the host types and tags are part of the m
228
228
| Name | Type | Description (when it gets incremented) |
229
229
| ---- | ---- | -------------------------------------- |
230
230
| `wpool_rdbms_stats_workers` | gauge | Number of workers in the pool |
231
- | `wpool_rdbms_stats_recv_oct` | counter | Number of bytes received |
232
- | `wpool_rdbms_stats_recv_cnt` | counter | Number of packets received |
233
- | `wpool_rdbms_stats_recv_max` | gauge | Size of the largest packet, in bytes |
234
- | `wpool_rdbms_stats_send_oct` | counter | Number of bytes sent |
235
- | `wpool_rdbms_stats_send_max` | gauge | Size of the largest packet |
236
- | `wpool_rdbms_stats_send_cnt` | counter | Number of packets sent |
237
- | `wpool_rdbms_stats_send_pend` | counter | Number of bytes waiting to be sent |
231
+ | `wpool_rdbms_stats_recv_oct` | gauge | Number of bytes received |
232
+ | `wpool_rdbms_stats_recv_cnt` | gauge | Number of packets received |
233
+ | `wpool_rdbms_stats_recv_max` | gauge | Size of the largest packet, in bytes |
234
+ | `wpool_rdbms_stats_send_oct` | gauge | Number of bytes sent |
235
+ | `wpool_rdbms_stats_send_max` | gauge | Size of the largest packet |
236
+ | `wpool_rdbms_stats_send_cnt` | gauge | Number of packets sent |
237
+ | `wpool_rdbms_stats_send_pend` | gauge | Number of bytes waiting to be sent |
238
238
239
239
=== "Exometer"
240
240
241
241
| Name | Type | Description (when it gets incremented) |
242
242
|--------------------------------------------------------------|---------|----------------------------------------|
243
- | `[HostType, wpool_rdbms_stats, PoolTag, workers]` | counter | Number of workers in the pool |
244
- | `[HostType, wpool_rdbms_stats, PoolTag, recv_oct]` | spiral | Number of bytes received |
245
- | `[HostType, wpool_rdbms_stats, PoolTag, recv_cnt]` | spiral | Number of packets received |
246
- | `[HostType, wpool_rdbms_stats, PoolTag, recv_max]` | gauge | Size of the largest packet, in bytes |
247
- | `[HostType, wpool_rdbms_stats, PoolTag, send_oct]` | spiral | Number of bytes sent |
248
- | `[HostType, wpool_rdbms_stats, PoolTag, send_max]` | gauge | Size of the largest packet |
249
- | `[HostType, wpool_rdbms_stats, PoolTag, send_cnt]` | spiral | Number of packets sent |
250
- | `[HostType, wpool_rdbms_stats, PoolTag, send_pend]` | spiral | Number of bytes waiting to be sent |
243
+ | `[HostType, wpool_rdbms_stats, PoolTag, workers]` | gauge | Number of workers in the pool |
244
+ | `[HostType, wpool_rdbms_stats, PoolTag, recv_oct]` | gauge | Number of bytes received |
245
+ | `[HostType, wpool_rdbms_stats, PoolTag, recv_cnt]` | gauge | Number of packets received |
246
+ | `[HostType, wpool_rdbms_stats, PoolTag, recv_max]` | gauge | Size of the largest packet, in bytes |
247
+ | `[HostType, wpool_rdbms_stats, PoolTag, send_oct]` | gauge | Number of bytes sent |
248
+ | `[HostType, wpool_rdbms_stats, PoolTag, send_max]` | gauge | Size of the largest packet |
249
+ | `[HostType, wpool_rdbms_stats, PoolTag, send_cnt]` | gauge | Number of packets sent |
250
+ | `[HostType, wpool_rdbms_stats, PoolTag, send_pend]` | gauge | Number of bytes waiting to be sent |
251
251
252
252
When using a Rabbit worker pool, metrics defined in [ mod_event_pusher_rabbit] ( ../modules/mod_event_pusher_rabbit.md ) are
253
253
available.
0 commit comments