File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1217,7 +1217,7 @@ metrics:
1217
1217
enabled : true
1218
1218
# # @param metrics.serviceMonitor.namespace Specify the namespace in which the serviceMonitor resource will be created
1219
1219
# #
1220
- namespace : " monitoring "
1220
+ namespace : " ${service_monitor_namespace} "
1221
1221
# # @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1222
1222
# #
1223
1223
jobLabel : " "
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ resource "helm_release" "mysqldb" {
81
81
replication_password = random_password.mysqldb_replication_user_password.result,
82
82
mysqldb_root_password = random_password.mysqldb_root_password.result,
83
83
mysqldb_exporter_enabled = var.mysqldb_exporter_enabled,
84
+ service_monitor_namespace = var.namespace
84
85
metrics_exporter_password = random_password.mysqldb_exporter_user_password.result,
85
86
secondary_pod_replica_count = var.mysqldb_config.secondary_db_replica_count
86
87
}),
You can’t perform that action at this time.
0 commit comments