- health and administration endpoints for the current state
- Prometheus for metrics, trends, and alerts
- Grafana for dashboards and investigation
- structured audit records for request-level history
- OpenTelemetry and Tempo for distributed traces
Prometheus scrapes the router, and Loki receives the router’s audit or application logs through the log pipeline. Tempo can receive spans from both the router and agents.None of these services needs to scrape an agent’s HTTP API directly, but agents need network access to the configured OTLP endpoint when agent tracing is enabled.
Choose the right view
Current router health
The public liveness endpoint is:- total registered agents
- healthy agents
- the current length of the router’s global request channel
- individual agent health
Current routing state
Use:- tags and hardware metadata
- request and token history
- SRTT and RTTVAR
- GPU, CPU, and memory data
- KV-cache and engine-queue state
Metrics and alerts
The router exposes Prometheus metrics at:2112 by default.
- registered and healthy agents
- routed and failed requests
- primary, fallback, and exhausted policy steps
- agent capacity and request history
- GPU, CPU, and memory state
- inference-engine cache and queues
- TTFT, ITL, and request-shape histograms
- tenant requests, tokens, quotas, and latency
- router and provider HTTP traffic
Grafana dashboards
The repository’s Docker Compose stack provisions Grafana with data sources for:- Prometheus
- Loki
- Tempo
- router and agent operations
- tenant quotas and usage
- structured audit records
3000 in the default Compose deployment:
- routing outcomes
- agent health
- hardware pressure
- backend queues
- token use
- quota failures
- request latency
- audit events
Audit records
Hivenet Router writes one structured JSON record after each audited HTTP request. The default path is:- request and trace IDs
- tenant and dynamic key IDs
- requested model
- status and error code
- request latency
- input and output tokens
- selected agent or fallback provider
- source IP
Distributed tracing
Hivenet Router can export OpenTelemetry traces through OTLP. The Compose stack uses Tempo as the trace backend:- router processing
- agent communication
- inference
- provider fallback
- other instrumented operations
Agent and backend signals
Hivenet Router agents send two broad categories of operational data.Universal agent data
This can apply to any backend:- health
- active requests
- declared capacity
- successful and failed requests
- token counts
- disconnections
- capacity rejections
- SRTT and RTTVAR
Backend-specific data
Supported engines can also report:- KV-cache utilization
- running and waiting requests
- preemptions
- TTFT and ITL
- request-size histograms
- finish reasons
- token throughput
Hardware signals
When available, agents report:- NVIDIA GPU utilization
- VRAM use
- GPU temperature
- GPU power
- host CPU use
- host memory use and availability
Latency signals
Hivenet Router exposes several latency views that answer different questions.
Do not treat these values as interchangeable.
For example, SRTT excludes client-to-router latency, while an audit duration covers the router’s full handling of that request.
See Latency tracking for the SRTT and RTTVAR calculation and interpretation.
Observability and routing
Some operational metrics can also act as routing-policy gates. Hivenet Router can exclude agents based on values such as:- capacity utilization
- success rate
- SRTT
- KV-cache utilization
- engine queue depth
- TTFT and ITL
- GPU temperature
- GPU and VRAM utilization
- CPU and system-memory use
- dashboards and alerts tell operators when to investigate
- policy gates decide whether an agent should receive one request
Missing and stale data
A missing metric does not necessarily mean zero. It may mean:- the backend does not support the metric
- backend metrics are disabled
- no request has produced an observation
- NVML is unavailable
- an agent has not sent its first snapshot
- a scrape has failed
- agent heartbeat freshness
- agent logs
- the backend metrics endpoint
- the administration routing table
- the Prometheus series
- recent audit records and traces
Persistence and restarts
Not every observability value has the same persistence behavior.
Use a persistent agent identity with:
Recommended setup
1
Protect the administration and metrics surfaces
Enable administrator authentication and restrict ports
2112, 3000, 3100, 3200, and 9090 to trusted networks or operators.2
Scrape Prometheus metrics
Configure Prometheus to scrape the router’s metrics endpoint.
3
Open the provisioned dashboards
Confirm that Grafana can query Prometheus, Loki, and Tempo.
4
Verify audit ingestion
Send a test request and find its JSON record in the audit file and Loki.
5
Test trace correlation
Find a traced request by its request ID or trace ID and open it in Tempo.
6
Add alerts from observed baselines
Establish normal behavior before defining production thresholds for health, failures, latency, temperature, cache pressure, or quotas.
Production checklist
Before relying on the observability stack in production:- protect every operational endpoint
- change default Grafana credentials
- use persistent storage where history must survive restarts
- define Prometheus, Loki, Tempo, and local-log retention
- monitor the observability services themselves
- keep agent identities and metadata stable
- restrict access to tenant and audit information
- test dashboards and alerts during a controlled failure
- document which signals are authoritative for each incident type
Explore the observability guides
Prometheus metrics
Scrape, query, aggregate, and alert on router, agent, tenant, and backend metrics.
Grafana dashboards
Use the provisioned router, tenant, audit, and trace views.
Audit logging
Search structured request records through JSONL files and Loki.
Hardware metrics
Inspect GPU, CPU, memory, temperature, and power data.
Engine metrics
Monitor cache, backend queues, latency, request shape, and throughput.
Latency tracking
Understand SRTT, RTTVAR, TTFT, ITL, and request-duration boundaries.
Hardware-aware routing
Turn selected operational signals into routing gates and fallback tiers.

