3.3.2 Applying Alerts Rule to CNE with Prometheus Operator

Perform the following procedure to apply alerts rule to Cloud Native Environment (CNE) with Prometheus Operator (CNE 1.9.0 and later).
  1. Run the following command to apply SCP alerts file to create Prometheus rules Custom Resource Definition (CRD):
    kubectl apply -f <file_name> -n <scp namespace>
    Where,
    • <file_name> is the SCP alerts file.
    • <scp namespace> is the SCP namespace.

    Example:

    kubectl apply -f ocscp_alerting_rules_promha_24.2.6.yaml -n scpsvc

    Sample file delivered with SCP package:

    ocscp_alerting_rules_promha_24.2.6.yaml