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

agent: allow configuration of in-memory telemetry sink. #20166

Merged
merged 5 commits into from
Mar 25, 2024

Conversation

jrasell
Copy link
Member

@jrasell jrasell commented Mar 20, 2024

This change adds configuration options for setting the in-memory telemetry sink collection and retention durations. This sink backs the metrics JSON API and previously had hard-coded default values.

The new options are particularly useful when running development or debug environments, where metrics collection is desired at a fast and granular rate. This is particularly useful for gauges; currently the last value written in the interval is returned from the API. In situations with spiking/flapping data, this could mean we miss information.

This change adds configuration options for setting the in-memory
telemetry sink collection and retention durations. This sink backs
the metrics JSON API and previously had hard-coded default values.

The new options are particularly useful when running development or
debug environments, where metrics collection is desired at a fast
and granular rate.
@jrasell jrasell self-assigned this Mar 20, 2024
@jrasell jrasell added the backport/1.7.x backport to 1.7.x release line label Mar 20, 2024
@jrasell jrasell marked this pull request as ready for review March 20, 2024 11:20
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

We'll want docs and a changelog entry, but otherwise LGTM!

command/agent/config_parse_test.go Show resolved Hide resolved
command/agent/command.go Outdated Show resolved Hide resolved
command/agent/config.go Outdated Show resolved Hide resolved
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM!

@jrasell jrasell merged commit facc3e8 into main Mar 25, 2024
21 checks passed
@jrasell jrasell deleted the f-jrasell-config-telemetry-in-memory branch March 25, 2024 15:00
philrenaud pushed a commit that referenced this pull request Apr 18, 2024
This change adds configuration options for setting the in-memory
telemetry sink collection and retention durations. This sink backs
the metrics JSON API and previously had hard-coded default values.

The new options are particularly useful when running development or
debug environments, where metrics collection is desired at a fast
and granular rate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.7.x backport to 1.7.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants