mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 17:07:24 +08:00
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
This commit is contained in:
parent
b6a6c2e313
commit
9557d4b50e
2 changed files with 38 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
23
dist/rules/meilisearch/embedded-exporter.yml
vendored
Normal file
23
dist/rules/meilisearch/embedded-exporter.yml
vendored
Normal file
|
|
@ -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 }}"
|
||||
Loading…
Reference in a new issue