Skip to content

Commit d2598d5

Browse files
committed
Fix JMX exporter rules to emit default catalina metric names for Container Insights
1 parent 6f3ee3b commit d2598d5

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

sample-apps/jmx/config.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ rules:
1010
name: java_lang_threading_$1
1111
type: GAUGE
1212

13+
# Emit catalina_globalrequestprocessor_$3 (no _total suffix) with port/protocol labels,
14+
# matching the names the EKS Container Insights metric_declarations and validator expect.
1315
- pattern: 'Catalina<type=GlobalRequestProcessor, name=\"(\w+-\w+)-(\d+)\"><>(\w+)'
14-
name: catalina_globalrequestprocessor_$3_total
16+
name: catalina_globalrequestprocessor_$3
1517
labels:
1618
port: "$2"
1719
protocol: "$1"
@@ -34,12 +36,14 @@ rules:
3436
help: Catalina threadpool $3
3537
type: GAUGE
3638

37-
- pattern: 'Catalina<type=Manager, host=([-a-zA-Z0-9+&@#/%?=~_|!:.,;]*[-a-zA-Z0-9+&@#/%=~_|]), context=([-a-zA-Z0-9+/$%~_-|!.]*)><>(processingTime|sessionCounter|rejectedSessions|expiredSessions)'
38-
name: catalina_session_$3_total
39+
# Emit catalina_manager_$3 (e.g. catalina_manager_rejectedsessions/activesessions), matching
40+
# the names the EKS Container Insights metric_declarations and validator expect.
41+
- pattern: 'Catalina<type=Manager, host=([-a-zA-Z0-9+&@#/%?=~_|!:.,;]*[-a-zA-Z0-9+&@#/%=~_|]), context=([-a-zA-Z0-9+/$%~_-|!.]*)><>(rejectedSessions|activeSessions|processingTime|sessionCounter|expiredSessions)'
42+
name: catalina_manager_$3
3943
labels:
4044
context: "$2"
4145
host: "$1"
42-
help: Catalina session $3 total
46+
help: Catalina Manager $3
4347
type: COUNTER
4448

4549
- pattern: ".*"

0 commit comments

Comments
 (0)