summaryrefslogtreecommitdiff
path: root/sw-server/src/main/kotlin/org/luxons
diff options
context:
space:
mode:
authorTitouan BION <titouan.bion@gmail.com>2021-02-13 23:20:42 +0100
committerJoffrey Bion <joffrey.bion@gmail.com>2021-02-13 23:40:10 +0100
commitf6d9106d87192f21321241e90e8635bfd90ee6fd (patch)
treebee72c051350cc622e7a4e2674ed9e63f91354db /sw-server/src/main/kotlin/org/luxons
parentAdd metrics labels for default Spring Boot grafana board (diff)
downloadseven-wonders-f6d9106d87192f21321241e90e8635bfd90ee6fd.tar.gz
seven-wonders-f6d9106d87192f21321241e90e8635bfd90ee6fd.tar.bz2
seven-wonders-f6d9106d87192f21321241e90e8635bfd90ee6fd.zip
Rename 'application' label of Prometheus exported metrics to match a more Kubernetes-like name convention
Diffstat (limited to 'sw-server/src/main/kotlin/org/luxons')
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/SevenWonders.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/SevenWonders.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/SevenWonders.kt
index f9167a1a..923ebcb5 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/SevenWonders.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/SevenWonders.kt
@@ -20,7 +20,7 @@ class SevenWonders {
@Bean
fun metricsCommonTags(): MeterRegistryCustomizer<MeterRegistry>? = MeterRegistryCustomizer { registry ->
registry.config()
- .commonTags("application", "SevenWonders")
+ .commonTags("application", "seven-wonders")
.commonTags("instance", InetAddress.getLocalHost().hostAddress)
}
}
bgstack15