Ability to customize metric names and tags

Description

Since we can switch to a framework other than DropWizard for metrics. This obsolesces Metrics, which has a hard dependency to the DropWizard APIs.

added SessionBuilder.withMetricRegistry, which provides a workaround: the user can now inject their own registry, and retrieve the metrics from it once the session has initialized. However, this forces them to build the metric paths manually, which is kind of annoying.

We could expose that functionality as a standalone utility. Tentative API:

The implementation is essentially what buildFullName does in the metric updater classes. It's the same in all our built-in implementations.

Environment

None

Pull Requests

None

Activity

Show:
Alex Dutra
March 16, 2021, 9:36 PM

Expanding scope to also support metric tags, since Micrometer and MicroProfile both support that. I think this will generate metric names that look way more familiar to users of these libraries.

Alex Dutra
January 25, 2021, 1:31 PM

This will also help for the Quarkus extension that requires metric prefixes to start with cassandra..

Fixed

Assignee

Alex Dutra

Reporter

Olivier Michallat

Fix versions