Skip to content

Commit

Permalink
Merge pull request #140 from gabrielcocenza/opensearch-dashboards-down
Browse files Browse the repository at this point in the history
Add alert if an OpenSearch Dashboards scrape fails
  • Loading branch information
gabrielcocenza authored Nov 28, 2024
2 parents 5739382 + 3f63c6a commit b58e0cd
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/alert_rules/prometheus/prometheus_alerts.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
"groups":
- "name": "opensearch_dashboards.alerts"
"rules":

- "alert": "OpenSearchDashboardsScrapeFailed"
"annotations":
"message": "Scrape on {{ $labels.juju_unit }} failed. Ensure that the OpenSearch Dashboards systemd service is healthy."
"summary": "OpenSearch exporter scrape failed"
"expr": |
up < 1
"for": "5m"
"labels":
"severity": "critical"

- "alert": "OpenSearchDashboardsNotHealthy"
"annotations":
"message": "Server status is not green. The server may be down, it may have lost connection to Opensearch, or may suffer of partial unavailability."
"message": "Server status is not green. The server may be down, it may have lost connection to Opensearch, or may suffer of partial unavailability."
"summary": "Server health status is green"
"expr": |
absent(kibana_status) == 1 or kibana_status > 0
"for": "2m"
"labels":
"severity": "critical"

- "alert": "OpenSearchDashboardsLongResponseTime"
"annotations":
"message": "The server is up and responsive, however with a high latency."
Expand All @@ -19,6 +31,7 @@
"for": "2m"
"labels":
"severity": "critical"

- "alert": "OpenSearchDashboardsNoOpensearchConnection"
"annotations":
"message": "Connection to the Opensearch backend is lost."
Expand Down

0 comments on commit b58e0cd

Please sign in to comment.