elastic / elastic/opentelemetry-lib

Set aggregation temporality and monotonicity for all remapped metric

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
5
Forks
18
Avg merge
2d 12h
Merged PRs (30d)
7

Description

Currently, we don't set aggregation temporality and monotonicity for the remapped metrics ([ref](https://github.com/elastic/opentelemetry-lib/blob/3234f90c8fca7c6304f750b960b21c9437fefc91/remappers/hostmetrics/metric.go#L53-L55)). The default aggregation temporality is unspecified which must not be used ([ref](https://github.com/open-telemetry/opentelemetry-collector/blob/91f13c309d00eef5b997a2e810effb2a4ccd95d4/pdata/internal/data/protogen/metrics/v1/metrics.pb.go#L38-L39)) and the default monotonicity is `false`. If used with TSDS the `false` monotonicity will end up as a gauge instead of a counter ([ref](https://github.com/elastic/opentelemetry-dev/blob/main/docs/design-decisions/ingest/mapping.md#metrics-data-model)).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.