Files
2020-09-04 23:19:52 -07:00

5.8 KiB

Prometheus Postgres Exporter

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

TL;DR;

$ 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:

$ 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:

$ 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.

Parameter Description Default
image Image wrouesnel/postgres_exporter
imageTag Image tag v0.5.1
imagePullPolicy Image pull policy IfNotPresent
service.annotations annotations for the service {}
service.type Service type ClusterIP
service.port The service port 80
service.targetPort The target port of the container 9187
service.name Name of the service port http
service.labels Labels to add to the service {}
serviceMonitor.enabled Use servicemonitor from prometheus operator false
serviceMonitor.namespace Namespace thes Servicemonitor is installed in
serviceMonitor.interval How frequently Prometheus should scrape
serviceMonitor.telemetryPath path to cloudwatch-exporter telemtery-path
serviceMonitor.labels labels for the ServiceMonitor passed to Prometheus Operator {}
serviceMonitor.timeout Timeout after which the scrape is ended
resources {}
config.datasource Postgresql datasource configuration see values.yaml
config.datasourceSecret Postgresql datasource configuration from secret see values.yaml
config.queries SQL queries that the exporter will run postgres exporter defaults
config.disableDefaultMetrics Specifies whether to use only metrics from queries.yaml false
config.autoDiscoverDatabases Specifies whether to autodiscover all databases false
config.excludeDatabases When autodiscover is enabled, list databases to exclude []
rbac.create Specifies whether RBAC resources should be created. true
rbac.pspEnabled Specifies whether a PodSecurityPolicy should be created. true
serviceAccount.create Specifies whether a service account should be created. true
serviceAccount.name Name of the service account.
tolerations Add tolerations []
nodeSelector node labels for pod assignment {}
affinity node/pod affinities {}
annotations Deployment annotations {}
podLabels Additional labels to add to each pod {}
extraContainers Additional sidecar containers ""
extraVolumes Additional volumes for use in extraContainers ""
securityContext Security options the pod should run with. More info {}

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

$ 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,

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