prometheus

by Helm

Helm chartv0.2.1

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.

ParameterDescriptionDefault
alertingEndpointsAlertmanagers to which alerts will be sent[]
configPrometheus configuration directives{}
externalUrlExternal URL at which Prometheus will be reachable""
image.repositoryImagequay.io/prometheus/prometheus
image.tagImage tagv1.5.2
ingress.enabledIf true, Prometheus Ingress will be createdfalse
ingress.annotationsAnnotations for Prometheus Ingress`{}
ingress.fqdnPrometheus Ingress fully-qualified domain name""
ingress.tlsTLS configuration for Prometheus Ingress[]
nodeSelectorNode labels for pod assignment{}
pausedIf true, the Operator won't process any Prometheus configuration changesfalse
replicaCountNumber of Prometheus replicas desired1
resourcesPod resource requests & limits{}
retentionHow long to retain metrics24h
routePrefixPrefix used to register routes, overriding externalUrl route/
rulesPrometheus alerting & recording rules{}
service.annotationsAnnotations to be added to the Prometheus Service{}
service.clusterIPCluster-internal IP address for Prometheus Service""
service.externalIPsList of external IP addresses at which the Prometheus Service will be available[]
service.loadBalancerIPExternal IP address to assign to Prometheus Service""
service.loadBalancerSourceRangesList of client IPs allowed to access Prometheus Service[]
service.nodePortPort to expose Prometheus Service on each node30900
service.typePrometheus Service typeClusterIP
serviceMonitorsServiceMonitor third-party resources to create & be scraped by this Prometheus instance[]
storageSpecPrometheus 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartprometheus is pinned at v0.2.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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