Skip to content

Commit

Permalink
use elasticsearch_indices_docs_primary instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad Reza Saleh Sedghpour committed Dec 17, 2024
1 parent 7f5baa5 commit 337deb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
description: Opensearch Cluster is in a Red status VALUE = {{`{{ $value }}`}} LABELS = {{`{{ $labels }}`}}
{{- range $prefixes := .Values.osIndexAlerts }}
- alert: OpenSearch{{ $prefixes.prefix | trimSuffix "-" | title }}IndexSizeOverLimit
expr: (elasticsearch_indices_store_size_bytes_primary{namespace="opensearch-system", index=~"{{ $prefixes.prefix }}.+"} / (1024 ^ 2) > {{ $prefixes.alertSizeMB }}) * clamp(rate(elasticsearch_indices_docs_total{namespace="opensearch-system", index=~"{{ $prefixes.prefix }}.+"}[1h]) > 0, 1, 1)
expr: (elasticsearch_indices_store_size_bytes_primary{namespace="opensearch-system", index=~"{{ $prefixes.prefix }}.+"} / (1024 ^ 2) > {{ $prefixes.alertSizeMB }}) * clamp(rate(elasticsearch_indices_docs_primary{namespace="opensearch-system", index=~"{{ $prefixes.prefix }}.+"}[1h]) > 0, 1, 1)
for: 15m
labels:
severity: warning
Expand Down

0 comments on commit 337deb3

Please sign in to comment.