Skip to content

Commit

Permalink
Merge pull request #1219 from IABTechLab/sch-UID2-4560-adding-gauge-f…
Browse files Browse the repository at this point in the history
…or-number-of-request-processing-threads

sch-UID2-4560 renamed gauge for vertx service instances and event loops
  • Loading branch information
sophia-chen-ttd authored Dec 19, 2024
2 parents 4f094c8 + 1c254fe commit c2df79a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/uid2/operator/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -470,13 +470,13 @@ public DistributionStatisticConfig configure(Meter.Id id, DistributionStatisticC
}

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

private void createVertxEventLoopsMetric() {
Gauge.builder("uid2.operator.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 c2df79a

Please sign in to comment.