Files
deprecated-helm-charts/stable/prometheus-to-sd
acondrat 4e33fc6c26 Adding prometheus-to-sd chart (#2363)
* Adding prometheus-to-sd chart

* Updated description

* #1785 namespace defined templates with chart name

* updating Chart.yaml

* aligned the parameters table

* do not limit resources by default and allow the user adjust as needed

* Making the linter happy

* use {{ .Release.Name }} for resource naming

* Revert "use {{ .Release.Name }} for resource naming"

This reverts commit 518ad934b66ec2f39218615539d8fb41bb8e23d5.

* fullname to match .Release.Name

* updated apiVersion for deployment resource

* github username

* Adding nodeSelector default value and docs
2017-11-24 11:20:17 +01:00
..

prometheus-to-sd

prometheus-to-sd is a simple component that can scrape metrics stored in prometheus text format from one or multiple components and push them to the Stackdriver

TL;DR;

$ helm install stable/prometheus-to-sd

Prerequisites

  • a service exposing metrics in prometheus format
  • k8s cluster should run on GCE or GKE

Installing the Chart

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

$ helm install --name my-release stable/prometheus-to-sd

The command deploys prometheus-to-sd 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 tables lists the configurable parameters and their default values.

Parameter Description Default
image.repository prometheus-to-sd image repository gcr.io/google-containers/prometheus-to-sd
image.tag prometheus-to-sd image tag v0.2.2
image.pullPolicy Image pull policy IfNotPresent
resources CPU/Memory resource requests/limits {}
port Profiler port 6060
metricSources Sources for metrics in the next format: component-name:http://host:port?whitelisted=a,b,c {}
nodeSelector node labels for pod assignment {}

For more information please refer to the prometheus-to-sd documentation.

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

$ helm install --name my-release \
  --set "metricsSources.kube-state-metrics=http://kube-state-metrics:8080" \
    stable/prometheus-to-sd

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 stable/prometheus-to-sd

Multiple metrics sources can be defined.