Go to primary content
Oracle® Communications Service Communication Proxy (SCP) Cloud Native User's Guide
Release 1.0
F12310-01
Go To Table Of Contents
Contents

Previous
Previous
Next
Next

Configuring Service Communication Proxy Alert in Prometheus

SCP Helm Chart Release Name: _NAME_

Prometheus NameSpace: _Namespace _

To configure Service Communication Proxy Alert in Prometheus:

  1. Take backup of current config map of Prometheus:

    kubectl get configmaps _NAME_-server -o yaml -n _Namespace_ > /tmp/tempConfig.yaml

  2. Check and add SCP Alert File name inside Prometheus config map:

    sed -i'/etc\/config\/alertsscp/d'/tmp/tempConfig.yamlsed -i'/rule_files:/a\ \- /etc/config/alertsscp'/tmp/tempConfig.yaml

  3. Update Config map with updated file name of SCP Alert File.

    kubectl replace configmap _NAME_-server -f /tmp/tempConfig.yaml

  4. Add scpAlertrules in Config map under file name of SCP Alert File.

    kubectl patch configmap _NAME_-server -n _Namespace_ --type merge --patch"$(cat ~/SCPAlertrules.yaml)"

Note:

Prometheus server considers updated configmap reloaded after approximately 20 seconds.