Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(meilisearch): add basic set of rules #425

Merged
merged 4 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions _data/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions dist/rules/meilisearch/embedded-exporter.yml
Original file line number Diff line number Diff line change
@@ -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 }}"