tally icon indicating copy to clipboard operation
tally copied to clipboard

Add minimum configurable default tags to PrometheusReporter

Open SokolAndrey opened this issue 4 years ago • 0 comments

M3Reporter implementation of StatsReporter allows to set some default tags, which will be added to all reported metrics:

        StatsReporter reporter = new M3Reporter.Builder(new InetSocketAddress("localhost", 9052))
                                     .env("testing")
                                     .service("service_name")
                                     .includeHost(false)
                                     .commonTags(ImmutableMap.of("tag1", "42"))
                                     .build();

There is no such functionality in PrometheusReporter. We should add at minimum ability to set env, service and defaultTags

SokolAndrey avatar Feb 04 '21 14:02 SokolAndrey