Skip to content

Commit

Permalink
Bump io.micrometer:micrometer-registry-prometheus from 1.12.6 to 1.14…
Browse files Browse the repository at this point in the history
….1 (#601)

* Bump io.micrometer:micrometer-registry-prometheus from 1.12.6 to 1.14.1

Bumps [io.micrometer:micrometer-registry-prometheus](https://github.com/micrometer-metrics/micrometer) from 1.12.6 to 1.14.1.
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- [Commits](micrometer-metrics/micrometer@v1.12.6...v1.14.1)

---
updated-dependencies:
- dependency-name: io.micrometer:micrometer-registry-prometheus
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix imports

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tanja Krasnomovets <[email protected]>
  • Loading branch information
dependabot[bot] and Vitenok authored Nov 27, 2024
1 parent 7043ccd commit a9983ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version = "1.0"
val kluentVersion = "1.73"
val ktorVersion = "2.3.12"
val prometheusVersion = "0.16.0"
val micrometerVersion = "1.12.6"
val micrometerVersion = "1.14.1"
val kotestVersion = "5.9.1"
val kotestExtensionsVersion = "2.0.0"
val h2Version = "2.3.232"
Expand Down
8 changes: 4 additions & 4 deletions src/main/kotlin/no/nav/syfo/metrics/AppMetrics.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import io.ktor.server.routing.Routing
import io.ktor.server.routing.get
import io.micrometer.core.instrument.Clock
import io.micrometer.core.instrument.Counter
import io.micrometer.prometheus.PrometheusConfig
import io.micrometer.prometheus.PrometheusMeterRegistry
import io.prometheus.client.CollectorRegistry
import io.micrometer.prometheusmetrics.PrometheusConfig
import io.micrometer.prometheusmetrics.PrometheusMeterRegistry
import io.prometheus.client.hotspot.DefaultExports
import io.prometheus.metrics.model.registry.PrometheusRegistry

const val METRICS_NS = "esyfovarsel"

Expand All @@ -20,7 +20,7 @@ const val CALL_PDL_SUCCESS = "${METRICS_NS}_call_pdl_success_count"
const val CALL_PDL_FAIL = "${METRICS_NS}_call_pdl_fail_count"

val METRICS_REGISTRY =
PrometheusMeterRegistry(PrometheusConfig.DEFAULT, CollectorRegistry.defaultRegistry, Clock.SYSTEM)
PrometheusMeterRegistry(PrometheusConfig.DEFAULT, PrometheusRegistry.defaultRegistry, Clock.SYSTEM)

val COUNT_MER_VEILEDNING_NOTICE_SENT: Counter = Counter
.builder(MER_VEILEDNING_NOTICE_SENT)
Expand Down

0 comments on commit a9983ab

Please sign in to comment.