Registry / observability / simpleclient-dropwizard

simpleclient-dropwizard

JSON →
library0.16.0javamavenunverified

Collects metrics from Dropwizard's metrics library and exposes them for Prometheus scraping.

<dependency> <groupId>io.prometheus</groupId> <artifactId>simpleclient_dropwizard</artifactId> <version>0.16.0</version> </dependency>
INSTALL
IMPORT
SIG · SIMPLECLIENT-DROPW
S
simpleclient-dropwizard
observabilityjavav0.16.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DropwizardExports
io.prometheus.client.dropwizard.DropwizardExports

Registers Dropwizard metrics with Prometheus client.

import io.prometheus.client.dropwizard.DropwizardExports; import com.codahale.metrics.MetricRegistry; public class Example { public static void main(String[] args) { MetricRegistry registry = new MetricRegistry(); DropwizardExports exports = new DropwizardExports(registry); exports.register(); System.out.println("Dropwizard metrics registered for Prometheus."); } }
Debug
Known issues
gotchaDropwizardExports requires a MetricRegistry instance; ensure it is not null.
fix
Pass a valid MetricRegistry to the constructor.
affects: all
Upgrade
Version history
0.16.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
2
Resources
simpleclient-dropwizard — mvn dependency:get simpleclient-dropwizard · libregistry