Back to Charts

Prometheus Postgres Exporter

stable/prometheus-postgres-exporter/README.md

latest5.8 KB
Original Source

Prometheus Postgres Exporter

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

TL;DR;

console
$ helm install stable/prometheus-postgres-exporter

Introduction

This chart bootstraps a prometheus postgres exporter deployment on a Kubernetes cluster using the Helm package manager.

Installing the Chart

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

console
$ helm install --name my-release stable/prometheus-postgres-exporter

The command deploys postgres exporter on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

console
$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the postgres Exporter chart and their default values.

ParameterDescriptionDefault
imageImagewrouesnel/postgres_exporter
imageTagImage tagv0.5.1
imagePullPolicyImage pull policyIfNotPresent
service.annotationsannotations for the service{}
service.typeService typeClusterIP
service.portThe service port80
service.targetPortThe target port of the container9187
service.nameName of the service porthttp
service.labelsLabels to add to the service{}
serviceMonitor.enabledUse servicemonitor from prometheus operatorfalse
serviceMonitor.namespaceNamespace thes Servicemonitor is installed in
serviceMonitor.intervalHow frequently Prometheus should scrape
serviceMonitor.telemetryPathpath to cloudwatch-exporter telemtery-path
serviceMonitor.labelslabels for the ServiceMonitor passed to Prometheus Operator{}
serviceMonitor.timeoutTimeout after which the scrape is ended
resources{}
config.datasourcePostgresql datasource configurationsee values.yaml
config.datasourceSecretPostgresql datasource configuration from secretsee values.yaml
config.queriesSQL queries that the exporter will runpostgres exporter defaults
config.disableDefaultMetricsSpecifies whether to use only metrics from queries.yamlfalse
config.autoDiscoverDatabasesSpecifies whether to autodiscover all databasesfalse
config.excludeDatabasesWhen autodiscover is enabled, list databases to exclude[]
rbac.createSpecifies whether RBAC resources should be created.true
rbac.pspEnabledSpecifies whether a PodSecurityPolicy should be created.true
serviceAccount.createSpecifies whether a service account should be created.true
serviceAccount.nameName of the service account.
tolerationsAdd tolerations[]
nodeSelectornode labels for pod assignment{}
affinitynode/pod affinities{}
annotationsDeployment annotations{}
podLabelsAdditional labels to add to each pod{}
extraContainersAdditional sidecar containers""
extraVolumesAdditional volumes for use in extraContainers""
securityContextSecurity options the pod should run with. More info{}

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

console
$ helm install --name my-release \
  --set serviceAccount.name=postgres  \
    stable/prometheus-postgres-exporter

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

console
$ helm install --name my-release -f values.yaml stable/prometheus-postgres-exporter