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

Fix bug with loki.process metrics stage during config reload #1292

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

ptodev
Copy link
Contributor

@ptodev ptodev commented Jul 15, 2024

PR Description

This bugfix is ported from a PR which was already merged to Grafana Agent. The behaviour in Alloy is different from Agent Static mode. Static mode would always log an error during config reload. Alloy doesn't log any errors. Also, reloading the config if it hasn't changed works ok and the metrics stage keeps working fine. However, if the metrics stage is changed to remove certain metrics, those metrics will still be present even after the next config reload. Their values will remain frozen in time. If they are added to the config later, then they won't resume working - they'll remain frozen.

Which issue(s) this PR fixes

Related to an issue in the Agent repo.

PR Checklist

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

@clayton-cornell
Copy link
Contributor

Doc changes look OK

Copy link
Contributor

@thampiotr thampiotr left a comment

Choose a reason for hiding this comment

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

Looks good, other than the tests need fixing

@ptodev ptodev force-pushed the ptodev/fix-promtail-reload branch from 0ebfbb2 to edf3056 Compare July 16, 2024 09:40
@ptodev ptodev merged commit 0d385e5 into main Jul 16, 2024
18 checks passed
@ptodev ptodev deleted the ptodev/fix-promtail-reload branch July 16, 2024 10:01
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants