Closed webcane closed 1 year ago
see https://ordina-jworks.github.io/monitoring/2020/11/16/monitoring-spring-prometheus-grafana.html https://docs.spring.io/spring-boot/docs/2.1.9.RELEASE/reference/html/production-ready-metrics.html https://docs.spring.io/spring-boot/docs/2.1.9.RELEASE/reference/html/production-ready-metrics.html#production-ready-metrics-export-prometheus https://stackoverflow.com/questions/51552889/how-to-define-additional-or-custom-tags-for-default-spring-boot-2-metrics
add App name into metrics
mark application metrics using the application name tag over env variable
MANAGEMENT_METRICS_TAGS_APPLICATION=readme-app MANAGEMENT_METRICS_TAGS_REGION=us-east-1 MANAGEMENT_METRICS_TAGS_STACK=prod
see https://ordina-jworks.github.io/monitoring/2020/11/16/monitoring-spring-prometheus-grafana.html https://docs.spring.io/spring-boot/docs/2.1.9.RELEASE/reference/html/production-ready-metrics.html https://docs.spring.io/spring-boot/docs/2.1.9.RELEASE/reference/html/production-ready-metrics.html#production-ready-metrics-export-prometheus https://stackoverflow.com/questions/51552889/how-to-define-additional-or-custom-tags-for-default-spring-boot-2-metrics
add App name into metrics