New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure exporting _created metrics #24915
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
still relevant |
Started to looking into fixing this, given plans within prometheus to improve counter behaviour using this metrics. |
…created metric (#29503) As disucssed on cncf [slack](https://cloud-native.slack.com/archives/C01LSCJBXDZ/p1700938910822949) fixing the issue with _created metrics where prometheus backend refuses it due to "too old" due to not setting a timestamp for the sample created. The timestamp used is the timestamp for the original sample the correspondent _created metrics is generated for. **Link to tracking Issue:** #24915 Tested locally with prometheus compatible backend. --------- Co-authored-by: Anthony Mirabella <a9@aneurysm9.com> Co-authored-by: David Ashpole <dashpole@google.com>
Should be fixed with #29503 merged. |
…created metric (open-telemetry#29503) As disucssed on cncf [slack](https://cloud-native.slack.com/archives/C01LSCJBXDZ/p1700938910822949) fixing the issue with _created metrics where prometheus backend refuses it due to "too old" due to not setting a timestamp for the sample created. The timestamp used is the timestamp for the original sample the correspondent _created metrics is generated for. **Link to tracking Issue:** open-telemetry#24915 Tested locally with prometheus compatible backend. --------- Co-authored-by: Anthony Mirabella <a9@aneurysm9.com> Co-authored-by: David Ashpole <dashpole@google.com>
Hi, @bryan-aguilar could you please close this one. It has been fixed in the last release. |
Component(s)
exporter/prometheusremotewrite
What happened?
Description
When attempting to enable the
export_created_metric
feature introduced in #17417 the metrics are generated however they're being rejected due to missing a timestamp.Steps to Reproduce
Enabled the
export_created_metric
on the prometheusremotewrite exporter and attempt to export to a Cortex instance.Expected Result
New metric
my_metric_created
is visible in Cortex.Actual Result
Metric is rejected with the following error:
HTTP code 400 (timestamp too old: 0 metric: \"my_metric_created\""
Collector version
v0.82.0
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
My assumption is this is related to the Sample being created without a timestamp: https://github.com/kovrus/opentelemetry-collector-contrib/blob/main/pkg/translator/prometheusremotewrite/helper.go#L496-L516
However it's not clear to me what timestamp it should use. Current time?
The text was updated successfully, but these errors were encountered: