openwisp-monitoring icon indicating copy to clipboard operation
openwisp-monitoring copied to clipboard

[feature] Possibility to add alerts for related_fields

Open Aryamanz29 opened this issue 2 years ago • 2 comments

  • If we look at current implementation of alerts, We see that alerts checks thresholds on only value/field_name, it would be nice if we can add alert functionality for extra_values/related_fields as well. https://github.com/openwisp/openwisp-monitoring/blob/6119ac0dfa7221e7e06d88fdcd628ec0d629a3a7/openwisp_monitoring/monitoring/base/models.py#L315-L358

Aryamanz29 avatar Jun 24 '22 16:06 Aryamanz29

  • If we look at current implementation of alerts, We see that alerts checks thresholds on only value/field_name, it would be nice if we can add alert functionality for extra_values/related_fields as well. https://github.com/openwisp/openwisp-monitoring/blob/6119ac0dfa7221e7e06d88fdcd628ec0d629a3a7/openwisp_monitoring/monitoring/base/models.py#L315-L358

We need this for the Iperf alerts right? If so, we can look for a solution, do you have any idea?

nemesifier avatar Jun 25 '22 17:06 nemesifier

We need this for the Iperf alerts right? If so, we can look for a solution, do you have any idea?

Yes, It would be great If we can add alerts on related_fields because my iperf configuration currently look like this :

https://github.com/openwisp/openwisp-monitoring/blob/d44e076fdb74a33459cf2f5d1ecd45d202a39072/openwisp_monitoring/monitoring/configuration.py#L546-L650

Aryamanz29 avatar Jun 26 '22 19:06 Aryamanz29