Monitoring Dropwizard

Learn about Monitoring Dropwizard.

Support information

To make sure that the Dropwizard sensor is compatible with your current setup, check the following support information sections:

Supported versions and support policy

The sensor supports all versions of Dropwizard 4.0 and earlier.

The following table shows the latest supported version and support policy:

Technology Support policy Latest technology version Latest supported version
Dropwizard 45 days 5.0.1 5.0.1

For more information about the support policy, see Support strategy for sensors.

Configuring

For monitoring a subset of metrics by using a regular expression, configure the Dropwizard sensor by using the following configuration. You can also configure custom polling rate by using thepoll_rate configuration.

com.instana.plugin.dropwizard:
  poll_rate: 1 # Value is in seconds. Default value is 1 second.
  metricsRegex: '<OPTIONAL_REGEX_HERE>'
Note: If you want to use Dropwizard metrics as a general-purpose metrics library (outside of the Dropwizard framework), see Custom JVM metrics monitoring. Dropwizard instrumentation depends on the Dropwizard API, which is called regularly because of dynamic attachment. If the application code initializes Dropwizard before the attachment, metrics are not captured until the Dropwizard API is called again.

Configuring the polling rate

Note: Instana Dropwizard sensor 1.1.34 and later support configuring the polling rate to reduce data ingestion. This feature is supported on self-hosted Instana backend 311 and later.

You can configure how often Instana polls Dropwizard to collect data and metrics by using the poll_rate parameter in the agent configuration.yaml file as shown in the following example:

com.instana.plugin.dropwizard:
  poll_rate: 1 # values are in seconds. Default value is 1 second.

Tracked Configuration

  • Application name
  • Dropwizard version

Metrics

The sensor collects all core metric types, up to 3000 metrics in total:

  • Counters
  • Gauges
  • Histograms
  • Meters
  • Timers

Custom Metrics

Custom metrics are automatically ingested and displayed on the Dropwizard dashboard.

Note: If the Dropwizard metrics library is used without the framework, custom metrics will show up on the JVM dashboard.

Health Checks

Instana agent performs Dropwizard health checks every 20 seconds. Failing health checks are subsequently reported in the form of issues.

How failing health checks are presented within Instana