prometheus-pushgateway
A Helm chart for prometheus pushgateway
About this chart
Prometheus Pushgateway
- Installs prometheus pushgateway
TL;DR;
$ helm install <helm-repo>/prometheus-pushgateway
$ 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:
$ helm install --name my-release <helm-repo>/prometheus-pushgateway
$ 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:
$ 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.
| Parameter | Description | Default |
|---|---|---|
affinity | Affinity settings for pod assignment | {} |
extraArgs | Optional flags for pushgateway | [] |
extraVars | Optional environment variables for pushgateway | [] |
image.repository | Image repository | prom/pushgateway |
image.tag | Image tag | v0.8.0 |
image.pullPolicy | Image pull policy | IfNotPresent |
ingress.enabled | Enables Ingress for pushgateway | false |
ingress.annotations | Ingress annotations | {} |
ingress.hosts | Ingress accepted hostnames | nil |
ingress.tls | Ingress TLS configuration | [] |
resources | CPU/Memory resource requests/limits | {} |
replicaCount | Number of replicas | 1 |
service.type | Service type | ClusterIP |
service.port | The service port | 9091 |
service.targetPort | The target port of the container | 9091 |
serviceLabels | Labels for service | {} |
serviceAccount.create | Specifies whether a service account should be created. | true |
serviceAccount.name | Service account to be used. If not set and serviceAccount.create is true, a name is generated using the fullname template | |
tolerations | List of node taints to tolerate | {} |
nodeSelector | Node labels for pod assignment | {} |
podAnnotations | Annotations for pod | {} |
podLabels | Labels for pod | {} |
serviceAccountLabels | Labels for service account | {} |
serviceMonitor.enabled | if true, creates a Prometheus Operator ServiceMonitor (also requires metrics.enabled to be true) | false |
serviceMonitor.namespace | Namespace which Prometheus is running in | monitoring |
serviceMonitor.interval | How frequently to scrape metrics (use by default, falling back to Prometheus' default) | nil |
serviceMonitor.selector | Default to kube-prometheus install (CoreOS recommended), but should be set according to Prometheus install | { prometheus: kube-prometheus } |
serviceMonitor.honorLabels | if true, label conflicts are resolved by keeping label values from the scraped data | true |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release \
--set serviceAccount.name=pushgateway \
<helm-repo>/prometheus-pushgateway
$ helm install --name my-release \
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 <helm-repo>/prometheus-pushgateway
Deploy prometheus-pushgateway with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prometheus-pushgateway on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartprometheus-pushgateway is pinned at v0.4.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply