Skip to content

Commit

Permalink
feat: add metrics tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliothmoon committed Jan 19, 2025
1 parent 109eeca commit c86c340
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/metrics/handler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var registry = PrometheusMeterRegistry(PrometheusConfig.DEFAULT)


fun initMetrics() {
registry.config().commonTags("application", "mirrorc-cdk-backend")
JvmThreadMetrics().bindTo(registry)
JvmGcMetrics().bindTo(registry)
JvmMemoryMetrics().bindTo(registry)
Expand Down

0 comments on commit c86c340

Please sign in to comment.