PDC agent metrics
The PDC agent exposes Prometheus-compatible metrics for monitoring and alerting. By default, these metrics are available at http://<agent-host>:8090/metrics
. You can change the metrics port using the metrics-addr
flag. Example: --metrics-addr=":9100"
Available metrics
The metrics include counters, gauges, and native histograms that provide insight into the agent’s behavior, including:
- SSH connection count and duration
- TCP connection counts
- Signing request latency
- Restart counts with exit codes
The following metrics are currently supported:
Metric name | Type | Description | Labels |
---|---|---|---|
pdc_agent_signing_requests_duration_seconds | Native histogram | Duration of signing requests in seconds | status |
pdc_agent_ssh_restarts_total | Counter | Total number of SSH restarts | exit_code |
pdc_agent_ssh_open_channels | Gauge | Number of open SSH channels | none |
pdc_agent_tcp_connections_total | Counter | Number of opened TCP connections | target , status |
pdc_agent_ssh_time_to_connect_seconds | Native histogram | Time spent to establish SSH connection | none |
Use cases
Use cases include the following:
- Use the
exit_code
label on restart metrics to investigate failure causes. - Track signing request durations using histograms for SLO reporting.