awesome-prometheus-alerts/dist/rules/solr/embedded-exporter.yml
Samuel Berthe ccf24bcf03 Publish
2022-06-15 00:08:51 +00:00

41 lines
1.8 KiB
YAML

groups:
- name: EmbeddedExporter
rules:
- alert: SolrUpdateErrors
expr: 'increase(solr_metrics_core_update_handler_errors_total[1m]) > 1'
for: 0m
labels:
severity: critical
annotations:
summary: Solr update errors (instance {{ $labels.instance }})
description: "Solr collection {{ $labels.collection }} has failed updates for replica {{ $labels.replica }} on {{ $labels.base_url }}.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: SolrQueryErrors
expr: 'increase(solr_metrics_core_errors_total{category="QUERY"}[1m]) > 1'
for: 5m
labels:
severity: warning
annotations:
summary: Solr query errors (instance {{ $labels.instance }})
description: "Solr has increased query errors in collection {{ $labels.collection }} for replica {{ $labels.replica }} on {{ $labels.base_url }}.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: SolrReplicationErrors
expr: 'increase(solr_metrics_core_errors_total{category="REPLICATION"}[1m]) > 1'
for: 0m
labels:
severity: critical
annotations:
summary: Solr replication errors (instance {{ $labels.instance }})
description: "Solr collection {{ $labels.collection }} has failed updates for replica {{ $labels.replica }} on {{ $labels.base_url }}.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: SolrLowLiveNodeCount
expr: 'solr_collections_live_nodes < 2'
for: 0m
labels:
severity: critical
annotations:
summary: Solr low live node count (instance {{ $labels.instance }})
description: "Solr collection {{ $labels.collection }} has less than two live nodes for replica {{ $labels.replica }} on {{ $labels.base_url }}.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"