Skip to content

Commit 6df4ae3

Browse files
committed
Consistent naming of recording rules
1 parent 04caa5f commit 6df4ae3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

prometheus-ksonnet/lib/prometheus-config.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
},
66

77
rule_files: [
8-
'alerts/rules',
9-
'recording/rules',
8+
'alerts/alerts.rules',
9+
'recording/recording.rules',
1010
],
1111

1212
alerting: {

prometheus-ksonnet/lib/prometheus-configmap.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'alerts.rules': $.util.manifestYaml(prometheusAlerts),
2929
}),
3030

31-
configMap.new('%s-rules' % self.name) +
31+
configMap.new('%s-recording' % self.name) +
3232
configMap.withData({
3333
'recording.rules': $.util.manifestYaml(prometheusRules),
3434
}),

prometheus-ksonnet/lib/prometheus-ha-mixin.libsonnet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ local configMap = k.core.v1.configMap;
5858
configMap.withData({
5959
'alerts.rules': k.util.manifestYaml(root.prometheus_zero.alerts),
6060
}),
61-
configMap.new('%s-rules-0' % self.name) +
61+
configMap.new('%s-recording-0' % self.name) +
6262
configMap.withData({
6363
'recording.rules': k.util.manifestYaml(root.prometheus_zero.rules),
6464
}),
@@ -71,7 +71,7 @@ local configMap = k.core.v1.configMap;
7171
configMap.withData({
7272
'alerts.rules': k.util.manifestYaml(root.prometheus_one.alerts),
7373
}),
74-
configMap.new('%s-rules-1' % self.name) +
74+
configMap.new('%s-recording-1' % self.name) +
7575
configMap.withData({
7676
'recording.rules': k.util.manifestYaml(root.prometheus_one.rules),
7777
}),
@@ -80,10 +80,10 @@ local configMap = k.core.v1.configMap;
8080
prometheus_config_mount::
8181
k.util.configVolumeMount('%s-config-0' % self.name, '/etc/prometheus-0')
8282
+ k.util.configVolumeMount('%s-alerts-0' % self.name, '/etc/prometheus-0/alerts')
83-
+ k.util.configVolumeMount('%s-rules-0' % self.name, '/etc/prometheus-0/rules')
83+
+ k.util.configVolumeMount('%s-recording-0' % self.name, '/etc/prometheus-0/recording')
8484
+ k.util.configVolumeMount('%s-config-1' % self.name, '/etc/prometheus-1')
8585
+ k.util.configVolumeMount('%s-alerts-1' % self.name, '/etc/prometheus-1/alerts')
86-
+ k.util.configVolumeMount('%s-rules-1' % self.name, '/etc/prometheus-1/rules')
86+
+ k.util.configVolumeMount('%s-recording-1' % self.name, '/etc/prometheus-1/recording')
8787
,
8888

8989
prometheus_container+:: container.withEnv([

prometheus-ksonnet/lib/prometheus.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
prometheus_config_mount::
7878
$.util.configVolumeMount('%s-config' % self.name, _config.prometheus_config_dir)
7979
+ $.util.configVolumeMount('%s-alerts' % self.name, _config.prometheus_config_dir + '/alerts')
80-
+ $.util.configVolumeMount('%s-rules' % self.name, _config.prometheus_config_dir + '/rules')
80+
+ $.util.configVolumeMount('%s-recording' % self.name, _config.prometheus_config_dir + '/recording')
8181
,
8282

8383
prometheus_statefulset:

0 commit comments

Comments
 (0)