ROX-18766: Central Instance Limit Alert #278
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Every dataplane cluster has a
central_instance_limit
configured viaapp-interface
. These limits are enforced by ACS Fleet Manager.The problem: if the limit has been reached for a specific dataplane cluster, the creation of new central tenants is no longer possible on the cluster.
To see more on this, See central_instance_limit values under
CLUSTER_LIST
for each environment in the saas.yaml fileSolution: This PR handles the alerting phase for central instance capacity with the goal of notifying how many instances are left within a particular cluster by adding an alert on the rhacs-observability-resources repo:
The Alert utilizes (subtracts)
acs_fleet_manager_cluster_status_capacity_max
andacs_fleet_manager_cluster_status_capacity_used
, which were defined in acs-fleet-manager pkg/metrics/metrics.go as:to calculate the remaining instances left.
Jira Ticket: https://issues.redhat.com/browse/ROX-18766
Testing
testing for both alert-rules, defined in prometheus-rules.yaml under name: rhacs-fleetshard, :
CentralInstanceLimit.yaml
run script:
test-prom-rules.sh
forCentralInstanceLimit.yaml