Martin,
I use the follow pattern to pull out socket server metrics:
```
#
kafka.server:type=socket-server-metrics,listener={listener_name},networkProcessor={#}
- pattern: kafka.(\w+)<type=(.+), (.+)=(.+), (.+)=(.+)><>([a-z-]+)
name: kafka_$1_$2_$7
type: GAUGE
labels:
"$3": "$4"
"$5": "$6"
```
On Wednesday, December 9, 2020 at 5:29:31 AM UTC-5 Martin Schneppenheim
wrote:
> I use the JMX exporter to export JMX metrics in the Prometheus format and
> I managed to make it work for most the JMX metrics. But some JMX metrics
> are different and therefore I probably need to adapt the JMX exporter
> config accordingly.
>
> I couldn't manage to export the JMX metrics as shown in JConsole (see
> screenshot). Among many other configurations I tried this:
>
> ```
> - pattern: kafka.server<type=socket-server-metrics, listener=(.+),
> networkProcessor=(.+),
> name=(connection-count|connection-creation-rate)><>Value
> name: "kafka_server_socket_server_metrics"
> labels:
> listener: $1
> network_processor: $2
> type: $3
> ```
>
> This ended up with no metrics for this metric name. How is the exporter
> config supposed to look like for these MBeans?
>
> Best,
> Martin.
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/c98de264-aa20-4575-96d3-92e335c0b1d9n%40googlegroups.com.