Files
Takeshi NakataandGitHub ede3fb5492 [prometheus-to-sd]add optional monitoredResourceTypes (#591)
* add optional monitoredResourceTypes to prometheus-to-sd

Signed-off-by: takeshi.nakata <takeshi.nakata@mixi.co.jp>

* bumpup prometheus-to-sd chart version

Signed-off-by: takeshi.nakata <takeshi.nakata@mixi.co.jp>

* add monitoredResourceTypes and set default value to values.yaml

Signed-off-by: takeshi.nakata <takeshi.nakata@mixi.co.jp>

* bumpup prometheus-to-sd chart version to 0.4.0

Signed-off-by: takeshi.nakata <takeshi.nakata@mixi.co.jp>
2021-01-20 06:42:14 +00:00
..
2020-08-20 07:29:08 -04: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

Prerequisites

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

Get Repo Info

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update

See helm repo for command documentation.

Install Chart

# Helm 3
$ helm install [RELEASE_NAME] prometheus-community/prometheus-to-sd

# Helm 2
$ helm install --name [RELEASE_NAME] prometheus-community/prometheus-to-sd

See configuration below.

See helm install for command documentation.

Uninstall Chart

# Helm 3
$ helm uninstall [RELEASE_NAME]

# Helm 2
# helm delete --purge [RELEASE_NAME]

This removes all the Kubernetes components associated with the chart and deletes the release.

See helm uninstall for command documentation.

Upgrading Chart

# Helm 3 or 2
$ helm upgrade [RELEASE_NAME] [CHART] --install

See helm upgrade for command documentation.

Configuration

See Customizing the Chart Before Installing. To see all configurable options with detailed comments, visit the chart's values.yaml, or run these configuration commands:

# Helm 2
$ helm inspect values prometheus-community/prometheus-to-sd

# Helm 3
$ helm show values prometheus-community/prometheus-to-sd

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

Metrics Sources

Multiple metrics sources can be defined. To configure, set metricsSources value (example: http://kube-state-metrics:8080)