Component(s)
exporter/clickhouse
What happened?
Description
The otel.otel_metrics_histogram table has no AggTemp column, so it is impossible to tell the difference between Delta and Cumulative metrics stored in this table.
Steps to Reproduce
Expected Result
AggTemp in the otel.otel_metrics_sum table is stored from the metric.AggregationTemporality(). The same should be the case for otel.otel_metrics_histogram
Actual Result
No AggTemp column in otel.otel_metrics_histogram.
Collector version
v0.102.0
Environment information
No environment information necessary. This affects all environments.
OpenTelemetry Collector configuration
Any implementation of the clickhouseexporter would have this bug.
Log output
Additional context
Current otel.otel_metrics_histogram schema: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/clickhouseexporter/internal/histogram_metrics.go#L21-L60
Current otel.otel_metrics_sum schema: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/clickhouseexporter/internal/sum_metrics.go#L21-L57
I am planning on opening a PR to fix this as well.
Component(s)
exporter/clickhouse
What happened?
Description
The
otel.otel_metrics_histogramtable has noAggTempcolumn, so it is impossible to tell the difference betweenDeltaandCumulativemetrics stored in this table.Steps to Reproduce
Expected Result
AggTempin theotel.otel_metrics_sumtable is stored from themetric.AggregationTemporality(). The same should be the case forotel.otel_metrics_histogramActual Result
No
AggTempcolumn inotel.otel_metrics_histogram.Collector version
v0.102.0
Environment information
No environment information necessary. This affects all environments.
OpenTelemetry Collector configuration
Any implementation of the clickhouseexporter would have this bug.Log output
Additional context
Current
otel.otel_metrics_histogramschema: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/clickhouseexporter/internal/histogram_metrics.go#L21-L60Current
otel.otel_metrics_sumschema: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/clickhouseexporter/internal/sum_metrics.go#L21-L57I am planning on opening a PR to fix this as well.