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

Document default alerts to set for cluster #195

Closed
wants to merge 3 commits into from
Closed
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
80 changes: 80 additions & 0 deletions docs/examples/default-alets/alerts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
apiVersion: monitoring.appscode.com/v1alpha1
kind: ClusterAlert
metadata:
name: kube-api
namespace: kube-system
labels:
alert.appscode.com/objectType: cluster
spec:
check: json_path
vars:
url: https://{{ pillar['instance_prefix'] }}-{{ pillar['appscode_ns'] }}.{{ pillar['appscode_cluster_root_domain'] }}:6443
query: ".paths"
critical: "length == 0"
in_cluster_config: true
checkInterval: 1m
alertInterval: 5m
receivers:
- notifier: $NOTIFIER
state: CRITICAL
to: ["$OPS_EMAIL"]
---
apiVersion: monitoring.appscode.com/v1alpha1
kind: ClusterAlert
metadata:
name: component-status
namespace: kube-system
spec:
check: component_status
checkInterval: 1m
alertInterval: 5m
receivers:
- notifier: $NOTIFIER
state: CRITICAL
to: ["$OPS_EMAIL"]
---
apiVersion: monitoring.appscode.com/v1alpha1
kind: ClusterAlert
metadata:
name: kibana-dns
namespace: kube-system
spec:
check: any_http
vars:
httpVhost: {{ pillar['instance_prefix'] }}-{{ pillar['appscode_ns'] }}.{{ pillar['appscode_cluster_root_domain'] }}
httpURI: "/kibana"
httpSSL: true
checkInterval: 1m
alertInterval: 5m
receivers:
- notifier: $NOTIFIER
state: CRITICAL
to: ["$OPS_EMAIL"]
---
apiVersion: monitoring.appscode.com/v1alpha1
kind: NodeAlert
metadata:
name: node-status
namespace: kube-system
spec:
check: node_status
checkInterval: 5m
alertInterval: 5m
receivers:
- notifier: $NOTIFIER
state: CRITICAL
to: ["$OPS_EMAIL"]
---
apiVersion: monitoring.appscode.com/v1alpha1
kind: NodeAlert
metadata:
name: node-disk-stat
namespace: kube-system
spec:
check: node_volume
checkInterval: 1m
alertInterval: 5m
receivers:
- notifier: $NOTIFIER
state: CRITICAL
to: ["$OPS_EMAIL"]