awesome-prometheus-alerts/dist/rules/meilisearch/embedded-exporter.yml
Greg 9557d4b50e
feat(meilisearch): add basic set of rules (#425)
* feat(meilisearch): add basic meilisearch rules

* fix(query): use == instead of =

* fix(data): set correct name and use ==

* chore(meilisearch): remove index filter
2024-07-02 09:33:08 +02:00

23 lines
878 B
YAML

groups:
- name: EmbeddedExporter
rules:
- alert: MeilisearchIndexIsEmpty
expr: meilisearch_index_docs_count == 0
for: 5m
labels:
severity: warning
annotations:
summary: the index {{ $labels.Index }} is empty
description: "The index {{ $labels.Index }} is empty at the moment, and shouldnt be empty\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: MeilisearchHttpResponseTimeIsTooHigh
expr: rate(meilisearch_http_response_time_seconds_sum[5m]) / rate(meilisearch_http_response_time_seconds_count[5m]) > 0.5
for: 5m
labels:
severity: warning
annotations:
summary: the meilisearch server http response time is too high
description: "The meilisearch server http response time is too high at the moment\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"