Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Add Prometheus Exports to Mongodb Replicaset #5874

Merged
merged 5 commits into from
Jun 18, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Documentation on metrics options
  • Loading branch information
Salim committed Jun 1, 2018
commit 3d671c04ee962d6fbfa2e2922cf0aac2e52fc608
21 changes: 21 additions & 0 deletions stable/mongodb-replicaset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ The following tables lists the configurable parameters of the mongodb chart and
| `tls.enabled` | Enable MongoDB TLS support including authentication | `false` |
| `tls.cacert` | The CA certificate used for the members | Our self signed CA certificate |
| `tls.cakey` | The CA key used for the members | Our key for the self signed CA certificate |
| `metrics.enabled` | Enable Prometheus compatible metrics for pods and replicasets | `false` |
| `auth.enabled` | If `true`, keyfile access control is enabled | `false` |
| `auth.key` | Key for internal authentication | `` |
| `auth.existingKeySecret` | If set, an existing secret with this name for the key is used | `` |
Expand Down Expand Up @@ -160,6 +161,26 @@ mongodb with your `mongo.pem` certificate:
```console
$ mongo --ssl --sslCAFile=ca.crt --sslPEMKeyFile=mongo.pem --eval "db.adminCommand('ping')"
```

## Promethus metrics
Enabling the metrics as follows will allow for each replicaset pod to export Prometheus compatible metrics
on server status, individual replicaset information, replication oplogs, and storage engine.

```yaml
metrics:
enabled: true
image: ssalaues/mongodb-exporter
imageTag: 0.5
imagePullPolicy: IfNotPresent
resources: {}
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9216"
prometheus.io/path: "/metrics"
```

More information on [MongoDB Exporter](https://github.com/percona/mongodb_exporter) metrics available.

## Readiness probe
The default values for the readiness probe are:

Expand Down