missing-container-metrics

by draganm

Helm chartv0.1.1App 0.21.0

A Helm chart for installing missing-container-metrics exporter

About this chart

Missing Container Metrics - metrics cadvisor won't give you

This chart will install a daemon set that will expose container metrics such as container_ooms that are not available otherwise.

Introduction

For motivation and implementation details please refer to blog post introducing the missing-container-metrics

TL;DR;

$ helm repo add missing-container-metrics https://draganm.github.io/missing-container-metrics
$ helm install missing-container-metrics missing-container-metrics/missing-container-metrics

Adding Helm repo to your Helm client

$ helm repo add missing-container-metrics https://draganm.github.io/missing-container-metrics

Installing the Chart

$ kubectl create namespace missing-container-metrics
$ helm install my-release-name missing-container-metrics/missing-container-metrics -n missing-container-metrics

Configuration

ParameterDescriptionDefault
image.repositorymissing-container-metrics image namedmilhdef/missing-container-metrics
image.pullPolicypull policy for the imageIfNotPresent
image.tagtag of the missing-container-metrics imagev0.21.0
imagePullSecretspull secrets for the image[]
nameOverrideOverride the generated chart name. Defaults to .Chart.Name.
fullnameOverrideOverride the generated release name. Defaults to .Release.Name.
podAnnotationsAnnotations for the started pods{"prometheus.io/scrape": "true", "prometheus.io/port": "3001"}
podSecurityContextSet the security context for the pods
securityContextSet the security context for the container in the pods
resourcesCPU/memory resource requests/limits{}
useDockerIf true, container info is obtained from Dockerfalse
useContainerdIf true, container info is obtained from Containerdtrue

Deploy missing-container-metrics with OpenTenant

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