f026321abb
Change-Id: I6fdd8c69c35480f3844787eb4d5275174be027ee
40 lines
1.2 KiB
Django/Jinja
40 lines
1.2 KiB
Django/Jinja
---
|
|
# Copyright 2020 VEXXHOST, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: PrometheusRule
|
|
metadata:
|
|
name: memcached-{{ name }}
|
|
labels:
|
|
{{ labels("memcached", name) | indent(4) }}
|
|
spec:
|
|
groups:
|
|
- name: down
|
|
rules:
|
|
- alert: MemcachedDown
|
|
expr: memcached_up == 0
|
|
annotations:
|
|
priority: P3
|
|
- name: connection-limits
|
|
rules:
|
|
- alert: MemcachedMaxConnections
|
|
expr: memcached_current_connections/memcached_max_connections * 100 > 95
|
|
annotations:
|
|
priority: P3
|
|
- alert: MemcachedMaxConnections
|
|
expr: memcached_current_connections/memcached_max_connections * 100 > 90
|
|
annotations:
|
|
priority: P4
|