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:
33
victoriametrics/04-basic-auth-middleware.yaml
Normal file
33
victoriametrics/04-basic-auth-middleware.yaml
Normal 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
|
||||
Reference in New Issue
Block a user