-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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: Add metric to expose Applications conditions #19438
Conversation
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
be6bb43
to
7489d5d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #19438 +/- ##
==========================================
+ Coverage 55.83% 55.90% +0.07%
==========================================
Files 320 320
Lines 44041 44061 +20
==========================================
+ Hits 24589 24634 +45
+ Misses 16896 16871 -25
Partials 2556 2556 ☔ View full report in Codecov by Sentry. |
@foyerunix I think the current implementation does not take into account that a condition can appear more than just one time. For example an application can have multiple excluded resources and those would all be appended to the application status Line 509 in 3feab7a
You should instead count the appearances of each condition and increase the gauge value accordingly. Another concern I have about this is scale. An application can potentially have 9 different condition types and more can be added in the future. This change would generate a gauge per each existing status. Perhaps we should add a parameter with a whitelist of statuses that we want to collect, similar to how it's done with application labels. |
45bdae4
to
d1b7b1f
Compare
Closes argoproj#13096 Implement a new metric exposing Applications conditions. This is particularly useful for SRE teams to be able to setup alerts on issues that aren't displayed via "health_status" and "sync_status" in the metric "argocd_app_info". Signed-off-by: Foyer Unix <foyerunix@foyer.lu>
d1b7b1f
to
0beb22d
Compare
Hello @ilia-medvedev-codefresh, I took into account your propositions and updated the pull request. Best Regards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
Hello,
Closes #13096
Implement a new metric exposing Applications conditions. This is particularly useful for SRE teams to be able to setup alerts on issues that aren't displayed via "health_status" and "sync_status" in the metric "argocd_app_info".
Our use case is similar to #13096. We want to ensure flawless reinstallation of our Kubernetes clusters. To do this we need to take care to not have some resources that for some reason aren't managed by ArgoCD but that end up being necessary for our workloads to run properly.
Best Regards.