Skip to content

Commit

Permalink
Merge pull request #2 from unidev-platform/no-prefix
Browse files Browse the repository at this point in the history
Add constructor with no prefix
  • Loading branch information
denis256 authored Mar 18, 2023
2 parents 149188c + 615e10f commit 9c3635f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public class MetricService {

private final ConcurrentMap<String, Histogram> histograms = new ConcurrentHashMap<>();

public MetricService(int prometheusPort) throws IOException {
this("", prometheusPort, emptyMap());
}

public MetricService(String prefix, int prometheusPort) throws IOException {
this(prefix, prometheusPort, emptyMap());
}
Expand Down

0 comments on commit 9c3635f

Please sign in to comment.