Skip to content

Commit

Permalink
sch-UID2-4560-adding-gauge-for-number-of-request-processing-threads r…
Browse files Browse the repository at this point in the history
…enamed gauge
  • Loading branch information
sophia-chen-ttd committed Dec 19, 2024
1 parent 38449e1 commit 149baaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/uid2/core/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ private static void setupMetrics(MicrometerMetricsOptions metricOptions) {
}

private static void createVertxInstancesMetric() {
Gauge.builder("uid2.core.vertx_service_instances", () -> vertxServiceInstances)
Gauge.builder("uid2.vertx_service_instances", () -> vertxServiceInstances)
.description("gauge for number of vertx service instances requested")
.register(Metrics.globalRegistry);
}

private static void createVertxEventLoopsMetric() {
Gauge.builder("uid2.core.vertx_event_loop_threads", () -> VertxOptions.DEFAULT_EVENT_LOOP_POOL_SIZE)
Gauge.builder("uid2.vertx_event_loop_threads", () -> VertxOptions.DEFAULT_EVENT_LOOP_POOL_SIZE)
.description("gauge for number of vertx event loop threads")
.register(Metrics.globalRegistry);
}
Expand Down

0 comments on commit 149baaa

Please sign in to comment.