diff --git a/_data/rules.yml b/_data/rules.yml index 8994d44..128793f 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -842,6 +842,21 @@ groups: query: "increase(redis_rejected_connections_total[1m]) > 0" severity: critical + - name: Meilisearch + exporters: + - name: Embedded exporter + slug: embedded-exporter + 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 == 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 exporters: - name: percona/mongodb_exporter diff --git a/dist/rules/meilisearch/embedded-exporter.yml b/dist/rules/meilisearch/embedded-exporter.yml new file mode 100644 index 0000000..a8824dd --- /dev/null +++ b/dist/rules/meilisearch/embedded-exporter.yml @@ -0,0 +1,23 @@ +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 }}"