* [stable/prometheus] update prometheus to 2.20.1 and cm reloader to 0.4.0 (#23506) * updated prometheus to 2.20.1 and cm reloader to 0.4.0 Signed-off-by: André Bauer <monotek23@gmail.com> * fix xpp version Signed-off-by: André Bauer <monotek23@gmail.com> * Deprecate prometheus-operator chart before helm repo index, so that it won't be listed in the hubs Signed-off-by: Scott Rigby <scott@r6by.com> * Update prometheus-community/prometheus chart. Needed to update references to stable repo, but took the opportunity to reorganize, fix and simplify README Signed-off-by: Scott Rigby <scott@r6by.com> * Add Helm 3 commands before Helm 2. Add helm update command. Reorganize the 'Upgrading Chart' section Signed-off-by: Scott Rigby <scott@r6by.com> * Fix header Signed-off-by: Scott Rigby <scott@r6by.com> * Fix markdown linting Signed-off-by: Scott Rigby <scott@r6by.com> * Add direct links to values.yaml configuration file for easy browsing by end users without the CLI Signed-off-by: Scott Rigby <scott@r6by.com> * Remove prometheus chart OWNERS file Signed-off-by: Scott Rigby <scott@r6by.com> * Update prometheus-adapter chart README and bump version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus chart: Return updated, working command example for Sharing Alerts Between Services Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-adapter: fix configure command typos Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-blackbox-exporter: Update readme, delete OWNERS file and bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-cloudwatch-exporter: Update Readme with new template, delete OWNERS file, bump chart version, update CHANGELOG Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-consul-exporter: Update Readme per new template and bump chart Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-couchdb-exporter: Update Readme per new template and bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-mongodb-exporter: Update Readme per new template, remove OWNERS file, bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-couchdb-exporter: Fix k8s 1.16 deprecated PodSecurityPolicy in the extensions/v1beta1 API version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-couchdb-exporter: Fix bad YAML indentation. How did this ever work? Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-mysql-exporter: update readme per new template, remove OWNERS file, bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-nats-exporter: update readme per new template, move specific config note to values.yaml, remove OWNERS file, bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-node-exporter: update readme per new template, remove OWNERS file, bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-postgres-exporter: update readme per new template, remove OWNERS file, bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-pushgateway: update readme per new template, remove OWNERS file, bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-rabbitmq-exporter: update readme per new template, bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-redis-exporter: update readme per new template, remove OWNERS file, bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-snmp-exporter: update readme per new template, remove OWNERS file, bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-to-sd: update readme per new template, remove OWNERS file, bump chart version Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-to-sd: fix deprecated deployment apps/v1beta1 Signed-off-by: Scott Rigby <scott@r6by.com> * Remove instructions for stable repos from all charts, except prometheus and deprecated prometheus-operator, as only those have dependencies on stable charts Signed-off-by: Scott Rigby <scott@r6by.com> * Temporary workaround github API rate limiting Signed-off-by: Scott Rigby <scott@r6by.com> * prometheus-to-sd: missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec Signed-off-by: Scott Rigby <scott@r6by.com> * disable chart testing for prometheus-to-sd. If not running on GCE, will error: "Failed to get GCE config" Signed-off-by: Scott Rigby <scott@r6by.com> Co-authored-by: André Bauer <monotek@users.noreply.github.com>
Prometheus MongoDB Exporter
A Prometheus exporter for MongoDB metrics.
Installs the MongoDB Exporter for Prometheus. The MongoDB Exporter collects and exports oplog, replica set, server status, sharding and storage engine metrics.
Get Repo Info
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
See helm repo for command documentation.
Install Chart
# Helm 3
$ helm install [RELEASE_NAME] prometheus-community/prometheus-mongodb-exporter
# Helm 2
$ helm install --name [RELEASE_NAME] prometheus-community/prometheus-mongodb-exporter
See configuration below.
See helm install for command documentation.
Uninstall Chart
# Helm 3
$ helm uninstall [RELEASE_NAME]
# Helm 2
# helm delete --purge [RELEASE_NAME]
This removes all the Kubernetes components associated with the chart and deletes the release.
See helm uninstall for command documentation.
Upgrading Chart
# Helm 3 or 2
$ helm upgrade [RELEASE_NAME] [CHART] --install
See helm upgrade for command documentation.
Configuration
See Customizing the Chart Before Installing. To see all configurable options with detailed comments, visit the chart's values.yaml, or run these configuration commands:
# Helm 2
$ helm inspect values prometheus-community/prometheus-mongodb-exporter
# Helm 3
$ helm show values prometheus-community/prometheus-mongodb-exporter
MongoDB Server Connection
To use the chart, ensure the mongodb.uri is populated with a valid MongoDB URI or an existing secret (in the releases namespace) containing the key defined on existingSecret.key, with the URI is referred via existingSecret.name. If no secret key is defined, the default value is mongodb-uri.
If the MongoDB server requires authentication, credentials should be populated in the connection string as well. The MongoDB Exporter supports connecting to either a MongoDB replica set member, shard, or standalone instance.
Service Monitor
The chart comes with a ServiceMonitor for use with the Prometheus Operator. If you're not using the Prometheus Operator, you can disable the ServiceMonitor by setting serviceMonitor.enabled to false and instead populate the podAnnotations as below:
podAnnotations:
prometheus.io/scrape: "true"
prometheus.io/port: "metrics"