diff options
author | Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> | 2020-05-29 08:47:50 +0200 |
---|---|---|
committer | Kornel Janiak <kornel.janiak@nokia.com> | 2020-05-29 07:10:44 +0000 |
commit | a5c632dc6fd95e477f31883d8dab0b792d8a9e8a (patch) | |
tree | 06aaf66364fd396a32424b57c7df39ed7d9edcd7 /sources/hv-collector-main/src/main | |
parent | a9a353c76175082c1e9ed8d87c1ad61d8862a3e6 (diff) |
Add micrometer metrics
Add file descriptor metrics
Issue-ID: DCAEGEN2-1576
Change-Id: I7221b8d671e9ee8e022b6b7b6fd9b908f18b78be
Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com>
Diffstat (limited to 'sources/hv-collector-main/src/main')
-rw-r--r-- | sources/hv-collector-main/src/main/kotlin/org/onap/dcae/collectors/veshv/main/metrics/MicrometerMetrics.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/hv-collector-main/src/main/kotlin/org/onap/dcae/collectors/veshv/main/metrics/MicrometerMetrics.kt b/sources/hv-collector-main/src/main/kotlin/org/onap/dcae/collectors/veshv/main/metrics/MicrometerMetrics.kt index a949803f..7bccab20 100644 --- a/sources/hv-collector-main/src/main/kotlin/org/onap/dcae/collectors/veshv/main/metrics/MicrometerMetrics.kt +++ b/sources/hv-collector-main/src/main/kotlin/org/onap/dcae/collectors/veshv/main/metrics/MicrometerMetrics.kt @@ -26,6 +26,7 @@ import io.micrometer.core.instrument.binder.jvm.ClassLoaderMetrics import io.micrometer.core.instrument.binder.jvm.JvmGcMetrics import io.micrometer.core.instrument.binder.jvm.JvmMemoryMetrics import io.micrometer.core.instrument.binder.jvm.JvmThreadMetrics +import io.micrometer.core.instrument.binder.system.FileDescriptorMetrics import io.micrometer.core.instrument.binder.system.ProcessorMetrics import io.micrometer.prometheus.PrometheusConfig import io.micrometer.prometheus.PrometheusMeterRegistry @@ -99,6 +100,7 @@ class MicrometerMetrics internal constructor( JvmGcMetrics().bindTo(registry) ProcessorMetrics().bindTo(registry) JvmThreadMetrics().bindTo(registry) + FileDescriptorMetrics().bindTo(registry) } val metricsProvider = MicrometerPrometheusMetricsProvider(registry) |