-
Notifications
You must be signed in to change notification settings - Fork 77
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
🐛 [bug] - PetBattleMongoDBDiskUsage alert is not reported #182
Comments
@rmarting - i tried this out in my cluster and it seems ok. i dropped the alert to 40% to check metrics being reported ok and the firing rule any chance you could debug a little further ? see what may be going on in your cluster - see if metrics reporting first ? |
also .. i have these rules in my project after running thru all exercises (the one above is part of "pb-api-alerts")
|
During the enablement in Frankfurt my teammates encountered exactly the same issue, which was also confirmed by @rmarting. |
Reproduced in a new cluster following the next steps:
Workaround: Changing the Could you double-check my findings? Maybe we need to extend the instructions to align the helm chart version and app to deploy successfully from ArgoCD, or maybe we need to review the Tekton pipeline about the right version from the right file ( |
Ahh ! that makes sense @rmarting .. i see what is going on now. OK, the section in 4.2.4 is wrong - i have fixed this now. PTAL at this commit: The history here is this:
I think there is still a question in my mind as to why argocd does not sync the new chart (same version) .. we may find that this is just the difference in argo between a sync, a refresh and a hard refresh. i.e. hitting the sync button may have solved this as the chart of the same version is timestamped in nexus .. so you will always get the updated chart as we push it there in the pipeline. need to test this and take a look at where it is getting "stale" |
Great @eformat !!! Everything makes sense now! Reviewing the new content I am wondering if the On the other hand, Why does ArgoCD not sync the new chart? It could be something related to the different sync options. However, IMHO if we want to deploy a new chart for an application, it is better to use a new Helm Chart version and not to override in Nexus. I don't like at all the idea to override artifacts versions in Nexus (only for SNAPSHOTS), as you can't control who downloaded or not. As Helm Chart hasn't snapshot versions, the best approach is to trigger a new pipeline with a new version and then deploy it from ArgoCD. (my two cents). |
If the version of the chart does not change - argocd has it cached, doing a refresh on argocd clears the cache hence it updates the k8s resources after a refresh. This is why we always bump version on main (even if its just a minor). Perhaps an automated way to ensure this doesn't happen would be to append the git sha to the version (if help supports that). |
@eformat - if you rememeber, we encountered this issue when writing the book. We were changing values files bt not updating the version and argocd was not seeing the change. I think the way around this we implememented was changing the labels on the resources to contain a value from teh values file or something like that. |
📝 Description
Following the instructions of the Creating Alerts exercise, the
PetBattleMongoDBDiskUsage
alert is not reported.The status of the PVC, after execute the command `` is:
But the alert is not reported.
Also if we forced to consume all the space, the alert is also not reported:
🚶 Steps to reproduce
Followed the instructions of this exercise.
🧙♀️ Suggested solution
... if applicable
The text was updated successfully, but these errors were encountered: