Back to Charts

Prometheus MongoDB Exporter

stable/prometheus-mongodb-exporter/README.md

latest4.2 KB
Original Source

Prometheus MongoDB Exporter

DEPRECATED and moved to https://github.com/prometheus-community/helm-charts

Installs the MongoDB Exporter for Prometheus. The MongoDB Exporter collects and exports oplog, replica set, server status, sharding and storage engine metrics.

Installing the Chart

To install the chart with the release name my-release:

console
$ helm upgrade --install my-release stable/prometheus-mongodb-exporter

This command deploys the MongoDB Exporter with the default configuration. The configuration section lists the parameters that can be configured during installation.

Using the Chart

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.

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:

yaml
podAnnotations:
  prometheus.io/scrape: "true"
  prometheus.io/port: "metrics"

Configuration

ParameterDescriptionDefault
affinityNode/pod affinities{}
annotationsAnnotations to be added to the pods{}
existingSecret.nameRefer to an existing secret name instead of using mongodb.uri``
existingSecret.keyRefer to an existing secret keymongodb-uri
extraArgsThe extra command line arguments to pass to the MongoDB ExporterSee values.yaml
fullnameOverrideOverride the full chart name``
image.pullPolicyMongoDB Exporter image pull policyIfNotPresent
image.repositoryMongoDB Exporter image namessheehy/mongodb-exporter
image.tagMongoDB Exporter image tag0.10.0
imagePullSecretsList of container registry secrets[]
mongodb.uriThe URI to connect to MongoDB``
nameOverrideOverride the application name``
nodeSelectorNode labels for pod assignment{}
podAnnotationsAnnotations to be added to all pods{}
portThe container port to listen on9216
priorityClassNamePod priority class name``
replicasNumber of replicas in the replica set1
resourcesPod resource requests and limits{}
envExtra environment variables passed to pod{}
securityContextSecurity context for the podSee values.yaml
service.labelsAdditional labels for the service definition{}
service.annotationsAnnotations to be added to the service{}
service.portThe port to expose9216
service.typeThe type of service to exposeClusterIP
serviceAccount.createIf true, create the service accounttrue
serviceAccount.nameName of the service account``
serviceMonitor.enabledSet to true if using the Prometheus Operatortrue
serviceMonitor.intervalInterval at which metrics should be scraped30s
serviceMonitor.scrapeTimeoutInterval at which metric scrapes should time out10s
serviceMonitor.namespaceThe namespace where the Prometheus Operator is deployed``
serviceMonitor.additionalLabelsAdditional labels to add to the ServiceMonitor{}
serviceMonitor.targetLabelsSet of labels to transfer on the Kubernetes Service onto the target.[]
serviceMonitor.metricRelabelingsMetricRelabelConfigs to apply to samples before ingestion.[]
tolerationsList of node taints to tolerate[]