Skip to content

Commit 0f6015a

Browse files
authored
JMX Exporter Preserve Original Regexes (apache#12295)
* jmx -> prom exporter catch-all regexes * Keep the previous regex * Fix incorrect capture group number * Add regex to pinot.yml
1 parent 640ebe5 commit 0f6015a

File tree

1 file changed

+50
-0
lines changed
  • docker/images/pinot/etc/jmx_prometheus_javaagent/configs

1 file changed

+50
-0
lines changed

Diff for: docker/images/pinot/etc/jmx_prometheus_javaagent/configs/server.yml

+50
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ rules:
3131
tableType: "$2"
3232
topic: "$3"
3333
partition: "$4"
34+
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.highestStreamOffsetConsumed.([^\\.]*?)_(OFFLINE|REALTIME)\\-(.+)\\-(\\w+)\"><>(\\w+)"
35+
name: "pinot_server_highestStreamOffsetConsumed_$5"
36+
cache: true
37+
labels:
38+
table: "$1"
39+
tableType: "$2"
40+
topic: "$3"
41+
partition: "$4"
3442
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.lastRealtimeSegment(\\w+)Seconds.([^\\.]*?)_(OFFLINE|REALTIME)\\-(.+)\\-(\\w+)\"><>(\\w+)"
3543
name: "pinot_server_lastRealtimeSegment$1Seconds_$6"
3644
cache: true
@@ -42,6 +50,21 @@ rules:
4250
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.llcControllerResponse(\\w+)\"><>(\\w+)"
4351
name: "pinot_server_llcControllerResponse_$1_$2"
4452
cache: true
53+
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.llcPartitionConsuming.([^\\.]*?)_(OFFLINE|REALTIME)\\-(.+)\\-(\\w+)\"><>(\\w+)"
54+
name: "pinot_server_llcPartitionConsuming_$5"
55+
cache: true
56+
labels:
57+
table: "$1"
58+
tableType: "$2"
59+
topic: "$3"
60+
partition: "$4"
61+
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.realtimeIngestionDelayMs.([^\\.]*?)_(OFFLINE|REALTIME)\\.(\\w+)\"><>(\\w+)"
62+
name: "pinot_server_realtimeIngestionDelayMs_$4"
63+
cache: true
64+
labels:
65+
table: "$1"
66+
tableType: "$2"
67+
partition: "$3"
4568
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.llcSimultaneousSegmentBuilds\"><>(\\w+)"
4669
name: "pinot_server_llcSimultaneousSegmentBuilds_$1"
4770
cache: true
@@ -89,17 +112,44 @@ rules:
89112
cache: true
90113
labels:
91114
table: "$1"
115+
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.numResizes.([^\\.]*?)_(OFFLINE|REALTIME)\"><>(\\w+)"
116+
name: "pinot_server_numResizes_$3"
117+
cache: true
118+
labels:
119+
table: "$1"
120+
tableType: "$2"
92121
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.resizeTimeMs.([^\\.]*?)_(OFFLINE|REALTIME)\"><>(\\w+)"
93122
name: "pinot_server_resizeTimeMs_$3"
94123
cache: true
95124
labels:
96125
table: "$1"
97126
tableType: "$2"
127+
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.upsertPrimaryKeysCount.([^\\.]*?)_(OFFLINE|REALTIME).(\\w+)\"><>(\\w+)"
128+
name: "pinot_server_upsertPrimaryKeysCount_$4"
129+
cache: true
130+
labels:
131+
table: "$1"
132+
tableType: "$2"
133+
partition: "$3"
98134
- pattern: "\"?org\\.apache\\.pinot\\.common\\.metrics\"?<type=\"?\\w+\"?, name=\"?pinot\\.(\\w+)\\.version\\.(\\w+)\"?><>(\\w+)"
99135
name: "pinot_$1_version"
100136
cache: true
101137
labels:
102138
version: "$2"
139+
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.upsertValidDocSnapshotCount.([^\\.]*?)_(OFFLINE|REALTIME).(\\w+)\"><>(\\w+)"
140+
name: "pinot_server_upsertValidDocSnapshotCount_$4"
141+
cache: true
142+
labels:
143+
table: "$1"
144+
tableType: "$2"
145+
partition: "$3"
146+
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.upsertPrimaryKeysInSnapshotCount.([^\\.]*?)_(OFFLINE|REALTIME).(\\w+)\"><>(\\w+)"
147+
name: "pinot_server_upsertPrimaryKeysInSnapshotCount_$4"
148+
cache: true
149+
labels:
150+
table: "$1"
151+
tableType: "$2"
152+
partition: "$3"
103153
#grpc related metrics
104154
- pattern: "\"org.apache.pinot.common.metrics\"<type=\"ServerMetrics\", name=\"pinot.server.grpc(.+)\"><>(\\w+)"
105155
name: "pinot_server_grpc$1_$2"

0 commit comments

Comments
 (0)