kubeslice / worker-operator

Kubeslice Worker Operator Opensource Repository: The KubeSlice Worker Operator is a Kubernetes operator that manages the lifecycle of KubeSlice worker clusters.
Apache License 2.0
59 stars 19 forks source link

Add slice health metrics #242

Closed gourishkb closed 1 year ago

gourishkb commented 1 year ago

This PR adds the slice health related metrics.

  1. kubeslice_slice_up : gauge set to 1 when slice health is Normal state and set to 0 when slice health is in warning state
  2. kubeslice_slice_component_up : gauge set to 1 when slice component is in Normal state and set to 0 when slice component is in Error state

Added integration tests to cover both the states of the above metrics