Hindsight-LXC: Gate (E14) nachgezogen – Image 0abbca1, keys.json per Ansible, Jobs über 8889, Blackbox-Probe auf /health
nex-hindsight main (0abbca1, 22.10.) stellt ein Gate vor Port 8888: HINDSIGHT_API_URL für die
Jobs im LXC auf 127.0.0.1:8889, GATE_KEYS_DIR, keys.json (nur Hashes) aus ops
/root/.config/knaster/hindsight-gate-keys.json oder einmalig {}. Freigabeliste um Laptop-WLAN und
die k3s-Knoten (NEX-Pods, SNAT) ergänzt. /metrics liegt hinter dem Gate, deshalb Blackbox-Exporter
im Infra-Stack und Alert HindsightDown auf probe_success. Rulings 10–12 im Auftrag, BETRIEB §16.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit was merged in pull request #2.
This commit is contained in:
@@ -52,10 +52,10 @@ groups:
|
||||
- name: knaster-hindsight
|
||||
rules:
|
||||
- alert: HindsightDown
|
||||
expr: up{job="hindsight"} == 0
|
||||
expr: probe_success{job="hindsight"} == 0 or up{job="hindsight"} == 0
|
||||
for: 5m
|
||||
labels: {severity: warning}
|
||||
annotations: {summary: "Hindsight-API (LXC hindsight, 192.168.100.185:8888) antwortet nicht"}
|
||||
annotations: {summary: "Hindsight-Gate (LXC hindsight, 192.168.100.185:8888/health) antwortet nicht"}
|
||||
|
||||
# k3s (Task 6.5): nur melden, der Healer greift nicht ein (config/healer-rules.yaml, Aktion notify)
|
||||
- name: knaster-k3s
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Blackbox-Exporter (Infra-Stack, Dienst blackbox): HTTP-Prüfungen für Dienste ohne /metrics oder hinter einem
|
||||
# Gate (Hindsight). Prometheus ruft /probe?module=http_2xx&target=<url> auf (prometheus.yml, Job hindsight).
|
||||
modules:
|
||||
http_2xx:
|
||||
prober: http
|
||||
timeout: 10s
|
||||
http:
|
||||
preferred_ip_protocol: ip4
|
||||
valid_status_codes: [] # 2xx
|
||||
follow_redirects: false
|
||||
@@ -45,13 +45,18 @@ scrape_configs:
|
||||
- job_name: node
|
||||
file_sd_configs: [{files: [/etc/knaster-sd/node.json]}]
|
||||
|
||||
# Hindsight-API im LXC hindsight (feste Adresse aus sites/knaster/proxmox.yaml). Liefert der Dienst kein
|
||||
# /metrics, bleibt nur `up` für den Alert HindsightDown; dann Blackbox-Exporter nachrüsten.
|
||||
# Hindsight im LXC hindsight (feste Adresse aus sites/knaster/proxmox.yaml): vor der API steht das Gate
|
||||
# (nex-hindsight E14), das ohne Schlüssel nur /health beantwortet. Deshalb kein /metrics-Scrape, sondern der
|
||||
# Blackbox-Exporter (Modul http_2xx, blackbox.yml) auf /health; Alert HindsightDown auf probe_success.
|
||||
- job_name: hindsight
|
||||
metrics_path: /metrics
|
||||
metrics_path: /probe
|
||||
params: {module: [http_2xx]}
|
||||
static_configs:
|
||||
- targets: ["192.168.100.185:8888"]
|
||||
- targets: ["http://192.168.100.185:8888/health"]
|
||||
labels: {instance: hindsight, pve_node: pve52, vmid: "102"}
|
||||
relabel_configs:
|
||||
- {source_labels: [__address__], target_label: __param_target}
|
||||
- {target_label: __address__, replacement: "blackbox:9115"}
|
||||
|
||||
# node_exporter im LXC infra selbst (Host-Netz des LXC)
|
||||
- job_name: infra-node
|
||||
|
||||
Reference in New Issue
Block a user