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

feat(otelcol): allow overriding debug metric level for all otelcol components #825

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

hainenber
Copy link
Contributor

@hainenber hainenber commented May 10, 2024

PR Description

  • Allow overriding debug metrics level for all otelcol.* components
  • Add and implement DebugMetrics as imethod for all otelcol.* Argument interface
  • Add doc ref to debug_metrics block for all otelcol.* components
  • Implement argument defaulter for DebugMetricsArg for missing OtelCol components

Which issue(s) this PR fixes

Closes #792

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@hainenber hainenber marked this pull request as ready for review May 12, 2024 03:38
@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label May 13, 2024
@clayton-cornell clayton-cornell requested a review from a team May 13, 2024 16:57
@rfratto rfratto added the backport-to-agent:no PR should NOT be backported to the agent repo. label May 14, 2024
Copy link
Contributor

@ptodev ptodev left a comment

Choose a reason for hiding this comment

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

Wow, such a big PR! 😅 Thank you very much! It looks good and I only left a few minor comments.

hainenber and others added 12 commits May 16, 2024 22:27
… except `auth.* due to cyclic imports

Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
…auth` components

Signed-off-by: hainenber <dotronghai96@gmail.com>
…level

Signed-off-by: hainenber <dotronghai96@gmail.com>
…ert`

Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
…of arg table

Signed-off-by: hainenber <dotronghai96@gmail.com>
… components

Signed-off-by: hainenber <dotronghai96@gmail.com>
…ation

Signed-off-by: hainenber <dotronghai96@gmail.com>
@hainenber hainenber force-pushed the allow-override-debug-metric-level-for-otelcol-components branch from 45e98d7 to f81140c Compare May 16, 2024 15:29
Copy link
Contributor

@ptodev ptodev left a comment

Choose a reason for hiding this comment

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

Thank you! I left a comment with what I believe is the only thing left to polish. I'd be happy to merge it afterwards :)


Hierarchy | Block | Description | Required
----------|------------|--------------------------------------|---------
debug_metrics | [debug_metrics][] | Configures the metrics that this component generates to monitor its state. | no
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
debug_metrics | [debug_metrics][] | Configures the metrics that this component generates to monitor its state. | no
debug_metrics | [debug_metrics][] | Configures the metrics that this component generates to monitor its state. | no

Would you mind doing a search and replace for this please? It's ok to put one space in every table, even if it's not consistent with the other rows in the table.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! :D

Signed-off-by: hainenber <dotronghai96@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-agent:no PR should NOT be backported to the agent repo. type/docs Docs Squad label across all Grafana Labs repos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Each otelcol component should be able to override its debug metrics level
4 participants