Back to Charts

Prometheus Pushgateway

stable/prometheus-pushgateway/README.md

latest9.3 KB
Original Source

Prometheus Pushgateway

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

TL;DR;

console
$ helm install stable/prometheus-pushgateway

Introduction

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

An optional prometheus ServiceMonitor can be enabled, should you wish to use this gateway with a Prometheus Operator.

Installing the Chart

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

console
$ helm install --name my-release stable/prometheus-pushgateway

The command deploys pushgateway 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 pushgateway chart and their default values.

ParameterDescriptionDefault
affinityAffinity settings for pod assignment{}
extraArgsOptional flags for pushgateway[]
extraVarsOptional environment variables for pushgateway[]
image.repositoryImage repositoryprom/pushgateway
image.tagImage tagv1.2.0
image.pullPolicyImage pull policyIfNotPresent
ingress.enabledEnables Ingress for pushgatewayfalse
ingress.annotationsIngress annotations{}
ingress.hostsIngress accepted hostnamesnil
ingress.tlsIngress TLS configuration[]
resourcesCPU/Memory resource requests/limits{}
replicaCountNumber of replicas1
strategyDeployment strategy{ "type": "Recreate" }
service.typeService typeClusterIP
service.portThe service port9091
service.nodePortThe optional service node port when service.type is NodePort``
service.targetPortThe target port of the container9091
serviceAnnotationsAnnotations for the service{}
serviceLabelsLabels for service{}
serviceAccount.createSpecifies whether a service account should be created.true
serviceAccount.nameService account to be used. If not set and serviceAccount.create is true, a name is generated using the fullname template
tolerationsList of node taints to tolerate{}
nodeSelectorNode labels for pod assignment{}
podAnnotationsAnnotations for pod{}
podLabelsLabels for pod{}
serviceAccountLabelsLabels for service account{}
persistentVolumeLabelsLabels for persistent volume{}
serviceMonitor.enabledif true, creates a Prometheus Operator ServiceMonitorfalse
serviceMonitor.namespaceNamespace which Prometheus is running inmonitoring
serviceMonitor.intervalHow frequently to scrape metrics (use by default, falling back to Prometheus' default)nil
serviceMonitor.scrapeTimeoutHow long to scrape metrics before timing out. (use by default, falling back to Prometheus' default)nil
serviceMonitor.additionalLablesUsed to pass Labels that are required by the Installed Prometheus Operator{}
serviceMonitor.honorLabelsif true, label conflicts are resolved by keeping label values from the scraped datatrue
podDisruptionBudgetIf set, create a PodDisruptionBudget with the items in this map set in the spec``
networkPolicy.allowAllAllow connectivity from all pods in the cluster``
networkPolicy.customSelectorsAllow connectivity from pods that match a list of podSelectors and namespaceSelectors``

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=pushgateway  \
    stable/prometheus-pushgateway

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-pushgateway