From a70be9f6e9a3116711bcf004c3179480d3e02799 Mon Sep 17 00:00:00 2001 From: MulliganSecurity Date: Fri, 6 Jun 2025 17:15:23 +0200 Subject: [PATCH] escape regex match --- simplexalerts/index.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/simplexalerts/index.md b/simplexalerts/index.md index 1620460..9373168 100644 --- a/simplexalerts/index.md +++ b/simplexalerts/index.md @@ -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 -~~~ - 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) - 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