@@ -537,22 +537,22 @@ func TestMapHistogramRuntimeMetricHasMapping(t *testing.T) {
537
537
tr := newTranslator (t , zap .NewNop ())
538
538
consumer := & mockFullConsumer {}
539
539
540
- rmt , err := tr .MapMetrics (ctx , createTestHistogramMetric ("process.runtime.jvm.gc.duration " ), consumer )
540
+ rmt , err := tr .MapMetrics (ctx , createTestHistogramMetric ("process.runtime.jvm.threads.count " ), consumer )
541
541
if err != nil {
542
542
t .Fatal (err )
543
543
}
544
544
startTs := int (getProcessStartTime ()) + 1
545
545
assert .ElementsMatch (t ,
546
546
consumer .metrics ,
547
547
[]metric {
548
- newCountWithHost (newDims ("process.runtime.jvm.gc.duration .count" ), uint64 (seconds (startTs + 1 )), 100 , fallbackHostname ),
549
- newCountWithHost (newDims ("process.runtime.jvm.gc.duration .sum" ), uint64 (seconds (startTs + 1 )), 0 , fallbackHostname ),
550
- newGaugeWithHost (newDims ("process.runtime.jvm.gc.duration .min" ), uint64 (seconds (startTs + 1 )), - 100 , fallbackHostname ),
551
- newGaugeWithHost (newDims ("process.runtime.jvm.gc.duration .max" ), uint64 (seconds (startTs + 1 )), 100 , fallbackHostname ),
552
- newCountWithHost (newDims ("jvm.gc.parnew.time .count" ), uint64 (seconds (startTs + 1 )), 100 , fallbackHostname ),
553
- newCountWithHost (newDims ("jvm.gc.parnew.time .sum" ), uint64 (seconds (startTs + 1 )), 0 , fallbackHostname ),
554
- newGaugeWithHost (newDims ("jvm.gc.parnew.time .min" ), uint64 (seconds (startTs + 1 )), - 100 , fallbackHostname ),
555
- newGaugeWithHost (newDims ("jvm.gc.parnew.time .max" ), uint64 (seconds (startTs + 1 )), 100 , fallbackHostname ),
548
+ newCountWithHost (newDims ("process.runtime.jvm.threads.count .count" ), uint64 (seconds (startTs + 1 )), 100 , fallbackHostname ),
549
+ newCountWithHost (newDims ("process.runtime.jvm.threads.count .sum" ), uint64 (seconds (startTs + 1 )), 0 , fallbackHostname ),
550
+ newGaugeWithHost (newDims ("process.runtime.jvm.threads.count .min" ), uint64 (seconds (startTs + 1 )), - 100 , fallbackHostname ),
551
+ newGaugeWithHost (newDims ("process.runtime.jvm.threads.count .max" ), uint64 (seconds (startTs + 1 )), 100 , fallbackHostname ),
552
+ newCountWithHost (newDims ("jvm.thread_count .count" ), uint64 (seconds (startTs + 1 )), 100 , fallbackHostname ),
553
+ newCountWithHost (newDims ("jvm.thread_count .sum" ), uint64 (seconds (startTs + 1 )), 0 , fallbackHostname ),
554
+ newGaugeWithHost (newDims ("jvm.thread_count .min" ), uint64 (seconds (startTs + 1 )), - 100 , fallbackHostname ),
555
+ newGaugeWithHost (newDims ("jvm.thread_count .max" ), uint64 (seconds (startTs + 1 )), 100 , fallbackHostname ),
556
556
},
557
557
)
558
558
assert .Equal (t , []string {"jvm" }, rmt .Languages )
0 commit comments