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

Allow users to configure capture metrics expiration #1150

Merged
merged 2 commits into from
Dec 14, 2024

Conversation

blt
Copy link
Collaborator

@blt blt commented Dec 14, 2024

What does this PR do?

This commit adjusts the capture metrics expiration so that it is by
default Duration::MAX and is a configurable setting. In the future we
will bring this value down, but this preserves behavior between lading
releases while still allowing for new capability.

@blt blt marked this pull request as ready for review December 14, 2024 00:09
@blt blt requested a review from a team as a code owner December 14, 2024 00:09
@blt blt force-pushed the blt/ensure_cgroup_cpu_poller_works_with_multiple_cgroups branch 2 times, most recently from 48ad9c8 to 2d6266e Compare December 14, 2024 00:11
@blt blt force-pushed the blt/allow_users_to_configure_capture_metrics_expiration branch from bb2654c to fc18f28 Compare December 14, 2024 00:11
@@ -80,6 +86,9 @@ pub enum Telemetry {
path: PathBuf,
/// Additional labels to include in every metric
global_labels: FxHashMap<String, String>,
/// The time metrics that have not been written to will take to expire.
#[serde(default = "default_expiration")]
expiration: Duration,
Copy link
Contributor

Choose a reason for hiding this comment

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

metrics_expiration maybe?

@blt blt force-pushed the blt/ensure_cgroup_cpu_poller_works_with_multiple_cgroups branch from 2d6266e to 9c62ec8 Compare December 14, 2024 00:25
@blt blt force-pushed the blt/allow_users_to_configure_capture_metrics_expiration branch from fc18f28 to 205840e Compare December 14, 2024 00:26
@blt blt changed the base branch from blt/ensure_cgroup_cpu_poller_works_with_multiple_cgroups to graphite-base/1150 December 14, 2024 00:58
This commit adjusts the capture metrics expiration so that it is by
default Duration::MAX and is a configurable setting. In the future we
will bring this value down, but this preserves behavior between lading
releases while still allowing for new capability.

Signed-off-by: Brian L. Troutwine <[email protected]>
@blt blt force-pushed the blt/allow_users_to_configure_capture_metrics_expiration branch from 205840e to 5db5634 Compare December 14, 2024 00:59
@blt blt force-pushed the graphite-base/1150 branch from 9c62ec8 to 4191cbb Compare December 14, 2024 00:59
@blt blt changed the base branch from graphite-base/1150 to main December 14, 2024 00:59
Signed-off-by: Brian L. Troutwine <[email protected]>
@blt blt force-pushed the blt/allow_users_to_configure_capture_metrics_expiration branch from 5db5634 to 05d2855 Compare December 14, 2024 00:59
@blt blt merged commit 7dc01de into main Dec 14, 2024
18 checks passed
Copy link
Collaborator Author

blt commented Dec 14, 2024

Merge activity

  • Dec 13, 8:34 PM EST: A user merged this pull request with Graphite.

@blt blt deleted the blt/allow_users_to_configure_capture_metrics_expiration branch December 14, 2024 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants