Oracle® Communications Network Repository Function (NRF) Cloud Native Installation and Upgrade Guide Release 1.0 F16981-02 |
|
![]() Previous |
NRF Alert Configuration
Follow the steps below for NRF Alert configuration in Prometheus:
Note:
Namespace
for NRF is
ocnrf
that must be
update as per the deployment.
ocnrf-config-1.0.0.0.0.zip
file can be downloaded from OHC.
Unzip the
ocnrf-config-1.0.0.0.0.zip
package after downloading to get
NrfAlertrules.yaml
file.
kubectl get configmaps _NAME_-server -o yaml -n _Namespace_ > /tmp/tempConfig.yaml
sed -i '/etc\/config\/alertsnrf/d' /tmp/tempConfig.yaml sed -i '/rule_files:/a\ \- /etc/config/alertsnrf' /tmp/tempConfig.yaml
kubectl replace configmap _NAME_-server -f /tmp/tempConfig.yaml
kubectl patch configmap _NAME_-server -n _Namespace_--type merge --patch "$(cat ~/NrfAlertrules.yaml)"
Note:
Prometheus server takes updated configuration map that is automatically reloaded after 60 seconds approximately. Refresh the Prometheus GUI to confirm that the NRF Alerts are loaded.