mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
Provide sample instructions on setting up prometheus via prometheus-operator and then configuring a sample rule to monitor the volume space utilization, and once available space is less than 10%, it will start firing the alert.
```
100 * kubelet_volume_stats_available_bytes{job="kubelet"}
/
kubelet_volume_stats_capacity_bytes{job="kubelet"}
< 10
```
Signed-off-by: Pawan <pawan@mayadata.io>
14 lines
250 B
YAML
14 lines
250 B
YAML
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
|