diff --git a/solution-base/mongodb/charts/mongodb-sharded/values.yaml b/solution-base/mongodb/charts/mongodb-sharded/values.yaml index 1a1f763699..1bba988fd7 100644 --- a/solution-base/mongodb/charts/mongodb-sharded/values.yaml +++ b/solution-base/mongodb/charts/mongodb-sharded/values.yaml @@ -1553,7 +1553,7 @@ metrics: ## @param metrics.extraArgs String with extra arguments to the metrics exporter ## ref: https://github.com/dcu/mongodb_exporter/blob/master/mongodb_exporter.go ## - extraArgs: "" + extraArgs: "--collector.diagnosticdata --collector.replicasetstatus --collector.dbstats --collector.topmetrics --compatible-mode" ## @param metrics.resources Metrics exporter resource requests and limits ## ref: https://kubernetes.io/docs/user-guide/compute-resources/ ## diff --git a/solution-base/mongodb/patches/mongodb-exporter-configuration.patch b/solution-base/mongodb/patches/mongodb-exporter-configuration.patch new file mode 100644 index 0000000000..a80787a17a --- /dev/null +++ b/solution-base/mongodb/patches/mongodb-exporter-configuration.patch @@ -0,0 +1,13 @@ +diff --git a/solution-base/mongodb/charts/mongodb-sharded/values.yaml b/solution-base/mongodb/charts/mongodb-sharded/values.yaml +index 1a1f7636..1bba988f 100644 +--- a/solution-base/mongodb/charts/mongodb-sharded/values.yaml ++++ b/solution-base/mongodb/charts/mongodb-sharded/values.yaml +@@ -1553,7 +1553,7 @@ metrics: + ## @param metrics.extraArgs String with extra arguments to the metrics exporter + ## ref: https://github.com/dcu/mongodb_exporter/blob/master/mongodb_exporter.go + ## +- extraArgs: "" ++ extraArgs: "--collector.diagnosticdata --collector.replicasetstatus --collector.dbstats --collector.topmetrics --compatible-mode" + ## @param metrics.resources Metrics exporter resource requests and limits + ## ref: https://kubernetes.io/docs/user-guide/compute-resources/ + ##