prometheus-cachethq

by oxyno-zeta

Helm chartv1.1.1App 1.0.0Verified publisher

A Helm chart for Kubernetes to deploy Prometheus-CachetHQ

About this chart

prometheus-cachethq

prometheus-cachethq is a Prometheus Alertmanager webhook to CachetHQ.

TL;DR;

$ helm repo add oxynozeta-stable https://oxyno-zeta.github.io/helm-charts-v2/
$ helm install oxynozeta-stable/prometheus-cachethq

Introduction

This chart bootstraps a prometheus-cachethq 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 oxynozeta-stable/prometheus-cachethq --name my-release

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

ParameterDescriptionDefault
replicaCountDesired number of pods1
image.repositoryContainer image name (Including repository name if not hub.docker.com).oxynozeta/prometheus-cachethq
image.pullPolicyContainer pull policy.IfNotPresent
image.tagContainer image tag.1.0.0
imagePullSecretsImage pull secrets[]
nameOverrideName override""
fullnameOverrideFullname override""
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.nameService account name created if create is true or service account name to be linked. If empty and create at true, this will be generated.""
podSecurityContextPod security context{}
securityContextSecurity context{}
service.annotationsAnnotations to add to service{}
service.clusterIPIP address to assign to service""
service.externalIPsService external IP addresses[]
service.loadBalancerIPIP address to assign to load balancer (if supported)""
service.loadBalancerSourceRangesList of IP CIDRs allowed access to load balancer (if supported)[]
service.portService port to expose80
service.typeType of service to createClusterIP
ingress.enabledEnables Ingressfalse
ingress.annotationsIngress annotations{}
ingress.hostsIngress accepted hostnames[]
ingress.tlsIngress TLS configuration[]
configPrometheus-CachetHQ configurationExample of configuration
resourcesCPU/Memory resource requests/limits.{}
nodeSelectorNode labels for pod assignment{}
tolerationsList of node taints to tolerate (requires Kubernetes >= 1.6)[]
affinityList of affinities (requires Kubernetes >=1.6){}
livenessProbeLiveness probe settings for logstash container(see values.yaml)
readinessProbeReadiness probe settings for logstash container(see values.yaml)
prometheus.serviceMonitor.enabledIf true, a ServiceMonitor CRD is created for a prometheus operatorfalse
prometheus.serviceMonitor.namespaceIf set, the ServiceMonitor will be installed in a different namespace""
prometheus.serviceMonitor.labelsLabels for prometheus operator{}
prometheus.serviceMonitor.intervalInterval at which metrics should be scraped""
prometheus.serviceMonitor.scrapeTimeoutTimeout after which the scrape is ended""
prometheus.serviceMonitor.schemeScheme to use for scrapinghttp
prometheus.serviceMonitor.metricRelabelingsMetric relabelings[]
prometheus.serviceMonitor.relabelingsRelabelings[]
podAnnotationsAdditional annotations to apply to the pod.{}
podDisruptionBudget.enabledIf true, create a pod disruption budget for prometheus pods. The created resource cannot be modified once created - it must be deleted to perform a changefalse
podDisruptionBudget.minAvailableMinimum number / percentage of pods that should remain scheduled1
podDisruptionBudget.maxUnavailableMaximum number / percentage of pods that may be made unavailable""

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

$ helm install oxynozeta-stable/prometheus-cachethq --name my-release --set=image.tag="XXXXXXX"

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install oxynozeta-stable/prometheus-cachethq --name my-release -f values.yaml

Tip: You can use the default values.yaml

Deploy prometheus-cachethq with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prometheus-cachethq 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-cachethq is pinned at v1.1.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