feat(meilisearch): add basic meilisearch rules

This commit is contained in:
Alessandro Gregori 2024-06-28 10:31:35 +02:00
parent 60c235975c
commit bee4c51664
2 changed files with 36 additions and 0 deletions

View file

@ -842,6 +842,19 @@ groups:
query: "increase(redis_rejected_connections_total[1m]) > 0" query: "increase(redis_rejected_connections_total[1m]) > 0"
severity: critical severity: critical
- name: Meilisearch
exporters:
- doc_url: https://github.com/orgs/meilisearch/discussions/625
rules:
- name: Meilisearch index is empty
description: Meilisearch instance is down
query: 'meilisearch_index_docs_count{index="$Index"} = 0'
severity: warning
- name: Meilisearch http response time
description: Meilisearch http response time is too high
query: "meilisearch_http_response_time_seconds > 0.5"
severity: warning
- name: MongoDB - name: MongoDB
exporters: exporters:
- name: percona/mongodb_exporter - name: percona/mongodb_exporter

View file

@ -0,0 +1,23 @@
groups:
- name: EmbeddedExporter
rules:
- alert: MeilisearchIndexIsEmpty
expr: meilisearch_index_docs_count{index="$Index"} = 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 }}"