7883 ClassCastException when using -Dotel.jmx.target.system=tomcat (#7884)

Using "1" to specify units of plain cardinality.
This commit is contained in:
Peter Findeisen 2023-02-23 03:28:10 -08:00 committed by GitHub
parent 7062ee4910
commit 98653ef075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
--- ---
rules: rules:
- bean: Hadoop:service=NameNode,name=FSNamesystem - bean: Hadoop:service=NameNode,name=FSNamesystem
unit: 1 unit: "1"
prefix: hadoop. prefix: hadoop.
metricAttribute: metricAttribute:
node_name: param(tag.Hostname) node_name: param(tag.Hostname)

View File

@ -44,7 +44,7 @@ rules:
mapping: mapping:
selectCount: selectCount:
type: counter type: counter
unit: 1 unit: "1"
desc: The number of select calls desc: The number of select calls
- bean: org.eclipse.jetty.logging:type=jettyloggerfactory,id=* - bean: org.eclipse.jetty.logging:type=jettyloggerfactory,id=*
@ -52,5 +52,5 @@ rules:
mapping: mapping:
LoggerCount: LoggerCount:
type: updowncounter type: updowncounter
unit: 1 unit: "1"
desc: The number of registered loggers by name desc: The number of registered loggers by name

View File

@ -1,7 +1,7 @@
--- ---
rules: rules:
- bean: Catalina:type=GlobalRequestProcessor,name=* - bean: Catalina:type=GlobalRequestProcessor,name=*
unit: 1 unit: "1"
prefix: http.server.tomcat. prefix: http.server.tomcat.
metricAttribute: metricAttribute:
name: param(name) name: param(name)
@ -39,7 +39,7 @@ rules:
metricAttribute: metricAttribute:
direction: const(sent) direction: const(sent)
- bean: Catalina:type=Manager,host=localhost,context=* - bean: Catalina:type=Manager,host=localhost,context=*
unit: 1 unit: "1"
prefix: http.server.tomcat. prefix: http.server.tomcat.
type: updowncounter type: updowncounter
metricAttribute: metricAttribute:

View File

@ -5,7 +5,7 @@ rules:
deployment: param(deployment) deployment: param(deployment)
prefix: wildfly.session. prefix: wildfly.session.
type: counter type: counter
unit: 1 unit: "1"
mapping: mapping:
sessionsCreated: sessionsCreated:
activeSessions: activeSessions:
@ -18,7 +18,7 @@ rules:
listener: param(http-listener) listener: param(http-listener)
prefix: wildfly.request. prefix: wildfly.request.
type: counter type: counter
unit: 1 unit: "1"
mapping: mapping:
requestCount: requestCount:
processingTime: processingTime:
@ -42,7 +42,7 @@ rules:
metricAttribute: metricAttribute:
direction: const(in) direction: const(in)
- bean: jboss.as:subsystem=datasources,data-source=*,statistics=pool - bean: jboss.as:subsystem=datasources,data-source=*,statistics=pool
unit: 1 unit: "1"
metricAttribute: metricAttribute:
data_source: param(data-source) data_source: param(data-source)
mapping: mapping: