Skip to content

Commit

Permalink
Add ability to filter metrics in DropwizardExports
Browse files Browse the repository at this point in the history
Add comments

Fix prometheus#573

Signed-off-by: Vasily Vasilkov <[email protected]>
  • Loading branch information
vgv committed Oct 7, 2020
1 parent 5980a17 commit 210dc71
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public DropwizardExports(MetricRegistry registry) {
* Creates a new DropwizardExports with a {@link DefaultSampleBuilder} and custom MetricFilter
*
* @param registry a metric registry to export in prometheus.
* @param metricFilter a custom metric filter
*/
public DropwizardExports(MetricRegistry registry, MetricFilter metricFilter) {
this.registry = registry;
Expand All @@ -57,6 +58,7 @@ public DropwizardExports(MetricRegistry registry, SampleBuilder sampleBuilder) {

/**
* @param registry a metric registry to export in prometheus.
* @param metricFilter a custom metric filter
* @param sampleBuilder sampleBuilder to use to create prometheus samples.
*/
public DropwizardExports(MetricRegistry registry, MetricFilter metricFilter, SampleBuilder sampleBuilder) {
Expand Down

0 comments on commit 210dc71

Please sign in to comment.