0

I have implemented a web service using Dropwizard. It runs on Kubernetes and we use Prometheus for logging there. The web service exports Dropwizard Metrics using the Java client implementation in DropwizardExports.java.

This is the relevant code:

private void registerMetrics(Environment environment) {
    CollectorRegistry collectorRegistry = CollectorRegistry.defaultRegistry;
    new DropwizardExports(environment.metrics()).register(collectorRegistry);

    environment.admin().addServlet("metrics", new MetricsServlet(collectorRegistry))
            .addMapping("/metrics");
}

I cannot find a reference documenting which metrics are exported exactly and their specific purpose. Even though I can look at the output and figure out most of it, there does not seem to be a comprehensive documentation. The code is not simple enough (for me) to look it up either.

Am I missing something? I should mention that I am quite new to the Prometheus ecosystem. A pointer to a standard/default that is implemented by DropwizardExports might also help.

Carsten
  • 1,912
  • 1
  • 28
  • 55

1 Answers1

0

DropwizardExports exposes whatever metrics are using that Dropwizard metrics instrumentation environment, so you should look at the Dropwizard documentation to see what they mean.

brian-brazil
  • 31,678
  • 6
  • 93
  • 86