Add additional context to HelmRelease events #4718
Replies: 4 comments 23 replies
-
I don't have answers on this yet, but I'm working towards getting some at the moment. I had set up the fluxcd cluster check integration a few days ago, but we were still running v2.1.x and then realized upon updating to v2.2.x that the gotk_reconcile_condition that I was planning on using for monitoring the HelmRelease object was deprecated and removed. So events might be one way I go at this. For the moment, I'm probably going to attempt to get metrics working again with One reason I'm leaning in that direction as opposed to events currently is that on periodic refresh, I've noticed that I'd get alerted more heavily for flakey communication with HelmRepositories, GitRepositories, etc. That's probably just a consequence of the internet being a series of tubes, but I can probably do more to smooth that long-term using metrics based alerting. But overall at this point, I just wanted to say that I hear you on the desire for more observability into the HelmRelease lifecycle. I'm going to work on it and report back what I find works for me. |
Beta Was this translation helpful? Give feedback.
-
[proposal] Diff reporting for user-defined valuesWhen helm-controller detects a change in a The diff output must be filtered by The resulting diff report would be appended to the event message issued for Helm upgrades. For example, when image automation patches an image the output would be:
This feature would be opt-in and enabled with a feature gate e.g. Important This proposal is for reporting the diff between user-defined values specified in the HelmRelease object. Changes in the default values embedded in the chart are out of scope. Drawbacks
|
Beta Was this translation helpful? Give feedback.
-
In Flux v2.3, the chart app version was added to the |
Beta Was this translation helpful? Give feedback.
-
Following this discussion. We would love to have more info about the source trigger of the reconciliation. For example a git sha when We have many release with Flux and sometimes it's hard to know the origin. Before Flux we were tracking who trigger the helm release command, and we had custom reporting tool to inform about the progress of deployment. This is sadly something we are missing with Flux. Meanwhile, thanks a lot for the annotations @stefanprodan . 🙌 |
Beta Was this translation helpful? Give feedback.
-
Today the events for HelmReleases do not really contain sufficient information for our monitoring needs as the event only contains the chart version, this has come up in a number of issues over the past few years and users have asked for a way to expand the metadata that these events contain.
fluxcd/helm-controller#256
fluxcd/helm-controller#412
fluxcd/helm-controller#798
And this issue has been tackled by a number of abandoned PRs.
fluxcd/helm-controller#514
fluxcd/helm-controller#682
In our case even if we were to push
appVersion
into the event due to the way we use a shared chart for multiple application releases we really need the value ofimage.tag
in the alert to make it useful for our needs.For tools like DataDog we are able to configure them to extract release values as tags and add them to events, for example the following configuration for the Helm check will add the
image.tag
release value as a tag calledhelm_image_tag
on events.Below are a few initial ideas I had on how to solve this problem based on our needs and previous attempts to solve this.
Would love to hear additional thoughts/ideas from maintainers so that I can work on a PR to get this issue closed off and improve the HelmRelease alert story.
Beta Was this translation helpful? Give feedback.
All reactions