From d11363a74c00a1ca2592112a6f347a7fb5a87d95 Mon Sep 17 00:00:00 2001 From: David Barroso Date: Sun, 20 Apr 2025 13:59:31 +0200 Subject: [PATCH] chore (observability): make alerts less sensitive (#3310) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### **PR Type** Enhancement ___ ### **Description** - Increase alert sensitivity time from 5m to 15m - Change NoData state to Alerting for most rules - Modify execErrState to Alerting or OK - Adjust noDataState for specific alert rules ___ ### **Changes walkthrough** 📝
Relevant files
Configuration changes
rules_nhost.yaml
Adjust alert sensitivity and error handling configurations

observability/grafana/rules_nhost.yaml
  • Increased 'for' duration from 5m to 15m for multiple alerts
  • Changed 'noDataState' from NoData to Alerting for most rules
  • Modified 'execErrState' to Alerting or OK depending on the rule
  • Adjusted 'noDataState' for specific alert rules (e.g., OK to Alerting)
  • +13/-13 
    ___ >
    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.
  • --- observability/grafana/rules_nhost.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/observability/grafana/rules_nhost.yaml b/observability/grafana/rules_nhost.yaml index ec218e7ae..c6bc2b382 100644 --- a/observability/grafana/rules_nhost.yaml +++ b/observability/grafana/rules_nhost.yaml @@ -51,9 +51,9 @@ groups: maxDataPoints: 43200 refId: B type: threshold - noDataState: NoData - execErrState: Error - for: 5m + noDataState: Alerting + execErrState: Alerting + for: 15m annotations: runbook_url: https://docs.nhost.io/platform/cloud/compute-resources Project Subdomain: {{ .Subdomain }} @@ -123,9 +123,9 @@ groups: maxDataPoints: 43200 refId: B type: threshold - noDataState: NoData - execErrState: Error - for: 5m + noDataState: Alerting + execErrState: Alerting + for: 15m annotations: runbook_url: https://docs.nhost.io/products/database/configuring-postgres Subdomain: {{ .Subdomain }} @@ -195,9 +195,9 @@ groups: maxDataPoints: 43200 refId: B type: threshold - noDataState: NoData - execErrState: Error - for: 5m + noDataState: Alerting + execErrState: Alerting + for: 15m annotations: runbook_url: https://docs.nhost.io/platform/cloud/compute-resources Subdomain: {{ .Subdomain }} @@ -268,7 +268,7 @@ groups: refId: B type: threshold noDataState: OK - execErrState: Error + execErrState: OK for: 0s annotations: summary: | @@ -342,9 +342,9 @@ groups: maxDataPoints: 43200 refId: B type: threshold - noDataState: OK - execErrState: Error - for: 5m + noDataState: Alerting + execErrState: Alerting + for: 15m annotations: Subdomain: {{ .Subdomain }} Project Name: {{ .ProjectName }}