Metrics

Metrics Overview #

The metrics for pipelines-as-code can be accessed through the pipelines-as-code-watcher service on port 9090.

pipelines-as-code supports various exporters, such as Prometheus, Google Stackdriver, and more. You can configure these exporters by referring to the observability configuration.

NameTypeDescription
pipelines_as_code_git_provider_api_request_countCounterNumber of API requests submitted to git providers
pipelines_as_code_pipelinerun_countCounterNumber of pipelineruns created by pipelines-as-code
pipelines_as_code_pipelinerun_duration_seconds_sumCounterNumber of seconds all pipelineruns have taken in pipelines-as-code
pipelines_as_code_running_pipelineruns_countGaugeNumber of running pipelineruns in pipelines-as-code

Note: The metric pipelines_as_code_git_provider_api_request_count is emitted by both the Controller and the Watcher, since both services use Git providers’ APIs. When analyzing this metric, you may need to combine both services’ metrics. For example, using PromQL:

  • sum (pac_controller_pipelines_as_code_git_provider_api_request_count or pac_watcher_pipelines_as_code_git_provider_api_request_count)
  • sum (rate(pac_controller_pipelines_as_code_git_provider_api_request_count[1m]) or rate(pac_watcher_pipelines_as_code_git_provider_api_request_count[1m]))

Prometheus query for git provider API usage metrics combined from both the Watcher and the Controller

Calendar May 6, 2025
Edit Edit this page