Oracle® Communications Service Communication Proxy (SCP) Cloud Native User's Guide Release 1.0 F12310-01 |
|
![]() Previous |
![]() Next |
SCP Helm Chart Release Name: _NAME_
Prometheus NameSpace: _Namespace _
To configure Service Communication Proxy Alert in Prometheus:
kubectl get configmaps _NAME_-server -o yaml -n _Namespace_ > /tmp/tempConfig.yaml
sed -i'/etc\/config\/alertsscp/d'/tmp/tempConfig.yamlsed -i'/rule_files:/a\ \- /etc/config/alertsscp'/tmp/tempConfig.yaml
kubectl replace configmap _NAME_-server -f /tmp/tempConfig.yaml
kubectl patch configmap _NAME_-server -n _Namespace_ --type merge --patch"$(cat ~/SCPAlertrules.yaml)"
Note:
Prometheus server considers updated configmap reloaded after approximately 20 seconds.