elastic / elastic/opentelemetry-lib
Set aggregation temporality and monotonicity for all remapped metric
- 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.