Skip to content

Commit 7b6c4d6

Browse files
committed
Enable Pyrra generic rules for Grafana by default
1 parent 1008ef9 commit 7b6c4d6

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

jsonnet/kube-prometheus/components/pyrra.libsonnet

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,22 @@ function(params)
2222
// Safety check
2323
assert std.isObject(config.resources);
2424

25-
(pyrra + config).pyrra
25+
(pyrra + config).pyrra {
26+
// Enable generic rules for kube-promethues by default
27+
kubernetesDeployment+: {
28+
spec+: {
29+
template+: {
30+
spec+: {
31+
containers: [
32+
c {
33+
args+: [
34+
'--generic-rules',
35+
],
36+
}
37+
for c in super.containers
38+
],
39+
},
40+
},
41+
},
42+
},
43+
}

0 commit comments

Comments
 (0)