跳转至

Prometheus Blackbox Exporter

Prometheus exporter for blackbox testing

Learn more: https://github.com/prometheus/blackbox_exporter

This chart creates a Blackbox-Exporter deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.8+ with Beta APIs enabled
  • Helm >= 3.0

Get Repository Info

helm repo add prometheus-community https://helm-charts.itboon.top/prometheus-community
helm repo update

See helm repo for command documentation.

Install Chart

helm install [RELEASE_NAME] prometheus-community/prometheus-blackbox-exporter

See configuration below.

See helm install for command documentation.

Uninstall Chart

helm uninstall [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 upgrade [RELEASE_NAME] [CHART] --install

See helm upgrade for command documentation.

To 7.0.0

This version introduces the securityContext and podSecurityContext and removes allowICMPoption.

All previous values are setup as default. In case that you want to enable previous functionality for allowICMP you need to explicit enabled with the following configuration:

securityContext:
  readOnlyRootFilesystem: true
  allowPrivilegeEscalation: false
  capabilities:
    add: ["NET_RAW"]

To 6.0.0

This version introduces the relabeling field for the ServiceMonitor. All values in the list additionalRelabeling will now appear under relabelings instead of metricRelabelings.

To 5.0.0

This version removes Helm 2 support. Also the ingress config has changed, so you have to adapt to the example in the values.yaml.

To 4.0.0

This version create the service account by default and introduce pod security policy, it can be enabled by setting pspEnabled: true.

To 2.0.0

This version removes the podDisruptionBudget.enabled parameter and changes the default value of podDisruptionBudget to {}, in order to fix Helm 3 compatibility.

In order to upgrade, please remove podDisruptionBudget.enabled from your custom values.yaml file and set the content of podDisruptionBudget, for example:

podDisruptionBudget:
  maxUnavailable: 0

To 1.0.0

This version introduce the new recommended labels.

In order to upgrade, delete the Deployment before upgrading:

kubectl delete deployment [RELEASE_NAME]-prometheus-blackbox-exporter

Note that this will cause downtime of the blackbox.

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 show values prometheus-community/prometheus-blackbox-exporter