prometheus-redis-exporter

by joaquinito2051

Helm chartv1.0.2App 0.28.0

Prometheus exporter for Redis metrics

About this chart

prometheus-redis-exporter

redis_exporter is a Prometheus exporter for Redis metrics.

TL;DR;

$ helm install <helm-repo>/prometheus-redis-exporter

$ helm install stable/prometheus-redis-exporter

Introduction

This chart bootstraps a redis_exporter 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 my-release <helm-repo>/prometheus-redis-exporter

$ helm install --name my-release stable/prometheus-redis-exporter The command deploys prometheus-redis-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
replicaCountdesired number of prometheus-redis-exporter pods1
image.repositoryprometheus-redis-exporter image repositoryoliver006/redis_exporter
image.tagprometheus-redis-exporter image tagv0.28.0
image.pullPolicyimage pull policyIfNotPresent
extraArgsextra arguments for the binary; possible values here{}
envadditional environment variables in YAML format. Can be used to pass credentials as env variables (via secret) as per the image readme here{}
resourcescpu/memory resource requests/limits{}
service.typedesired service typeClusterIP
service.portservice external port9121
redisAddressaddress of one or more redis nodes, comma separatedredis://myredis:6379
annotationspod annotations for easier discovery{}
rbac.createSpecifies whether RBAC resources should be created.true
rbac.pspEnabledSpecifies whether a PodSecurityPolicy should be created.true
serviceAccount.createSpecifies whether a service account should be created.true
serviceAccount.nameName of the service account.

For more information please refer to the redis_exporter documentation.

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

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release \
  --set "redisAddress=redis://myredis:6379" \
    <helm-repo>/prometheus-redis-exporter
$ helm install --name my-release \

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 <helm-repo>/prometheus-redis-exporter

Deploy prometheus-redis-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-redis-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-redis-exporter is pinned at v1.0.2 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