prometheus
by Helm
Prometheus instance created by the CoreOS Prometheus Operator
About this chart
prometheus
Installs a Prometheus instance using the CoreOS prometheus-operator.
TL;DR;
$ helm install opsgoodness/prometheus
Introduction
This chart bootstraps a Prometheus deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.4+ with Beta APIs & ThirdPartyResources enabled
Installing the Chart
To install the chart with the release name my-release:
$ helm install opsgoodness/prometheus --name my-release
The command deploys Prometheus 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 tables lists the configurable parameters of the prometheus chart and their default values.
| Parameter | Description | Default |
|---|---|---|
alertingEndpoints | Alertmanagers to which alerts will be sent | [] |
config | Prometheus configuration directives | {} |
externalUrl | External URL at which Prometheus will be reachable | "" |
image.repository | Image | quay.io/prometheus/prometheus |
image.tag | Image tag | v1.5.2 |
ingress.enabled | If true, Prometheus Ingress will be created | false |
ingress.annotations | Annotations for Prometheus Ingress` | {} |
ingress.fqdn | Prometheus Ingress fully-qualified domain name | "" |
ingress.tls | TLS configuration for Prometheus Ingress | [] |
nodeSelector | Node labels for pod assignment | {} |
paused | If true, the Operator won't process any Prometheus configuration changes | false |
replicaCount | Number of Prometheus replicas desired | 1 |
resources | Pod resource requests & limits | {} |
retention | How long to retain metrics | 24h |
routePrefix | Prefix used to register routes, overriding externalUrl route | / |
rules | Prometheus alerting & recording rules | {} |
service.annotations | Annotations to be added to the Prometheus Service | {} |
service.clusterIP | Cluster-internal IP address for Prometheus Service | "" |
service.externalIPs | List of external IP addresses at which the Prometheus Service will be available | [] |
service.loadBalancerIP | External IP address to assign to Prometheus Service | "" |
service.loadBalancerSourceRanges | List of client IPs allowed to access Prometheus Service | [] |
service.nodePort | Port to expose Prometheus Service on each node | 30900 |
service.type | Prometheus Service type | ClusterIP |
serviceMonitors | ServiceMonitor third-party resources to create & be scraped by this Prometheus instance | [] |
storageSpec | Prometheus StorageSpec for persistent data | {} |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
$ helm install opsgoodness/prometheus --name my-release --set externalUrl=http://prometheus.example.com
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
```console
$ helm install opsgoodness/prometheus --name my-release -f values.yaml
Tip: You can use the default values.yaml
Third-party Resource Documentation
Deploy prometheus with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prometheus 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 is pinned at v0.2.1 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