commit | c3f2d4769d46308edb1177624e3a2539f4781df6 | [log] [tgz] |
---|---|---|
author | Roy Teeuwen <royteeuwen@apache.org> | Wed Aug 07 17:50:45 2024 +0200 |
committer | GitHub <noreply@github.com> | Wed Aug 07 17:50:45 2024 +0200 |
tree | 53029efdf4c729fbee72ee9ea11a2dc5daa0a062 | |
parent | 9a46dc5c5c3bca17c14b4d66aa1986485070fc1e [diff] | |
parent | 0fca5b4efedba0809ceb35df2a8675d02f60241b [diff] |
Merge pull request #2 from apache/SLING-12395 SLING-12395: Make hotspot dependency optional as well
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 } ]