sudo su - trif-user
pwd
Skip this step if you specified your customer name for Zebra's OpsRamp alert monitoring server during Resonate installation with the --customer-label-value or -l option. |
CUSTOMER="Your Customer Name"
sed -i "s@customer:.*@customer: \"${CUSTOMER}\"@" manifests/base/trifecta.prometheusrules.yaml
kubectl apply -f manifests/base/trifecta.prometheusrules.yaml --server-side
kubectl get configmap prometheus-k8s-rulefiles-0 -n monitoring -o yaml | grep -B 3 customer:
monitoring-trifecta-rules-528dd340-635b-42dc-ba0b-c074adb40f24.yaml: | groups: - labels: customer: CustomerXYZ
./add-alerting-target.sh --type webhook --webhook-url <URL> --name opsramp
./add-alerting-target.sh --type webhook --webhook-url https://zebra.api.opsramp.com/integrations/alertsWebhook/<tenant-id>/alerts?vtoken=<token> --name opsramp {com.zebra.alt.logging}PROMPTConfiguring Alerting Target With The Following Options: {com.zebra.alt.logging}PROMPT Type: webhook {com.zebra.alt.logging}PROMPT Name: opsramp {com.zebra.alt.logging}PROMPT CA Certificate: <default TLS certificates> {com.zebra.alt.logging}PROMPT Alert Group: both {com.zebra.alt.logging}PROMPT Group By: ... {com.zebra.alt.logging}PROMPT Group Wait: 30s {com.zebra.alt.logging}PROMPT Group Interval: 5m {com.zebra.alt.logging}PROMPT Repeat Interval: 4h {com.zebra.alt.logging}PROMPT Continue: true {com.zebra.alt.logging}PROMPT Webhook URL: https://zebra.api.opsramp.com/integrations/alertsWebhook/<tenant-id>/alerts?vtoken=<token> {com.zebra.alt.logging}PROMPT Webhook Max Alerts: 0 {com.zebra.alt.logging}PROMPT Webhook Authorization Type: <not set> {com.zebra.alt.logging}PROMPT Matchers: <none> [2025-10-23T15:39:41+00:00] INFO Provisioning Alerting Target [2025-10-23T15:39:42+00:00] INFO Applied AlertManagerConfig: opsramp Successfully Configured Alerting Target: opsramp The AlertManager configuration has been updated to send alerts to your specified target. Please ensure your webhook endpoint at https://zebra.api.opsramp.com/integrations/alertsWebhook/<tenant-id>/alerts?vtoken=<token> is properly configured to receive alerts.
kubectl get alertmanagerconfig -n monitoring
NAME AGE alerting-sidecar-target 58m opsramp 13m