- Single-node VM deployment with 200Gi NVMe, 2y retention - Traefik IngressRoute at vm.vultrlabs.dev (TLS + basic auth) - Backfill script: pulls vLLM/DCGM metrics from Mimir, writes to VM - Retain StorageClass so historical data survives PVC deletion - README with deployment + Grafana mixed-datasource instructions
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
##############################################################################
|
|
# Backfill Pod — One-shot job to import historical metrics from Mimir
|
|
#
|
|
# Usage:
|
|
# kubectl create configmap backfill-script \
|
|
# --from-file=backfill.py=backfill.py -n victoriametrics
|
|
# kubectl apply -f backfill-pod.yaml
|
|
# kubectl logs -f backfill -n victoriametrics
|
|
#
|
|
# Cleanup:
|
|
# kubectl delete pod backfill -n victoriametrics
|
|
# kubectl delete configmap backfill-script -n victoriametrics
|
|
##############################################################################
|
|
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: backfill
|
|
namespace: victoriametrics
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: backfill
|
|
image: python:3.12-slim
|
|
command: ["python3", "/scripts/backfill.py"]
|
|
env:
|
|
- name: MIMIR_USERNAME
|
|
value: "vultr_sea_inference"
|
|
- name: MIMIR_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: backfill-credentials
|
|
key: mimir-password
|
|
- name: VM_URL
|
|
value: "http://victoriametrics.victoriametrics.svc.cluster.local:8428"
|
|
- name: START_TS
|
|
value: "1773360000" # 2026-03-13T00:00:00Z
|
|
- name: CHUNK_HOURS
|
|
value: "6"
|
|
volumeMounts:
|
|
- name: script
|
|
mountPath: /scripts
|
|
volumes:
|
|
- name: script
|
|
configMap:
|
|
name: backfill-script
|