PDC agent metrics
Grafana Cloud

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 nameTypeDescriptionLabels
pdc_agent_signing_requests_duration_secondsNative histogramDuration of signing requests in secondsstatus
pdc_agent_ssh_restarts_totalCounterTotal number of SSH restartsexit_code
pdc_agent_ssh_open_channelsGaugeNumber of open SSH channelsnone
pdc_agent_tcp_connections_totalCounterNumber of opened TCP connectionstarget, status
pdc_agent_ssh_time_to_connect_secondsNative histogramTime spent to establish SSH connectionnone

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.