Hanzo Metrics is a fast, cost-effective time-series database for monitoring AI infrastructure.
Category: Hanzo Ecosystem Related Skills: hanzo/hanzo-logs.md, hanzo/hanzo-o11y.md, hanzo/hanzo-universe.md
Hanzo Metrics is a fast, cost-effective time-series database for monitoring AI infrastructure. Fork of VictoriaMetrics. Written in Go. Supports PromQL and MetricsQL queries, multiple ingestion protocols, and both single-node and cluster deployment modes. Drop-in Prometheus replacement with 10x better compression and lower memory footprint.
github.com/VictoriaMetrics/VictoriaMetrics (upstream module path, not yet rebranded)Fork of github.com/VictoriaMetrics/VictoriaMetrics. Repo: hanzoai/metrics.
| Item | Value | |------|-------| | Repo | github.com/hanzoai/metrics | | Language | Go | | Go Module | github.com/VictoriaMetrics/VictoriaMetrics | | Code branch | master (main branch has only README stub) | | Default port | 8428 (single-node HTTP) | | License | Apache-2.0 |
IMPORTANT: The actual code lives on the master branch. The main branch contains only a README placeholder.
Built from app/:
| Binary | Purpose | |--------|---------| | victoria-metrics | All-in-one single-node server |
| Binary | Purpose | |--------|---------| | vminsert | Write path -- ingestion proxy | | vmselect | Read path -- query proxy | | vmstorage | Storage node |
| Binary | Purpose | |--------|---------| | vmagent | Metrics scraping and forwarding agent | | vmalert | Alerting and recording rules evaluation | | vmalert-tool | Alert testing and validation CLI | | vmauth | Authentication proxy and load balancer | | vmbackup | Backup tool | | vmbackupmanager | Automated backup management | | vmctl | Data migration tool | | vmrestore | Restore from backup | | vmgateway | Rate limiting and access control gateway | | vmui | Web UI for querying and exploration |
| Binary | Purpose | |--------|---------| | victoria-logs | Log aggregation engine | | vlagent | Log shipping agent | | vlinsert | Log ingestion | | vlselect | Log querying | | vlstorage | Log storage | | vlogscli | Log query CLI | | vlogsgenerator | Log data generator for testing |
# Build all
go build ./...
# Run tests
go test ./...
# Using Makefile
make victoria-metrics # Build single-node
make vminsert vmselect vmstorage # Build cluster components
# Docker (single-node)
docker run -p 8428:8428 hanzo/metrics
# From source
go build ./app/victoria-metrics
./victoria-metrics
app/ # Application binaries
victoria-metrics/ # Single-node server
vminsert/ # Cluster write proxy
vmselect/ # Cluster read proxy
vmstorage/ # Cluster storage
vmagent/ # Scraping agent
vmalert/ # Alerting engine
vmauth/ # Auth proxy
vmbackup/ # Backup
vmrestore/ # Restore
vmctl/ # Migration tool
vmgateway/ # Rate limiting gateway
vmui/ # Web UI
victoria-logs/ # Bundled log engine
apptest/ # Application-level tests
benchmarks/ # Performance benchmarks
dashboards/ # Grafana dashboards
deployment/ # Deployment configs
docs/ # Documentation
lib/ # Core libraries
package/ # Packaging scripts
ports/ # Protocol-specific port handlers
vendor/ # Go vendor directory
Hanzo Metrics accepts data via multiple protocols:
One binary handles ingestion, storage, and querying. Suitable for up to millions of active time series.
Horizontally scalable with separate vminsert, vmselect, and vmstorage components. Add nodes to scale independently.
| Issue | Cause | Solution | |-------|-------|----------| | Code on main branch is empty | Actual code on master | Use master branch | | High memory usage | Too many active time series | Check cardinality, use stream aggregation | | Slow queries | Large time range or high cardinality | Use MetricsQL optimizations, add vmselect nodes |
hanzo/hanzo-logs.md - Log aggregation (Loki fork)hanzo/hanzo-o11y.md - Observability overviewhanzo/hanzo-universe.md - Production K8s infrastructureLast Updated: 2026-03-13 Category: Hanzo Ecosystem Related: metrics, monitoring, prometheus, victoriametrics, grafana, time-series Prerequisites: Go, storage backend