Skip to content

Commit 82c9f18

Browse files
committed
(DOCSP-21446): Added Prometheus settings to MongoDB CRD reference. (#902)
* (DOCSP-21446): Added Prometheus settings to MongoDB CRD reference. * (DOCSP-21446): Incorporated JW's feedback.
1 parent 1efc211 commit 82c9f18

File tree

1 file changed

+113
-0
lines changed

1 file changed

+113
-0
lines changed

source/reference/k8s-operator-specification.txt

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)