Skip to content

Commit 10784b7

Browse files
committed
fix wildfly datasource metrics
1 parent c9d6b70 commit 10784b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jmx-scraper/src/main/resources/wildfly.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,24 @@ rules:
5959
- bean: jboss.as:subsystem=datasources,data-source=*,statistics=pool
6060
metricAttribute:
6161
data_source: param(data-source)
62-
type: counter
6362
prefix: wildfly.jdbc.
6463
mapping:
6564
ActiveCount:
6665
metric: &metric connection.open
66+
type: updowncounter
6767
unit: &unit "{connection}"
6868
desc: &desc The number of open jdbc connections.
6969
metricAttribute:
7070
state: const(active)
7171
IdleCount:
7272
metric: *metric
73+
type: updowncounter
7374
unit: *unit
7475
desc: *desc
7576
metricAttribute:
7677
state: const(idle)
7778
WaitCount:
79+
type: counter
7880
metric: request.wait
7981
unit: "{request}"
8082
desc: The number of jdbc connections that had to wait before opening.

0 commit comments

Comments
 (0)