ping
by lbenicio
Blackbox exporter for probing endpoints
About this chart
ping
A Helm chart for the Prometheus Blackbox Exporter, which probes endpoints over HTTP, HTTPS, DNS, TCP, and ICMP.
TL;DR
helm repo add lbenicio-community https://helm.lbenicio.dev/
helm install my-release lbenicio-community/ping
Introduction
This chart deploys the Prometheus Blackbox Exporter, a probe-based monitoring tool that allows Prometheus to monitor external endpoints through blackbox probing. It ships with pre-configured modules for HTTP, HTTPS, TCP, SSH, POP3S, IRC, and ICMP probing.
Prerequisites
- Kubernetes 1.19+
- Helm 3.x+
Installing the Chart
helm install my-release lbenicio-community/ping --namespace default
Parameters
| Key | Type | Default | Description |
|---|---|---|---|
image.repository | string | prom/blackbox-exporter | Container image repository |
image.tag | string | "" | Image tag (defaults to Chart.appVersion) |
image.pullPolicy | string | IfNotPresent | Image pull policy |
replicaCount | int | 1 | Number of replicas |
args | list | ["--config.file=/config/blackbox.yml"] | Container arguments |
service.type | string | ClusterIP | Service type |
service.port | int | 9115 | Service port |
config.create | bool | true | Create the ConfigMap for blackbox.yml |
config.blackboxYml | string | (see values.yaml) | Blackbox exporter module configuration |
resources.requests.cpu | string | 100m | CPU request |
resources.requests.memory | string | 128Mi | Memory request |
resources.limits.cpu | string | 250m | CPU limit |
resources.limits.memory | string | 256Mi | Memory limit |
keel.enabled | bool | true | Enable Keel auto-update annotations |
keel.policy | string | minor | Keel update policy |
keel.trigger | string | poll | Keel trigger type |
keel.pollSchedule | string | @every 24h | Keel poll schedule |
keel.matchTag | string | true | Keel match tag pattern |
containerSecurityContext.readOnlyRootFilesystem | bool | true | Mount root filesystem as read-only |
containerSecurityContext.runAsNonRoot | bool | true | Run container as non-root user |
containerSecurityContext.runAsUser | int | 65534 | User ID to run the container |
Configuration
blackbox.yml
The chart creates a ConfigMap from config.blackboxYml. Override it to customize the probing modules:
config:
blackboxYml: |-
modules:
http_2xx:
prober: http
timeout: 5s
http:
valid_http_versions: ["HTTP/1.1", "HTTP/2.0"]
preferred_ip_protocol: "ip4"
tcp_connect:
prober: tcp
timeout: 5s
icmp:
prober: icmp
Refer to the Blackbox Exporter configuration docs for all available modules and options.
License
This chart is licensed under GPLv3.
Made with ❤️ by lbenicio
Deploy ping with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ping 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartping is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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