Skip to content

Commit

Permalink
feat(alert): adding prometheus setup doc
Browse files Browse the repository at this point in the history
Signed-off-by: Pawan <pawan@mayadata.io>
  • Loading branch information
pawanpraka1 committed Jan 9, 2020
1 parent 3de8edf commit 7def329
Show file tree
Hide file tree
Showing 4 changed files with 424 additions and 1 deletion.
14 changes: 14 additions & 0 deletions deploy/sample/alertmanager-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: alertmanager-service
spec:
type: NodePort
ports:
- name: web
nodePort: 30093
port: 9093
protocol: TCP
targetPort: web
selector:
alertmanager: prometheus-operator-alertmanager
1 change: 0 additions & 1 deletion deploy/sample/prometheus-alert.rules
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ spec:
message: The PersistentVolume claimed by {{ $labels.persistentvolumeclaim
}} in Namespace {{ $labels.namespace }} is only {{ printf "%0.2f" $value
}}% free.
runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumeusagecritical
expr: |
100 * kubelet_volume_stats_available_bytes{job="kubelet"}
/
Expand Down
14 changes: 14 additions & 0 deletions deploy/sample/prometheus-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: prometheus-service
spec:
type: NodePort
ports:
- name: web
nodePort: 30090
port: 9090
protocol: TCP
targetPort: web
selector:
prometheus: prometheus-operator-prometheus
Loading

0 comments on commit 7def329

Please sign in to comment.