ci / test (push) Successful in 28s
- deploy/compose/infra: Dienst litellm entfernt (D4), Router auf LITELLM_BASE_URL (appsrv08, Port noch offen), alle Images gepinnt, Grafana und pve-exporter ohne Profile, node-exporter für den LXC, Zustand über KNASTER_STATE_DIR - Prometheus: GPU-VMs per file_sd (node, gpu), Proxmox-Knoten per IP, infra-node - Grafana: Datasource und Dashboards provisioniert (grafana.com 10347, 1860, 14574 sowie knaster-Übersicht) - Alertmanager: n8n-Receiver nur vorbereitet (auskommentiert) - Ansible: Rollen infra-stack und gpu-exporters, Playbooks monitoring.yml und monitoring-targets.yml, Skript monitoring-targets.py (tofu output → file_sd) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
1006 B
YAML
27 lines
1006 B
YAML
# file_sd-Ziele der GPU-VMs. Auch einzeln aufrufbar: playbooks/monitoring-targets.yml
|
|
# (nach refresh-vm-access.sh, wenn sich DHCP-Adressen geändert haben). Prometheus liest die Dateien selbst neu.
|
|
- name: file_sd-Ziele aus tofu output erzeugen (auf ops)
|
|
ansible.builtin.shell: |
|
|
set -euo pipefail
|
|
tofu output -json gpu_vms | python3 {{ infra_repo_src }}/platform/proxmox/scripts/monitoring-targets.py \
|
|
--registry {{ infra_repo_src }}/sites/{{ knaster_site }}/registry.yaml --out {{ infra_targets_dir }}
|
|
args:
|
|
chdir: "{{ infra_tofu_dir }}"
|
|
executable: /bin/bash
|
|
delegate_to: localhost
|
|
run_once: true
|
|
changed_when: false
|
|
|
|
- name: file_sd-Verzeichnis
|
|
ansible.builtin.file:
|
|
path: "{{ infra_state_dir }}/file_sd"
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: file_sd-Ziele in den Container kopieren
|
|
ansible.builtin.copy:
|
|
src: "{{ infra_targets_dir }}/{{ item }}.json"
|
|
dest: "{{ infra_state_dir }}/file_sd/{{ item }}.json"
|
|
mode: "0644"
|
|
loop: [node, gpu]
|