Oreon IT Helm charts / blackbox-slo-probes

blackbox-slo-probes Helm chart

Version 0.1.2 · app 0.1.0 · MIT · source · Artifact Hub

Synthetic monitoring that produces SLOs instead of a wall of up/down checks. A list of URLs becomes:

The recording rules use the same metric names as slo-burn-rate-alerts (slo:sli_error:ratio_rate<window>{slo="<target>-availability"} and so on), so the targets also appear in that chart's SLO overview.

Install

You need a blackbox exporter reachable from Prometheus; the simplest is the community chart:

helm install blackbox prometheus-community/prometheus-blackbox-exporter -n monitoring

Then:

helm repo add oreonit https://oreondev.github.io/helm-charts
helm install probes oreonit/blackbox-slo-probes -n monitoring -f probes.yaml

probes.yaml:

blackbox:
  url: blackbox-prometheus-blackbox-exporter.monitoring.svc:9115

probe:
  labels:
    release: kube-prometheus-stack     # whatever your Prometheus probeSelector expects
prometheusRule:
  labels:
    release: kube-prometheus-stack

targets:
  - name: website
    url: https://www.example.com/
    availability:
      objective: 99.9
    latency:
      objective: 99
      threshold: 1.0
  - name: api-health
    url: https://api.example.com/healthz
    availability:
      objective: 99.95
  - name: postgres
    url: db.example.com:5432
    module: tcp_connect

How the SLOs are computed

With a 30-second interval a 99.9 % objective allows about 86 failed probes a month. Pick the objective to match what the page or API promises, not what the probe happens to achieve.

Values

Key Default Description
blackbox.url / scheme / path prometheus-blackbox-exporter.monitoring.svc:9115 / http / /probe Where the exporter is
probe.jobName blackbox-slo job label on the metrics
probe.interval / scrapeTimeout 30s / 10s Probe frequency
probe.module http_2xx Default exporter module
probe.labels {} Prometheus Operator probeSelector labels
sloPeriodDays 30 SLO window
prometheusRule.* enabled, interval: 30s Rules object
dashboard.* enabled Dashboard ConfigMap
alerting.page / ticket workbook windows Burn-rate alert classes
alerting.probeDown critical, 3m Continuous failure alert
alerting.tlsExpiry warning, 14 days Certificate alert
targets[] [] name, url, service, module, labels, availability.objective, latency.{objective,threshold}

Notes

Related reading: SLO and SLI examples. If you would like the targets, objectives and on-call routing set up together, see our observability consulting.

Licence

MIT. Maintained by Oreon IT.

Oreon IT

Maintained by Oreon IT

A London cloud, DevOps and SRE consultancy. If you want this chart rolled out and tuned for your platform, we can help.