prometheus

by joaquinito2051

Helm chartv6.2.1App 2.2.1

Prometheus is a monitoring system and time series database.

About this chart

Introduction

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

Configuration

The following table lists the configurable parameters of the Prometheus chart and their default values.

ParameterDescriptionDefault
alertmanager.enabledIf true, create alertmanagertrue
alertmanager.namealertmanager container namealertmanager
alertmanager.image.repositoryalertmanager container image repositoryprom/alertmanager
alertmanager.image.tagalertmanager container image tagv0.13.0
alertmanager.image.pullPolicyalertmanager container image pull policyIfNotPresent
alertmanager.prefixURLThe prefix slug at which the server can be accessed``
alertmanager.baseURLThe external url at which the server can be accessed/
alertmanager.extraArgsAdditional alertmanager container arguments{}
alertmanager.configMapOverrideNamePrometheus alertmanager ConfigMap override where full-name is {{.Release.Name}}-{{.Values.alertmanager.configMapOverrideName}} and setting this value will prevent the default alertmanager ConfigMap from being generated""
alertmanager.ingress.enabledIf true, alertmanager Ingress will be createdfalse
alertmanager.ingress.annotationsalertmanager Ingress annotations{}
alertmanager.ingress.hostsalertmanager Ingress hostnames[]
alertmanager.ingress.tlsalertmanager Ingress TLS configuration (YAML)[]
alertmanager.nodeSelectornode labels for alertmanager pod assignment{}
alertmanager.tolerationsnode taints to tolerate (requires Kubernetes >=1.6)[]
alertmanager.persistentVolume.enabledIf true, alertmanager will create a Persistent Volume Claimtrue
alertmanager.persistentVolume.accessModesalertmanager data Persistent Volume access modes[ReadWriteOnce]
alertmanager.persistentVolume.annotationsAnnotations for alertmanager Persistent Volume Claim{}
alertmanager.persistentVolume.existingClaimalertmanager data Persistent Volume existing claim name""
alertmanager.persistentVolume.mountPathalertmanager data Persistent Volume mount root path/data
alertmanager.persistentVolume.sizealertmanager data Persistent Volume size2Gi
alertmanager.persistentVolume.storageClassalertmanager data Persistent Volume Storage Classunset
alertmanager.persistentVolume.subPathSubdirectory of alertmanager data Persistent Volume to mount""
alertmanager.podAnnotationsannotations to be added to alertmanager pods{}
alertmanager.replicaCountdesired number of alertmanager pods1
alertmanager.resourcesalertmanager pod resource requests & limits{}
alertmanager.service.annotationsannotations for alertmanager service{}
alertmanager.service.clusterIPinternal alertmanager cluster service IP""
alertmanager.service.externalIPsalertmanager service external IP addresses[]
alertmanager.service.loadBalancerIPIP address to assign to load balancer (if supported)""
alertmanager.service.loadBalancerSourceRangeslist of IP CIDRs allowed access to load balancer (if supported)[]
alertmanager.service.servicePortalertmanager service port80
alertmanager.service.typetype of alertmanager service to createClusterIP
alertmanagerFiles.alertmanager.ymlPrometheus alertmanager configurationexample configuration
configmapReload.nameconfigmap-reload container nameconfigmap-reload
configmapReload.image.repositoryconfigmap-reload container image repositoryjimmidyson/configmap-reload
configmapReload.image.tagconfigmap-reload container image tagv0.1
configmapReload.image.pullPolicyconfigmap-reload container image pull policyIfNotPresent
configmapReload.extraArgsAdditional configmap-reload container arguments{}
configmapReload.extraConfigmapMountsAdditional configmap-reload configMap mounts[]
configmapReload.resourcesconfigmap-reload pod resource requests & limits{}
initChownData.enabledIf false, don't reset data ownership at startuptrue
initChownData.nameinit-chown-data container nameinit-chown-data
initChownData.image.repositoryinit-chown-data container image repositorybusybox
initChownData.image.taginit-chown-data container image taglatest
initChownData.image.pullPolicyinit-chown-data container image pull policyIfNotPresent
initChownData.resourcesinit-chown-data pod resource requests & limits{}
kubeStateMetrics.enabledIf true, create kube-state-metricstrue
kubeStateMetrics.namekube-state-metrics container namekube-state-metrics
kubeStateMetrics.image.repositorykube-state-metrics container image repositoryk8s.gcr.io/kube-state-metrics
kubeStateMetrics.image.tagkube-state-metrics container image tagv1.1.0
kubeStateMetrics.image.pullPolicykube-state-metrics container image pull policyIfNotPresent
kubeStateMetrics.argskube-state-metrics container arguments{}
kubeStateMetrics.nodeSelectornode labels for kube-state-metrics pod assignment{}
kubeStateMetrics.podAnnotationsannotations to be added to kube-state-metrics pods{}
kubeStateMetrics.tolerationsnode taints to tolerate (requires Kubernetes >=1.6)[]
kubeStateMetrics.replicaCountdesired number of kube-state-metrics pods1
kubeStateMetrics.resourceskube-state-metrics resource requests and limits (YAML){}
kubeStateMetrics.service.annotationsannotations for kube-state-metrics service{prometheus.io/scrape: "true"}
kubeStateMetrics.service.clusterIPinternal kube-state-metrics cluster service IPNone
kubeStateMetrics.service.externalIPskube-state-metrics service external IP addresses[]
kubeStateMetrics.service.loadBalancerIPIP address to assign to load balancer (if supported)""
kubeStateMetrics.service.loadBalancerSourceRangeslist of IP CIDRs allowed access to load balancer (if supported)[]
kubeStateMetrics.service.servicePortkube-state-metrics service port80
kubeStateMetrics.service.typetype of kube-state-metrics service to createClusterIP
nodeExporter.enabledIf true, create node-exportertrue
nodeExporter.namenode-exporter container namenode-exporter
nodeExporter.image.repositorynode-exporter container image repositoryprom/node-exporter
nodeExporter.image.tagnode-exporter container image tagv0.15.2
nodeExporter.image.pullPolicynode-exporter container image pull policyIfNotPresent
nodeExporter.extraArgsAdditional node-exporter container arguments{}
nodeExporter.extraHostPathMountsAdditional node-exporter hostPath mounts[]
nodeExporter.extraConfigmapMountsAdditional node-exporter configMap mounts[]
nodeExporter.nodeSelectornode labels for node-exporter pod assignment{}
nodeExporter.podAnnotationsannotations to be added to node-exporter pods{}
nodeExporter.tolerationsnode taints to tolerate (requires Kubernetes >=1.6)[]
nodeExporter.resourcesnode-exporter resource requests and limits (YAML){}
nodeExporter.securityContextsecurityContext for containers in pod{}
nodeExporter.service.annotationsannotations for node-exporter service{prometheus.io/scrape: "true"}
nodeExporter.service.clusterIPinternal node-exporter cluster service IPNone
nodeExporter.service.externalIPsnode-exporter service external IP addresses[]
nodeExporter.service.loadBalancerIPIP address to assign to load balancer (if supported)""
nodeExporter.service.loadBalancerSourceRangeslist of IP CIDRs allowed access to load balancer (if supported)[]
nodeExporter.service.servicePortnode-exporter service port9100
nodeExporter.service.typetype of node-exporter service to createClusterIP
pushgateway.enabledIf true, create pushgatewaytrue
pushgateway.namepushgateway container namepushgateway
pushgateway.image.repositorypushgateway container image repositoryprom/pushgateway
pushgateway.image.tagpushgateway container image tagv0.4.0
pushgateway.image.pullPolicypushgateway container image pull policyIfNotPresent
pushgateway.extraArgsAdditional pushgateway container arguments{}
pushgateway.ingress.enabledIf true, pushgateway Ingress will be createdfalse
pushgateway.ingress.annotationspushgateway Ingress annotations{}
pushgateway.ingress.hostspushgateway Ingress hostnames[]
pushgateway.ingress.tlspushgateway Ingress TLS configuration (YAML)[]
pushgateway.nodeSelectornode labels for pushgateway pod assignment{}
pushgateway.podAnnotationsannotations to be added to pushgateway pods{}
pushgateway.tolerationsnode taints to tolerate (requires Kubernetes >=1.6)[]
pushgateway.replicaCountdesired number of pushgateway pods1
pushgateway.resourcespushgateway pod resource requests & limits{}
pushgateway.service.annotationsannotations for pushgateway service{}
pushgateway.service.clusterIPinternal pushgateway cluster service IP""
pushgateway.service.externalIPspushgateway service external IP addresses[]
pushgateway.service.loadBalancerIPIP address to assign to load balancer (if supported)""
pushgateway.service.loadBalancerSourceRangeslist of IP CIDRs allowed access to load balancer (if supported)[]
pushgateway.service.servicePortpushgateway service port9091
pushgateway.service.typetype of pushgateway service to createClusterIP
rbac.createIf true, create & use RBAC resourcestrue
server.namePrometheus server container nameserver
server.image.repositoryPrometheus server container image repositoryprom/prometheus
server.image.tagPrometheus server container image tagv2.1.0
server.image.pullPolicyPrometheus server container image pull policyIfNotPresent
server.extraArgsAdditional Prometheus server container arguments{}
server.prefixURLThe prefix slug at which the server can be accessed``
server.baseURLThe external url at which the server can be accessed``
server.extraHostPathMountsAdditional Prometheus server hostPath mounts[]
server.extraConfigmapMountsAdditional Prometheus server configMap mounts[]
server.extraSecretMountsAdditional Prometheus server Secret mounts[]
server.configMapOverrideNamePrometheus server ConfigMap override where full-name is {{.Release.Name}}-{{.Values.server.configMapOverrideName}} and setting this value will prevent the default server ConfigMap from being generated""
server.ingress.enabledIf true, Prometheus server Ingress will be createdfalse
server.ingress.annotationsPrometheus server Ingress annotations[]
server.ingress.hostsPrometheus server Ingress hostnames[]
server.ingress.tlsPrometheus server Ingress TLS configuration (YAML)[]
server.nodeSelectornode labels for Prometheus server pod assignment{}
server.tolerationsnode taints to tolerate (requires Kubernetes >=1.6)[]
server.persistentVolume.enabledIf true, Prometheus server will create a Persistent Volume Claimtrue
server.persistentVolume.accessModesPrometheus server data Persistent Volume access modes[ReadWriteOnce]
server.persistentVolume.annotationsPrometheus server data Persistent Volume annotations{}
server.persistentVolume.existingClaimPrometheus server data Persistent Volume existing claim name""
server.persistentVolume.mountPathPrometheus server data Persistent Volume mount root path/data
server.persistentVolume.sizePrometheus server data Persistent Volume size8Gi
server.persistentVolume.storageClassPrometheus server data Persistent Volume Storage Classunset
server.persistentVolume.subPathSubdirectory of Prometheus server data Persistent Volume to mount""
server.podAnnotationsannotations to be added to Prometheus server pods{}
server.replicaCountdesired number of Prometheus server pods1
server.resourcesPrometheus server resource requests and limits{}
server.service.annotationsannotations for Prometheus server service{}
server.service.clusterIPinternal Prometheus server cluster service IP""
server.service.externalIPsPrometheus server service external IP addresses[]
server.service.loadBalancerIPIP address to assign to load balancer (if supported)""
server.service.loadBalancerSourceRangeslist of IP CIDRs allowed access to load balancer (if supported)[]
server.service.nodePortPort to be used as the service NodePort (ignored if server.service.type is not NodePort)0
server.service.servicePortPrometheus server service port80
server.service.typetype of Prometheus server service to createClusterIP
serviceAccounts.alertmanager.createIf true, create the alertmanager service accounttrue
serviceAccounts.alertmanager.namename of the alertmanager service account to use or create{{ prometheus.alertmanager.fullname }}
serviceAccounts.kubeStateMetrics.createIf true, create the kubeStateMetrics service accounttrue
serviceAccounts.kubeStateMetrics.namename of the kubeStateMetrics service account to use or create{{ prometheus.kubeStateMetrics.fullname }}
serviceAccounts.nodeExporter.createIf true, create the nodeExporter service accounttrue
serviceAccounts.nodeExporter.namename of the nodeExporter service account to use or create`{{ prometheus.nodeExporter.fu

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 v6.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