Skip to content
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

Ability to disable timestamps at the end of a metric #5485

Open
ezhdn opened this issue Mar 28, 2024 · 1 comment
Open

Ability to disable timestamps at the end of a metric #5485

ezhdn opened this issue Mar 28, 2024 · 1 comment
Labels
pkg:OpenTelemetry.Exporter.Prometheus.AspNetCore Issues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package question Further information is requested

Comments

@ezhdn
Copy link

ezhdn commented Mar 28, 2024

I saw that when using exporter for Prometheus at the end of the metric exists timestampt, as example

# HELP process_memory_usage_bytes The amount of physical memory allocated for this process.
process_memory_usage_bytes 262610944 1711610959090

Is there any possibility to disable output of this timestamp?

As i inderstood there this related to - https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#tracking-when-metrics-last-changed

@ezhdn ezhdn added the question Further information is requested label Mar 28, 2024
@reyang reyang added the pkg:OpenTelemetry.Exporter.Prometheus.AspNetCore Issues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package label Apr 3, 2024
@ledouxpl
Copy link

ledouxpl commented May 7, 2024

Just chiming in to say that I would like this option as well.

In fact, my prometheus instance is continually logging "Error on ingesting samples that are too old or are too far into the future" when scraping metrics. It appears the open telemetry Prometheus Exporter is writing timestamps expressed in milliseconds where Prometheus expects them to be in seconds.

Don't know if this is intentional or not. If it is, it would also be nice to be able to configure the timestamp's unit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:OpenTelemetry.Exporter.Prometheus.AspNetCore Issues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants