| commit | 69838139a83745de55d902e7c25bfd08d6985c1f | [log] [tgz] |
|---|---|---|
| author | Roy Teeuwen <c-roy.teeuwen@acolad.com> | Mon Jul 29 16:10:29 2024 +0200 |
| committer | Roy Teeuwen <c-roy.teeuwen@acolad.com> | Mon Jul 29 16:10:29 2024 +0200 |
| tree | 449fb6a85c39092a615640d9c5fd43cd5d3b970b | |
| parent | 6eed96af86c896df263b141e37c087d910719f2a [diff] |
SLING-12395: adds the possibility to disable the default jvm metrics to prometheus
This module is part of the Apache Sling project.
This bundle exposes the collected metrics under the /metrics path and provides the following features:
MetricRegistry instancesThe bundle is compatible with prometheus/client-java versions up to 0.10.0. Version 0.11.0 introduced a mandatory dependency on opentelemetry-api, which is not a valid OSGi bundle. This was rectified in version 0.16.0, but unfortunately versions >= 0.15.0 depend on version 4.0 of Dropwizard metrics, which is not supported by the current org.apache.sling.commons.metrics.bundle .
A recommended feature model file for deploying this bundle and additional dependencies is
"bundles": [ { "id": "io.prometheus/simpleclient/0.10.0", "start-order": 20 }, { "id": "io.prometheus/simpleclient_common/0.10.0", "start-order": 20 }, { "id": "io.prometheus/simpleclient_servlet/0.10.0", "start-order": 20 }, { "id": "io.prometheus/simpleclient_dropwizard/0.10.0", "start-order": 20 }, { "id": "io.prometheus/simpleclient_hotspot/0.10.0", "start-order": 20 }, { "id": "org.apache.sling/org.apache.sling.commons.metrics.prometheus/1.0-SNAPSHOT", "start-order": 20 } ]