Closed
Description
Is your feature request related to a problem? Please describe.
More TSDB head metrics have been added in upstream Prometheus https://github.com/prometheus/prometheus/blob/main/tsdb/head.go#L320.
We should consider add them to existing ingester metrics https://github.com/cortexproject/cortex/blob/master/pkg/ingester/metrics.go#L237.
Some metrics are very useful to have such as prometheus_tsdb_head_out_of_order_samples_appended_total
and prometheus_tsdb_out_of_order_samples_total
to help troubleshoot samples OOO issue.
Describe the solution you'd like
Update https://github.com/cortexproject/cortex/blob/master/pkg/ingester/metrics.go#L237 code to add missing ingester metrics.