Skip to content

Commit eb4a617

Browse files
authored
Merge pull request #316 from IABTechLab/wzh-UID2-5498-update-metrics-name-standard
update metrics naming standards
2 parents 6b2fd93 + fb3ea24 commit eb4a617

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/uid2/core/Main.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,22 +201,22 @@ private static void setupMetrics(MicrometerMetricsOptions metricOptions) {
201201

202202
// retrieve image version (will unify when uid2-common is used)
203203
String version = Optional.ofNullable(System.getenv("IMAGE_VERSION")).orElse("unknown");
204-
Gauge.builder("app.status", () -> 1)
204+
Gauge.builder("app_status", () -> 1)
205205
.description("application version and status")
206206
.tags("version", version)
207207
.register(Metrics.globalRegistry);
208208
}
209209

210210
private static void createVertxMetrics() {
211-
Gauge.builder("uid2.vertx_service_instances", () -> ConfigStore.Global.getInteger(com.uid2.core.Const.Config.ServiceInstancesProp))
211+
Gauge.builder("uid2_vertx_service_instances", () -> ConfigStore.Global.getInteger(com.uid2.core.Const.Config.ServiceInstancesProp))
212212
.description("gauge for number of vertx service instances requested")
213213
.register(Metrics.globalRegistry);
214214

215-
Gauge.builder("uid2.vertx_worker_pool_size", () -> VERTX_WORKER_POOL_SIZE)
215+
Gauge.builder("uid2_vertx_worker_pool_size", () -> VERTX_WORKER_POOL_SIZE)
216216
.description("gauge for vertx worker pool size requested")
217217
.register(Metrics.globalRegistry);
218218

219-
Gauge.builder("uid2.vertx_event_loop_threads", () -> VertxOptions.DEFAULT_EVENT_LOOP_POOL_SIZE)
219+
Gauge.builder("uid2_vertx_event_loop_threads", () -> VertxOptions.DEFAULT_EVENT_LOOP_POOL_SIZE)
220220
.description("gauge for number of vertx event loop threads")
221221
.register(Metrics.globalRegistry);
222222
}

0 commit comments

Comments
 (0)