Skip to content

Commit

Permalink
Add info alert in case we discover less than 2 hosts.
Browse files Browse the repository at this point in the history
2 hosts, should be discovered as that is indicating both the route
  servers.
  • Loading branch information
swagner-de committed Sep 7, 2023
1 parent ce120f3 commit 35a81df
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions px/bird/templates/alerts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule

metadata:
name: arp-discovery-exporter
labels:
app: px
tier: px
type: alerting-rules
prometheus: infra-collector

spec:
groups:
- name: arp-discovery.alerts
rules:
- alert:
expr: sum(arp_host_discovered) by (interface, vm_name) < 2
for: 2h
labels:
severity: info
tier: net
service: px
context: px
annotations:
summary: "PX VLANs are missing on some aPod VMs, no ARP responses seen."
description: "VM {{`{{ $labels.vm_name }}`}} on interface {{`{{ $labels.interface }}`}} is not receiving any ARP respones."

0 comments on commit 35a81df

Please sign in to comment.