Skip to content

Conversation

@JoaoBraveCoding
Copy link
Collaborator

@JoaoBraveCoding JoaoBraveCoding commented Nov 25, 2024

HealthChecker was introduced in open-cluster-management-io/addon-framework#289 and it allow us to define a list of ProbeFields, as before, but it also allows us to define HealthChecker. HealthChecker has the ability to go through all the resultFields and decide which resources are mandatory and should trigger
unheathly probes and which resources are optional.

UI Before

Screenshot 2024-11-25 at 11 54 30 AM

UI After

Screenshot 2024-11-25 at 11 54 54 AM

healthChecker was introduced in open-cluster-management-io/addon-framework#289
and it allow us to define a list of ProbeFields as before but it also
allows us to define HealthChecker. HealthChecker has the ability to go
through all the resultFields and decide which resources are mandatory
and should trigger
unheathly probes and which resources are optional
@JoaoBraveCoding
Copy link
Collaborator Author

Blocked until open-cluster-management-io/addon-framework#289 merges

@JoaoBraveCoding
Copy link
Collaborator Author

/hold

@coveralls
Copy link

coveralls commented Nov 25, 2024

Pull Request Test Coverage Report for Build 14489606041

Details

  • 46 of 64 (71.88%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.4%) to 60.296%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/addon/addon.go 46 64 71.88%
Totals Coverage Status
Change from base Build 14474897365: 0.4%
Covered Lines: 978
Relevant Lines: 1622

💛 - Coveralls

@zhiweiyin318
Copy link

@JoaoBraveCoding the addon-framework PR is merged.
but there are some updates that we also pass cluster and addon to the HealthChecker for user to check health too.
please import the new one.

@JoaoBraveCoding JoaoBraveCoding marked this pull request as ready for review April 4, 2025 16:18
@JoaoBraveCoding
Copy link
Collaborator Author

/unhold

Comment on lines +39 to +57
{
ResourceIdentifier: workv1.ResourceIdentifier{
Group: prometheusalpha1.SchemeGroupVersion.Group,
Resource: PrometheusAgentResource,
Name: PPAName,
Namespace: InstallNamespace,
},
ProbeRules: []workv1.FeedbackRule{
{
Type: workv1.JSONPathsType,
JsonPaths: []workv1.JsonPath{
{
Name: paProbeKey,
Path: paProbePath,
},
},
},
},
},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@thibaultmg I've added a probe to the Platform prometheus, feel free to request any changes in this. It I can also add for UWM if you want but I would also have to update the HealthChecker

Copy link
Contributor

@thibaultmg thibaultmg left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Apr 16, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoaoBraveCoding, thibaultmg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [JoaoBraveCoding,thibaultmg]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 7b4b9b9 into stolostron:main Apr 16, 2025
8 checks passed
coleenquadros pushed a commit to coleenquadros/multicluster-observability-addon that referenced this pull request Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants