stackdriver-exporter

by Helm

Helm chartv0.2.0App 0.6.0

A Helm chart for exporting stackdriver metrics to prometheus

About this chart

Stackdriver Exporter

  • Source: https://github.com/frodenas/stackdriver_exporter

Introduction

This chart is for the stackdriver exporter.

Installing the Chart

Install from remote URL with the release name stackdriver-exporter into namespace default:

helm upgrade -i stackdriver-exporter kiwigrid/stackdriver-exporter

Uninstalling the Chart

To uninstall/delete the stackdriver-exporter deployment:

helm delete stackdriver-exporter --purge

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

ParameterDescriptionDefault
image.repositoryimage namefrodenas/stackdriver-exporter
image.tagimage tagv0.6.0
image.pullPolicyImage pull policyIfNotPresent
web.portlisten port9255
web.pathPath under which to expose Prometheus metrics/metrics
gcp.projectIdgcp project id
gcp.serviceAccountNamename of service account for gcp
gcp.keyfileSecretNamename of secret
gcp.metricsTypePrefixeslist of metric prefixes
gcp.metricsIntervalMetric's timestamp interval to request from the Google Stackdriver Monitoring Metrics API. Only the most recent data point is used5m
gcp.metricsOffsetOffset (into the past) for the metric's timestamp interval to request from the Google Stackdriver Monitoring Metrics API, to handle latency in published metrics0s
gcpCredentialsgcp key file base64 encoded has only be set if usingGCPController is false
usingGCPControllerif true the secret will be created via a crd (see Gcp Service Account Controller for more infos)false
resourcesResource limits for pod{}
nodeSelectorNodeSelector{}
tolerationsTolerations[]
affinityAffinity{}
prometheusScrapeSlowEnables prometheus.io/scrape-slow annotationfalse

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

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

helm install --name my-release -f values.yaml kiwigrid/stackdriver-exporter

Tip: You can use the default values.yaml

Deploy stackdriver-exporter with OpenTenant

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