You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -148,7 +153,10 @@ labels | A map of label name to label value pairs. Capture groups fro
148
153
help | Help text for the metric. Capture groups from `pattern` can be used. `name` must be set to use this. Defaults to the mBean attribute description, domain, and name of the attribute.
149
154
cache | Whether to cache bean name expressions to rule computation (match and mismatch). Not recommended for rules matching on bean value, as only the value from the first scrape will be cached and re-used. This can increase performance when collecting a lot of mbeans. Defaults to `false`.
150
155
type | The type of the metric, can be `GAUGE`, `COUNTER` or `UNTYPED`. `name` must be set to use this. Defaults to `UNTYPED`.
151
-
attributesAsLabels | A list of attributes from an mBean which will be added as labels for all the metrics of that mBean. Defaults to none.
156
+
metricCustomizers | A list of objects that contain `mbeanFilter` and `attributesAsLabels`. For those mbeans that match the filter, the items in the `attributesAsLabels` list will be added as attributes to the existing metrics.
157
+
domain | Domain of an mbean.
158
+
properties | Properties of an mbean.
159
+
attributesAsLabels | List of elements to be added as attributes to existing metrics.
152
160
153
161
Metric names and label names are sanitized. All characters other than `[a-zA-Z0-9:_]` are replaced with underscores,
154
162
and adjacent underscores are collapsed. There's no limitations on label values or the help text.
0 commit comments