Codefresh runner: Enabling engine pod metrics
Overview
If you want to scrape the metrics from the Codefresh Runner to your existing Prometheus\Grafana stack you will need to enable the metrics in the runner engine pod.
Details
How to enable
You will need to add the METRICS_PROMETHEUS_ENABLED: 'true'
environment variable for the engine pod.
To make such a change, you need to change Codefresh Runner Helm chart values. Full path to the entity in question is runtime.engine.env.METRICS_PROMETHEUS_ENABLED
.
Complete documentation on this and other environment variables available in the engine can be found on Artifact Hub.
Available metrics
Each of the metrics below has the following additional labels: account_name
, docker_node_address
, pipeline_id
, repo_branch
, workflow
codefresh_engine_docker_daemon_requests_retries_delay_seconds_total
Total delay in seconds for retry requests to Docker daemon
Type: Counter
Labels:error
codefresh_engine_docker_daemon_requests_retries_total
Total number of retry requests to Docker daemon
Type: Counter
Labels:error
codefresh_workflow_composition_duration_seconds
Composition duration in seconds
Type: Gauge
Labels:composition_name
,phase
codefresh_workflow_composition_phase_status
Composition phase status: 1 for current status, 0 otherwise
Type: Gauge
Labels:composition_name
,phase
,status
codefresh_workflow_composition_status
Composition status: 1 for current status, 0 otherwise
Type: Gauge
Labels:composition_name
,status
codefresh_workflow_duration_seconds
Workflow duration in seconds
Type: Gauge
Labels:phase
codefresh_workflow_internal_images_reused
1 if internal images were reused from cache by workflow, 0 otherwise
Type: Gauge
Labels: —codefresh_workflow_phase_status
Workflow phase status: 1 for current status, 0 otherwise
Type: Gauge
Labels:phase
,status
codefresh_workflow_status
Workflow status: 1 for current status, 0 otherwise
Type: Gauge
Labels:status
codefresh_workflow_step_duration_seconds
Workflow step duration in seconds
Type: Gauge
Labels:phase
,step_name
,step_type
codefresh_workflow_step_status
Workflow step status: 1 for current status, 0 otherwise
Type: Gauge
Labels:phase
,status
,step_name
,step_type
codefresh_workflow_volume_reused
1 if the volume was reused by workflow, 0 otherwise
Type: Gauge
Labels: —