escape regex match

This commit is contained in:
MulliganSecurity 2025-06-06 17:15:23 +02:00
parent 53ca5f7a0b
commit a70be9f6e9

View file

@ -27,12 +27,10 @@ Simple threshold-based alert are reactive by nature, but their automated monitor
- Threshold-based: a [SMARTCTL](https://en.wikipedia.org/wiki/Smartctl) alert creating a notification when any hard drive within your infrastructure crosses a pre-failure threshold - Threshold-based: a [SMARTCTL](https://en.wikipedia.org/wiki/Smartctl) alert creating a notification when any hard drive within your infrastructure crosses a pre-failure threshold
~~~ smartctl_device_attribute{attribute_flags_long=\~".*prefailure.*", attribute_value_type="value"}
smartctl_device_attribute{attribute_flags_long=~".*prefailure.*", attribute_value_type="value"}
<= <=
on (device, attribute_id, instance, attribute_name) on (device, attribute_id, instance, attribute_name)
smartctl_device_attribute{attribute_flags_long=~".*prefailure.*", attribute_value_type="thresh"} smartctl_device_attribute{attribute_flags_long=\~".*prefailure.*", attribute_value_type="thresh"}
~~~
- Statistical (anomaly detection): CPU spike or under-use - Statistical (anomaly detection): CPU spike or under-use