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

receiver/prometheusreceiver: add option to fallback to collector starttime #36365

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ridwanmsharif
Copy link
Contributor

Description

This change adds an option to the metric adjuster to use an approximation of the collector starttime as a fallback for the start time of scraped cumulative metrics. This is useful when no start time is found and when the collector starts up alongside its targets (like in serverless environments or sidecar approaches).

Link to tracking issue

Fixes #36364

Testing

Added unit test for this config option

Documentation

Config option added to the README.

@ridwanmsharif ridwanmsharif requested review from dashpole and a team as code owners November 14, 2024 02:37
@github-actions github-actions bot added the receiver/prometheus Prometheus receiver label Nov 14, 2024
@ridwanmsharif ridwanmsharif force-pushed the ridwanmsharif/starttime-fallback branch 2 times, most recently from 4ac0c41 to 05b85e8 Compare November 14, 2024 02:50
…ttime

This change adds an option to the metric adjuster to use an
approximation of the collector starttime as a fallback for the start
time of scraped cumulative metrics. This is useful when no start time is
found and when the collector starts up alongside its targets (like in
serverless environments or sidecar approaches).

Signed-off-by: Ridwan Sharif <[email protected]>
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.

receiver/promettheusreceiver: add option to the metric adjuster to fallback to collector start time
2 participants