Apache Sling Commons Prometheus Metrics Exporter

Clone this repo:
  1. a345e76 SLING-12866 - Restrict force pushes, auto-delete branches on merge by Robert Munteanu · 4 weeks ago master
  2. 4a22d48 SLING-12459 - Redirect sonarcloud notifications to commits@apache.sling.org by Robert Munteanu · 10 months ago
  3. 455a821 [maven-release-plugin] prepare for next development iteration by Robert Munteanu · 1 year, 1 month ago
  4. 755422a [maven-release-plugin] prepare release org.apache.sling.commons.metrics.prometheus-0.1.2 by Robert Munteanu · 1 year, 1 month ago org.apache.sling.commons.metrics.prometheus-0.1.2
  5. c3f2d47 Merge pull request #2 from apache/SLING-12395 by Roy Teeuwen · 1 year, 1 month ago

Apache Sling

Build Status Test Status Coverage Sonarcloud Status Maven Central License

Apache Sling Commons Prometheus Metrics Exporter

This module is part of the Apache Sling project.

This bundle exposes the collected metrics under the /metrics path and provides the following features:

  • exports JVM metrics by default
  • supports multiple MetricRegistry instances

Deployment

The 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
    }
  ]