From b2b24d86e5c2dc940efc01ef587b2c9676765d3f Mon Sep 17 00:00:00 2001 From: Christopher Santana Date: Wed, 12 May 2021 11:02:35 +0200 Subject: [PATCH] Send nanoseconds i stedet for milliseconds for real. --- .../dittnav/common/metrics/influx/InfluxMetricsReporter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dittnav-common-influxdb/src/main/kotlin/no/nav/personbruker/dittnav/common/metrics/influx/InfluxMetricsReporter.kt b/dittnav-common-influxdb/src/main/kotlin/no/nav/personbruker/dittnav/common/metrics/influx/InfluxMetricsReporter.kt index e46683b..ecd2dfd 100644 --- a/dittnav-common-influxdb/src/main/kotlin/no/nav/personbruker/dittnav/common/metrics/influx/InfluxMetricsReporter.kt +++ b/dittnav-common-influxdb/src/main/kotlin/no/nav/personbruker/dittnav/common/metrics/influx/InfluxMetricsReporter.kt @@ -10,7 +10,7 @@ class InfluxMetricsReporter internal constructor(influxConfig: InfluxConfig, pri override suspend fun registerDataPoint(measurementName: String, fields: Map, tags: Map) { val point = Point.measurement(measurementName) - .time(System.currentTimeMillis() * 1000, TimeUnit.NANOSECONDS) + .time(System.currentTimeMillis() * 1000000, TimeUnit.NANOSECONDS) .tag(tags) .tag(DEFAULT_TAGS) .fields(fields)