|
15 | 15 | */
|
16 | 16 |
|
17 | 17 | def beanWildflyDeployment = otel.mbeans("jboss.as:deployment=*,subsystem=undertow")
|
18 |
| -otel.instrument(beanWildflyDeployment, "wildfly.session.count", "The number of sessions created.", "{sessions}", |
| 18 | +// no test covers sessions |
| 19 | +otel.instrument(beanWildflyDeployment, "wildfly.session.count", "The number of sessions created.", "{session}", |
19 | 20 | ["deployment": { mbean -> mbean.name().getKeyProperty("deployment")}],
|
20 | 21 | "sessionsCreated", otel.&longCounterCallback)
|
21 |
| -otel.instrument(beanWildflyDeployment, "wildfly.session.active", "The number of currently active sessions.", "{sessions}", |
| 22 | + |
| 23 | +otel.instrument(beanWildflyDeployment, "wildfly.session.active", "The number of currently active sessions.", "{session}", |
22 | 24 | ["deployment": { mbean -> mbean.name().getKeyProperty("deployment")}],
|
23 | 25 | "activeSessions", otel.&longUpDownCounterCallback)
|
24 |
| -otel.instrument(beanWildflyDeployment, "wildfly.session.expired", "The number of sessions that have expired.", "{sessions}", |
| 26 | +otel.instrument(beanWildflyDeployment, "wildfly.session.expired", "The number of sessions that have expired.", "{session}", |
25 | 27 | ["deployment": { mbean -> mbean.name().getKeyProperty("deployment")}],
|
26 | 28 | "expiredSessions", otel.&longCounterCallback)
|
27 |
| -otel.instrument(beanWildflyDeployment, "wildfly.session.rejected", "The number of sessions that have been rejected.", "{sessions}", |
| 29 | +otel.instrument(beanWildflyDeployment, "wildfly.session.rejected", "The number of sessions that have been rejected.", "{session}", |
28 | 30 | ["deployment": { mbean -> mbean.name().getKeyProperty("deployment")}],
|
29 | 31 | "rejectedSessions", otel.&longCounterCallback)
|
30 | 32 |
|
| 33 | + |
| 34 | + |
31 | 35 | def beanWildflyHttpListener = otel.mbeans("jboss.as:subsystem=undertow,server=*,http-listener=*")
|
32 |
| -otel.instrument(beanWildflyHttpListener, "wildfly.request.count", "The number of requests received.", "{requests}", |
| 36 | +otel.instrument(beanWildflyHttpListener, "wildfly.request.count", "The number of requests received.", "{request}", |
33 | 37 | ["server": { mbean -> mbean.name().getKeyProperty("server")}, "listener": { mbean -> mbean.name().getKeyProperty("http-listener")}],
|
34 | 38 | "requestCount", otel.&longCounterCallback)
|
35 | 39 | otel.instrument(beanWildflyHttpListener, "wildfly.request.time", "The total amount of time spent on requests.", "ns",
|
36 | 40 | ["server": { mbean -> mbean.name().getKeyProperty("server")}, "listener": { mbean -> mbean.name().getKeyProperty("http-listener")}],
|
37 | 41 | "processingTime", otel.&longCounterCallback)
|
38 |
| -otel.instrument(beanWildflyHttpListener, "wildfly.request.server_error", "The number of requests that have resulted in a 5xx response.", "{requests}", |
| 42 | +otel.instrument(beanWildflyHttpListener, "wildfly.request.server_error", "The number of requests that have resulted in a 5xx response.", "{request}", |
39 | 43 | ["server": { mbean -> mbean.name().getKeyProperty("server")}, "listener": { mbean -> mbean.name().getKeyProperty("http-listener")}],
|
40 | 44 | "errorCount", otel.&longCounterCallback)
|
41 |
| -otel.instrument(beanWildflyHttpListener, "wildfly.network.io", "The number of bytes transmitted.", "by", |
| 45 | +otel.instrument(beanWildflyHttpListener, "wildfly.network.io", "The number of bytes transmitted.", "By", |
42 | 46 | ["server": { mbean -> mbean.name().getKeyProperty("server")}, "listener": { mbean -> mbean.name().getKeyProperty("http-listener")}],
|
43 | 47 | ["bytesSent":["state":{"out"}], "bytesReceived":["state":{"in"}]],
|
44 | 48 | otel.&longCounterCallback)
|
45 | 49 |
|
46 | 50 | def beanWildflyDataSource = otel.mbeans("jboss.as:subsystem=datasources,data-source=*,statistics=pool")
|
47 |
| -otel.instrument(beanWildflyDataSource, "wildfly.jdbc.connection.open", "The number of open jdbc connections.", "{connections}", |
| 51 | +otel.instrument(beanWildflyDataSource, "wildfly.jdbc.connection.open", "The number of open jdbc connections.", "{connection}", |
48 | 52 | ["data_source": { mbean -> mbean.name().getKeyProperty("data-source")}],
|
49 | 53 | ["ActiveCount":["state":{"active"}], "IdleCount":["state":{"idle"}]],
|
50 | 54 | otel.&longUpDownCounterCallback)
|
51 |
| -otel.instrument(beanWildflyDataSource, "wildfly.jdbc.request.wait", "The number of jdbc connections that had to wait before opening.", "{requests}", |
| 55 | +otel.instrument(beanWildflyDataSource, "wildfly.jdbc.request.wait", "The number of jdbc connections that had to wait before opening.", "{request}", |
52 | 56 | ["data_source": { mbean -> mbean.name().getKeyProperty("data-source")}],
|
53 | 57 | "WaitCount", otel.&longCounterCallback)
|
54 | 58 |
|
55 | 59 | def beanWildflyTransaction = otel.mbean("jboss.as:subsystem=transactions")
|
56 |
| -otel.instrument(beanWildflyTransaction, "wildfly.jdbc.transaction.count", "The number of transactions created.", "{transactions}", |
| 60 | +otel.instrument(beanWildflyTransaction, "wildfly.jdbc.transaction.count", "The number of transactions created.", "{transaction}", |
57 | 61 | "numberOfTransactions", otel.&longCounterCallback)
|
58 |
| -otel.instrument(beanWildflyTransaction, "wildfly.jdbc.rollback.count", "The number of transactions rolled back.", "{transactions}", |
| 62 | +otel.instrument(beanWildflyTransaction, "wildfly.jdbc.rollback.count", "The number of transactions rolled back.", "{transaction}", |
59 | 63 | ["numberOfSystemRollbacks":["cause":{"system"}], "numberOfResourceRollbacks":["cause":{"resource"}], "numberOfApplicationRollbacks":["cause":{"application"}]],
|
60 | 64 | otel.&longCounterCallback)
|
0 commit comments