mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 22:19:39 +02:00
- Replace Prometheus with VictoriaMetrics (2-year retention) - Add DuckDB analytics module for business KPIs (unlimited retention) - Add master overview dashboard combining all metrics - Add business metrics dashboard for user growth tracking - Add backup script for VictoriaMetrics snapshots and DuckDB - Add ADR documentation for monitoring stack decision Analytics API endpoints: - GET /api/v1/analytics/health - Service health - GET /api/v1/analytics/latest - Latest metrics snapshot - GET /api/v1/analytics/growth - User growth over time - GET /api/v1/analytics/monthly - Monthly aggregates - POST /api/v1/analytics/snapshot - Manual snapshot trigger
26 lines
649 B
YAML
26 lines
649 B
YAML
# Grafana Datasource Provisioning
|
|
# Auto-configures VictoriaMetrics as the default datasource
|
|
# VictoriaMetrics is 100% Prometheus-compatible, using same type
|
|
|
|
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: Prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
url: http://victoriametrics:8428
|
|
isDefault: true
|
|
editable: true
|
|
jsonData:
|
|
timeInterval: "15s"
|
|
httpMethod: POST
|
|
|
|
# Business Metrics API (DuckDB via mana-core-auth)
|
|
- name: Business Metrics
|
|
type: yesoreyeram-infinity-datasource
|
|
access: proxy
|
|
url: http://mana-core-auth:3001
|
|
isDefault: false
|
|
editable: true
|
|
jsonData:
|
|
datasource_mode: "basic"
|