@@ -200,6 +200,119 @@ The following settings apply only to sharded cluster resource types:
200200.. include:: /includes/option/setting-k8sScConf-spec.shardPodSpec.podTemplate.metadata.rst
201201.. include:: /includes/option/setting-k8sScConf-spec.shardPodSpec.podTemplate.spec.rst
202202
203+ .. _prometheus-settings:
204+
205+ Prometheus Settings
206+ -------------------
207+
208+ You can use Prometheus with your standalone resource, replica sets, or
209+ sharded clusters. The following settings apply when you use Prometheus
210+ with your MongoDB resource:
211+
212+ .. setting:: spec.prometheus
213+
214+ *Type*: array
215+
216+ *Optional*
217+
218+ List that contains the parameters for exposing metrics to Prometheus.
219+
220+ .. setting:: spec.prometheus.metricsPath
221+
222+ *Type*: string
223+
224+ *Optional*
225+
226+ *Default*: ``"/metrics"``
227+
228+ Human-readable string that indicates the path to the metrics
229+ endpoint. If you don't specify this setting, the default applies.
230+
231+ .. setting:: spec.prometheus.passwordSecretRef
232+
233+ *Type*: object
234+
235+ *Conditional*
236+
237+ Object that contains the details of the |k8s-secret| for
238+ basic HTTP authentication. If you want to use Prometheus with your
239+ MongoDB resource, you must specify this setting.
240+
241+ .. setting:: spec.prometheus.passwordSecretRef.key
242+
243+ *Type*: string
244+
245+ *Optional*
246+
247+ *Default*: ``"password"``
248+
249+ Human-readable string that indentifies the key in the |k8s-secret|
250+ that stores the password for basic HTTP authentication. If you don't
251+ specify this setting, the default applies.
252+
253+ .. setting:: spec.prometheus.passwordSecretRef.name
254+
255+ *Type*: string
256+
257+ *Conditional*
258+
259+ Human-readable label that identifies the |k8s-secret| that contains
260+ the password for basic HTTP authentication. If you want to use
261+ Prometheus with your MongoDB resource, you must specify this setting.
262+
263+ .. setting:: spec.prometheus.port
264+
265+ *Type*: integer
266+
267+ *Optional*
268+
269+ *Default:* 9216
270+
271+ Number that identifies the port that the metrics endpoint will
272+ bind to. If you don't specify this setting, the default applies.
273+
274+ .. setting:: spec.prometheus.tlseSecretKeyRef
275+
276+ *Type*: object
277+
278+ *Optional*
279+
280+ Object that contains the details of the |k8s-secret| for |tls|
281+ authentication.
282+
283+ .. setting:: spec.prometheus.tlseSecretKeyRef.key
284+
285+ *Type*: string
286+
287+ *Optional*
288+
289+ *Default*: ``"password"``
290+
291+ Human-readable string that indentifies the key in the |k8s-secret|
292+ that stores the password for |tls| authentication. If you don't
293+ specify this setting, the default applies.
294+
295+ .. setting:: spec.prometheus.tlseSecretKeyRef.name
296+
297+ *Type*: string
298+
299+ *Conditional*
300+
301+ Human-readable label that identifies the |k8s-secret| that contains
302+ the password for |tls| authentication. If you want to use
303+ Prometheus with your MongoDB resource and you want to use |tls|
304+ authentication, you must specify this setting.
305+
306+ .. setting:: spec.prometheus.username
307+
308+ *Type*: string
309+
310+ *Conditional*
311+
312+ Human-readable label that identifies the user for basic HTTP
313+ authentication. If you want to use Prometheus with your MongoDB
314+ resource, you must specify this setting.
315+
203316.. _tls-settings:
204317.. _security-settings:
205318
0 commit comments