--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/de3a4cfd-a51b-495e-b71a-144dbbbff84bn%40googlegroups.com.
This subsystem exposes metrics from the WildFly Management Model and JVM MBeans, as well as end-user deployments via the Micrometer API now exposed by the server. Metrics are made available via Micrometer Registries, and WildFly supports two of these:
OTLP - a push-based registry that publishes data periodically to the configured OpenTelemetry Collector
Prometheus - a pull-based registry that allows for metrics to be pulled (or scraped) by an external process
To install the Prometheus registry, execute this command:
[standalone@localhost:9990 /] /subsystem=micrometer/registry=prometheus:add(context="/metrics")
This will create a context on the management interface from which metrics can be scraped. For example, the above configuration would result in a URL that looks like http://localhost:9090/metrics. If you have not disabled the WildFly Metrics subsystem, you will not be able to use /metrics as your context, as that is already configured. To disable the WildFly Metrics Subsystem, see the remove commands above.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/27a18b6b-f390-4158-acde-7df3e27f3f20n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/9370B577-33A5-4688-949E-147B996BE9D3%40redhat.com.