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:
- bean: Hadoop:service=NameNode,name=FSNamesystem
unit: 1
unit: "1"
prefix: hadoop.
metricAttribute:
node_name: param(tag.Hostname)

View File

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

View File

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

View File

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