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

Change the default value of disable_high_cardinality_metrics to "true". #6255

Conversation

ptodev
Copy link
Contributor

@ptodev ptodev commented Jan 26, 2024

In #4769, I suggested that disable_high_cardinality_metrics default to false for a few reasons:

  • Agent Flow was already showing high cardinality metrics, and removing them would have been a breaking change.
  • OTel Collector enables these high cardinality metrics by default.

Unfortunately, it seems that those high cardinality metrics seem to really cause an understandable inconvenience for users. In the spirit of providing good defaults, it'd be best to exclude such metrics by default.

This will also simplify Static mode -> Flow converters, because high cardinality metrics are already disabled by default in Static mode.

I suspect that one day OTel Collector will have to also exclude these metrics by default. At the moment it's not a huge issue for the Collector, because you'd have to have a telemetry.useOtelForInternalMetrics feature gate enabled first.

cc @glindstedt

@ptodev ptodev requested a review from jcreixell January 26, 2024 17:24
@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Jan 26, 2024
@clayton-cornell
Copy link
Contributor

Doc change is small... looks Ok from my side.

@clayton-cornell
Copy link
Contributor

@jcreixell Is this one ready to merge?

@jcreixell
Copy link
Contributor

Looking good from my side

@clayton-cornell clayton-cornell merged commit 088b74d into main Jan 30, 2024
11 checks passed
@clayton-cornell clayton-cornell deleted the ptodev/change-default-for-disable_high_cardinality_metrics branch January 30, 2024 15:20
BarunKGP pushed a commit to BarunKGP/grafana-agent that referenced this pull request Feb 20, 2024
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Mar 1, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. type/docs Docs Squad label across all Grafana Labs repos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants