Add VictoriaMetrics for historical metrics (Mar 13+)

- 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
This commit is contained in:
2026-04-09 19:29:18 +00:00
parent 7ade5ecac8
commit bf6d62b9a8
10 changed files with 690 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
##############################################################################
# Basic Auth Middleware for VictoriaMetrics Traefik IngressRoute
# CHANGE THE PASSWORD BEFORE PRODUCTION USE!
#
# To generate a new htpasswd entry:
# htpasswd -nb <username> <password>
# Then base64 encode it:
# echo -n '<htpasswd-output>' | base64
# Update the secret below with the new value.
##############################################################################
---
apiVersion: v1
kind: Secret
metadata:
name: basic-auth-secret
namespace: victoriametrics
type: Opaque
# Generate with: htpasswd -nb vultr_vm <password> | base64
# See .env for credentials
stringData:
users: |-
vultr_vm:$apr1$ZtK5B1K4$SCWPgREqKwfcrCr4FA6En1
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: basic-auth
namespace: victoriametrics
spec:
basicAuth:
secret: basic-auth-secret