
Metrics Endpoints
Prometheus metrics exposure.
GET /metrics
Local agent Prometheus metrics.
Response: Prometheus text format
# HELP muti_metroo_peers_connected Currently connected peers
# TYPE muti_metroo_peers_connected gauge
muti_metroo_peers_connected 3
# HELP muti_metroo_streams_active Currently active streams
# TYPE muti_metroo_streams_active gauge
muti_metroo_streams_active 42
...
GET /metrics/{agent-id}
Fetch Prometheus metrics from remote agent.
Parameters:
agent-id: Target agent ID
Response: Prometheus text format from remote agent
Example:
curl http://localhost:8080/metrics/abc123def456
This fetches metrics from agent abc123def456 via the control channel.
Available Metrics
See Prometheus Metrics for complete list.
Key Metrics
muti_metroo_peers_connected: Connected peersmuti_metroo_streams_active: Active streamsmuti_metroo_routes_total: Routes in tablemuti_metroo_bytes_sent_total: Bytes sentmuti_metroo_bytes_received_total: Bytes receivedmuti_metroo_socks5_connections_active: Active SOCKS5 connectionsmuti_metroo_exit_connections_active: Active exit connections
Scraping Configuration
Prometheus scrape config:
scrape_configs:
- job_name: 'muti-metroo'
static_configs:
- targets:
- 'agent1:8080'
- 'agent2:8080'
- 'agent3:8080'