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

Loki: include the component in metrics.go log line #5379

Merged
merged 3 commits into from
Feb 15, 2022

Conversation

slim-bean
Copy link
Collaborator

What this PR does / why we need it:

When running the single binary or in SSD mode, it's essentially impossible to disambiguate metrics.go output from the querier executing a subquery and the accumulated result output by the frontend.

This PR introduces a component to the logger to easily tell which component is outputting the metrics.go stats

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated
  • Add an entry in the CHANGELOG.md about the changes.

Signed-off-by: Edward Welch <edward.welch@grafana.com>
@slim-bean slim-bean requested a review from a team as a code owner February 12, 2022 15:15
Signed-off-by: Edward Welch <edward.welch@grafana.com>
Signed-off-by: Edward Welch <edward.welch@grafana.com>
var (
logger = util_log.WithContext(ctx, util_log.Logger)
logger = util_log.WithContext(ctx, log)
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉 we should get rid off util_log.Logger altogether 🙂

@slim-bean slim-bean merged commit b3af2db into main Feb 15, 2022
@slim-bean slim-bean deleted the add-component-metrics-go branch February 15, 2022 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants