Skip to content

[receiver/prometheusreceiver]: Allow to configure EnableCreatedTimest… #40380

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

Closed

Conversation

LukaszByczynski
Copy link
Contributor

Allow to configure EnableCreatedTimestampZeroIngestion in prometheus receiver

Description

This PR fixes a perfomance regression described here

Link to tracking issue

Fixes 40379

Testing

Configuration tests.

Documentation

not applicable

@LukaszByczynski LukaszByczynski requested review from dashpole, ArthurSens and a team as code owners May 29, 2025 20:17
@github-actions github-actions bot added the receiver/prometheus Prometheus receiver label May 29, 2025
@github-actions github-actions bot requested review from Aneurysm9 and krajorama May 29, 2025 20:18
@dashpole
Copy link
Contributor

cc @gracewehner @ArthurSens

@@ -34,6 +34,9 @@ type Config struct {
UseStartTimeMetric bool `mapstructure:"use_start_time_metric"`
StartTimeMetricRegex string `mapstructure:"start_time_metric_regex"`

// EnableCreatedTimestampZeroIngestion - enables TODO!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this comment still in progress?

@atoulme
Copy link
Contributor

atoulme commented Jun 4, 2025

Please rebase off latest main and add a changelog. Please see my comment regarding the code comment. Once you have addressed those items, please mark the PR as ready to review again.

@atoulme atoulme marked this pull request as draft June 4, 2025 17:46
@ArthurSens
Copy link
Member

Thanks @LukaszByczynski, but #40355 is implementing the same thing with a slightly different approach. Since that PR is almost merged, I'm closing this one. I hope that's ok!

@ArthurSens ArthurSens closed this Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
receiver/prometheus Prometheus receiver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timestamp creation has a performance impact on the Prometheus receiver in high-traffic environments.
5 participants