prometheus-container-resource-exporter

by Helm

Helm chartv0.3.1App 0.2.1

Prometheus metrics exporter for container resources

About this chart

prometheus-container-resource-exporter

prometheus-container-resource-exporter is a Prometheus format exporter for Container's resource metrics.

TL;DR;

$ helm repo add gkarthiks https://gkarthiks.github.io/helm-charts
$ helm install --name container-resource-exporter gkarthiks/prometheus-container-resource-exporter

Introduction

This chart bootstraps a Container Resource Exporter (CRE) deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.8+ with Beta APIs enabled

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name container-resource-exporter gkarthiks/prometheus-container-resource-exporter

The command deploys prometheus-container-resource-exporter on the Kubernetes cluster in the default configuration.

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 and their default values.

ParameterDescriptionDefault
runScope.localRunning the CRE in namespaced scopetrue
runScope.clusterRunning the CRE in cluster scopefalse
replicaCountdesired number of prometheus-couchdb-exporter pods1
image.repositoryprometheus-couchdb-exporter image repositorygesellix/couchdb-prometheus-exporter
image.tagprometheus-couchdb-exporter image tag22
image.pullPolicyimage pull policyIfNotPresent
serviceAccount.createCreates the service account for CRE podtrue
serviceAccount.nameName of the service account to be createdtrue
service.typedesired service typeClusterIP
service.portservice external port9984
ingress.enabledenable ingress controller resourcefalse
ingress.annotationsannotations for the host's ingress recordsfalse
ingress.pathpath for the ingress route/
ingress.hostslist of host address for ingress creation
ingress.tlsutilize TLS backend in ingress
resourcescpu/memory resource requests/limits{}
nodeSelectornode labels for pod assignment{}
tolerationstolerations for pod assignment{}
affinityaffinity settings for proxy pod assignments{}
podAnnotationsannotations to add to each pod{}
couchdb.uriaddress of the couchdbhttp://couchdb.default.svc:5984
couchdb.databasescomma separated databases to monitor_all_dbs

For more information please refer to the CRE documentation.

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

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

$ helm install --name my-release -f values.yaml gkarthiks/prometheus-container-resource-exporter

Deploy prometheus-container-resource-exporter with OpenTenant

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