File tree Expand file tree Collapse file tree 2 files changed +430
-0
lines changed Expand file tree Collapse file tree 2 files changed +430
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { getHomeAssistantRuleGroups } from "./rules/homeassistant";
44import { getVeleroRuleGroups } from "./rules/velero" ;
55import { getArgoCDRuleGroups } from "./rules/argocd" ;
66import { getResourceMonitoringRuleGroups } from "./rules/resource-monitoring" ;
7+ import { getZfsMonitoringRuleGroups } from "./rules/zfs" ;
78
89export function createPrometheusMonitoring ( chart : Chart ) {
910 // Create Home Assistant rules
@@ -53,4 +54,16 @@ export function createPrometheusMonitoring(chart: Chart) {
5354 groups : getResourceMonitoringRuleGroups ( ) ,
5455 } ,
5556 } ) ;
57+
58+ // Create ZFS Monitoring rules
59+ new PrometheusRule ( chart , "prometheus-zfs-monitoring-rules" , {
60+ metadata : {
61+ name : "prometheus-zfs-monitoring-rules" ,
62+ namespace : "torvalds" ,
63+ labels : { release : "prometheus" } ,
64+ } ,
65+ spec : {
66+ groups : getZfsMonitoringRuleGroups ( ) ,
67+ } ,
68+ } ) ;
5669}
You can’t perform that action at this time.
0 commit comments