Skip to content

Commit

Permalink
fix: common prom tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sauljabin committed Feb 6, 2024
1 parent 01c03dd commit a21be3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class PrometheusExporterBootstrap {
public PrometheusExporterBootstrap(
final int webPort, final String webPath, final boolean metricsFilterEnabled, final String applicationId) {
prometheusRegistry = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT);
prometheusRegistry.config().commonTags("application", "canary", "application_id", applicationId);
prometheusRegistry.config().commonTags("application_id", applicationId);
if (metricsFilterEnabled) {
prometheusRegistry.config().meterFilter(new PrometheusMetricFilter());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class PrometheusMetricExporter implements Closeable {
public PrometheusMetricExporter(LHServerConfig config) {
this.config = config;
this.prometheusRegistry = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT);
this.prometheusRegistry.config().commonTags("application", "server", "application_id", config.getLHClusterId());
this.prometheusRegistry.config().commonTags("application_id", config.getLHClusterId());

new ServerMetricFilter(prometheusRegistry, ServerFilterRules.RULES).initialize();
}
Expand Down

0 comments on commit a21be3c

Please sign in to comment.