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
$ helm install stable/prometheus-to-sd- a service exposing metrics in prometheus format
- k8s cluster should run on GCE or GKE
To install the chart with the release name my-release:
$ helm install --name my-release stable/prometheus-to-sdThe command deploys prometheus-to-sd on the Kubernetes cluster in the default configuration.
To uninstall/delete the my-release deployment:
$ helm delete my-releaseThe command removes all the Kubernetes components associated with the chart and deletes the release.
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-sdAlternatively, 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-sdMultiple metrics sources can be defined.