SavitarC commented on issue #14964: URL: https://github.com/apache/dubbo/issues/14964#issuecomment-3903334527
@ldcsaa @duzunwu512 what's your spring boot version? [Spring Boot 3.3 Release Notes](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.3-Release-Notes#prometheus-client-1x) **Since spring boot 3.3.x, spring boot includes** [support for the Prometheus Client 1.x](https://github.com/prometheus/client_java/releases/tag/v1.0.0) With `Spring Boot 3.3.13` (`micrometer-registry-prometheus 1.13.15` + `prometheus-metrics-model 1.2.1`), Dubbo’s raw metric name `dubbo.application.info.total` is first normalized by `io.prometheus.metrics.model.snapshots.PrometheusNaming#sanitizeMetricName`, which strips reserved suffixes such as `.info` and `.total`; then the Prometheus text writer (`PrometheusTextFormatWriter#writeCounter`) appends `_total` only for **Counter** metrics, so the final exposed name becomes `dubbo_application_total`. By contrast, `dubbo_provider_qps` is produced as a `GaugeMetricSample` in Dubbo (`AggregateMetricsCollector`) and registered as a **Gauge** via `AbstractMetricsReporter#registerGaugeSample`; gauges do not get `_total`, so it remains `dubbo_provider_qps`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
