Hung-Wei Chiu | c423c9b | 2021-05-17 15:22:39 -0700 | [diff] [blame] | 1 | # Copyright 2020-present Open Networking Foundation |
| 2 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 3 | |
| 4 | apiVersion: monitoring.coreos.com/v1 |
| 5 | kind: PrometheusRule |
| 6 | metadata: |
| 7 | name: tost-telegraf |
| 8 | spec: |
| 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 |