blob: d2aded386a6a8e60477e1f8d40df356def4a2e37 [file] [log] [blame]
Hung-Wei Chiuc423c9b2021-05-17 15:22:39 -07001# Copyright 2020-present Open Networking Foundation
Scott Baker4cad5ee2022-06-09 14:17:35 -07002# SPDX-License-Identifier: Apache-2.0
Hung-Wei Chiuc423c9b2021-05-17 15:22:39 -07003
4apiVersion: monitoring.coreos.com/v1
5kind: PrometheusRule
6metadata:
7 name: tost-telegraf
8spec:
9 groups:
10 - name: tost.rules
11 rules:
12 - alert: "Topology: Device change"
13 annotations:
14 message: "Number of devices were changed"
15 expr: (onos_telegraf_ready == 1) and (changes(onos_telegraf_devices[5m]) != 0)
16 for: 5m
17 labels:
18 severity: warning
19 - alert: "Topology: Active Links change"
20 annotations:
21 message: "Number of active links were changed"
22 expr: (onos_telegraf_ready == 1) and (changes(onos_telegraf_active_links[5m]) != 0)
23 for: 5m
24 labels:
25 severity: warning
26 - alert: "Topology: Enable Device Ports change"
27 annotations:
28 message: "Number of enable device ports were changed"
29 expr: (onos_telegraf_ready == 1) and (changes(onos_telegraf_enable_device_ports[5m]) != 0)
30 for: 5m
31 labels:
32 severity: warning