Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (50 sloc) 1.6 KB
# Created by 'make rules' - DO NOT EDIT
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
generation: 1
name: sync-gateway.rules
namespace: couchbase
labels:
app: sync-gateway
spec:
groups:
- name: sync-gateway.rules
rules:
- record: sgw::gsi::total_queries
expr: sum by (instance, database, job) ({__name__=~"sgw_gsi_views_.*_count"})
- alert: TooManyAuthFailuresInLastHour
expr: deriv(sgw_security_auth_failed_count[1h]) > 1000
for: 1m
labels:
severity: warning
annotations:
summary: Too Many Auth Failures in Last Hour
- alert: TooManyDocumentAccessFailuresInLastHour
expr: deriv(sgw_security_num_access_errors[1h]) > 1000
for: 1m
labels:
severity: warning
annotations:
summary: Too many Document Access Failures in Last Hour
- alert: TooManyDocumentRejectionFailuresInLastHour
expr: deriv(sgw_security_num_docs_rejected[1h]) > 1000
for: 1m
labels:
severity: warning
annotations:
summary: Too many Document Rejection Failures in Last Hour
- alert: HighRevCacheMissRate
expr: sgw_cache_rev_cache_misses / (sgw_cache_rev_cache_misses + sgw_cache_rev_cache_hits) >= 1.0
for: 1m
labels:
severity: warning
annotations:
summary: High Rev Cache Miss Rate
- alert: HighChannelCacheMissRate
expr: sgw_cache_chan_cache_misses / (sgw_cache_chan_cache_misses + sgw_cache_chan_cache_hits) >= 1.0
for: 1m
labels:
severity: warning
annotations:
summary: High Channel Cache Miss Rate
You can’t perform that action at this time.