mirror of
https://github.com/auricom/home-cluster.git
synced 2025-10-03 01:00:54 +02:00
![github-actions[bot]](/assets/img/avatar_default.png)
Signed-off-by: GitHub <noreply@github.com> Co-authored-by: auricom <auricom@users.noreply.github.com>
73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
---
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: blackbox-exporter
|
|
namespace: monitoring
|
|
spec:
|
|
interval: 5m
|
|
chart:
|
|
spec:
|
|
# renovate: registryUrl=https://prometheus-community.github.io/helm-charts
|
|
chart: prometheus-blackbox-exporter
|
|
version: 4.10.1
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: prometheus-community-charts
|
|
namespace: flux-system
|
|
interval: 5m
|
|
values:
|
|
ingress:
|
|
enabled: true
|
|
annotations:
|
|
kubernetes.io/ingress.class: "nginx"
|
|
allowIcmp: true
|
|
config:
|
|
modules:
|
|
icmp:
|
|
prober: icmp
|
|
timeout: 30s
|
|
icmp:
|
|
preferred_ip_protocol: "ip4"
|
|
http_2xx:
|
|
prober: http
|
|
timeout: 30s
|
|
http:
|
|
valid_http_versions: ["HTTP/1.0", "HTTP/1.1", "HTTP/2.0"]
|
|
no_follow_redirects: false
|
|
preferred_ip_protocol: "ip4"
|
|
tcp_connect:
|
|
prober: tcp
|
|
timeout: 30s
|
|
serviceMonitor:
|
|
enabled: true
|
|
defaults:
|
|
labels:
|
|
release: prometheus
|
|
interval: 2m
|
|
scrapeTimeout: 30s
|
|
prometheusRule:
|
|
enabled: true
|
|
additionalLabels:
|
|
app: prometheus-operator
|
|
release: prometheus
|
|
rules:
|
|
- alert: HostDown
|
|
expr: probe_success == 0
|
|
for: 10m
|
|
labels:
|
|
severity: critical
|
|
annotations:
|
|
message: The host {{"{{ $labels.target }}"}} is currently unreachable
|
|
- alert: SlowResponseTime
|
|
annotations:
|
|
message: The response time for {{"{{ $labels.target }}"}} has been greater than 30 seconds for 5 minutes.
|
|
expr: probe_duration_seconds > 30
|
|
for: 15m
|
|
labels:
|
|
severity: warning
|
|
valuesFrom:
|
|
- kind: ConfigMap
|
|
name: "helmrelease-monitoring-blackbox-exporter"
|
|
optional: false
|