Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6338289

Browse files
committed
docs(kb): improve engine metrics doc
1 parent7b1fc8c commit6338289

File tree

1 file changed

+55
-20
lines changed

1 file changed

+55
-20
lines changed

‎_docs/kb/articles/enable-engine-pod-metrics.md‎

Lines changed: 55 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toc: true
77
kb:true
88
ht:false
99
common:false
10-
categories:[Runtimes, CLI]
10+
categories:[Runtimes]
1111
support-reviewed:2023-04-18 LG
1212
---
1313

@@ -18,29 +18,64 @@ If you want to scrape the metrics from the Codefresh Runner to your existing Pro
1818

1919
##Details
2020

21-
You will needtoadd the`METRICS_PROMETHEUS_ENABLED: 'true'` environment variable in your Runtime Environment spec.
21+
###Howtoenable
2222

23-
To make the changes in your Runtime Environment, you will need to usethe[Codefresh CLI.](https://codefresh-io.github.io/cli/installation/)
23+
You will need to add the`METRICS_PROMETHEUS_ENABLED: 'true'` environment variable fortheengine pod.
2424

25-
1. Get your Runtime Environment spec:
25+
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`.
2626

27-
`codefresh get re <name> -o yaml > spec.yaml`
27+
Complete documentation on this and other environment variables available in the engine can be found on[Artifact Hub](https://artifacthub.io/packages/helm/codefresh-runner/cf-runtime?modal=values&path=runtime.engine.env).
2828

29-
2. Modify\add the`envVar` section in`runtimeScheduler` in the downloaded
30-
file:
3129

32-
```yaml
33-
...
34-
runtimeScheduler:
35-
envVars:
36-
METRICS_PROMETHEUS_ENABLED: 'true'
37-
...
38-
cluster:
39-
...
40-
```
30+
###Available metrics
4131

42-
3. Save thefile and then patch your RE usingthe followingCLI command:
32+
Each of themetrics below hasthe followingadditional labels:`account_name`,`docker_node_address`,`pipeline_id`,`repo_branch`,`workflow`
4333

44-
`codefresh patch re -f spec.yaml`
45-
46-
Start a new build and check if you can scrape the metrics using port 9100 at the /metrics endpoint. The metrics in the dind pod should be enabled by default at the same port and endpoint.
34+
*`codefresh_engine_docker_daemon_requests_retries_delay_seconds_total`
35+
<br>Total delay in seconds for retries for requests to Docker daemon
36+
<br>Type: Counter
37+
<br>Labels:`error`
38+
*`codefresh_engine_docker_daemon_requests_retries_total`
39+
<br>Number of retries for requests to Docker daemon
40+
<br>Type: Counter
41+
<br>Labels:`error`
42+
*`codefresh_workflow_composition_duration_seconds`
43+
<br>Composition duration in seconds
44+
<br>Type: Gauge
45+
<br>Labels:`composition_name`,`phase`
46+
*`codefresh_workflow_composition_phase_status`
47+
<br>Composition phase status: 1 for current status, 0 otherwise
48+
<br>Type: Gauge
49+
<br>Labels:`composition_name`,`phase`,`status`
50+
*`codefresh_workflow_composition_status`
51+
<br>Composition status: 1 for current status, 0 otherwise
52+
<br>Type: Gauge
53+
<br>Labels:`composition_name`,`status`
54+
*`codefresh_workflow_duration_seconds`
55+
<br>Workflow duration in seconds
56+
<br>Type: Gauge
57+
<br>Labels:`phase`
58+
*`codefresh_workflow_internal_images_reused`
59+
<br>1 if internal images were reused from cache by workflow, 0 otherwise
60+
<br>Type: Gauge
61+
<br>Labels: —
62+
*`codefresh_workflow_phase_status`
63+
<br>Workflow phase status: 1 for current status, 0 otherwise
64+
<br>Type: Gauge
65+
<br>Labels:`phase`,`status`
66+
*`codefresh_workflow_status`
67+
<br>Workflow status: 1 for current status, 0 otherwise
68+
<br>Type: Gauge
69+
<br>Labels:`status`
70+
*`codefresh_workflow_step_duration_seconds`
71+
<br>Workflow step duration in seconds
72+
<br>Type: Gauge
73+
<br>Labels:`phase`,`step_name`,`step_type`
74+
*`codefresh_workflow_step_status`
75+
<br>Workflow step status: 1 for current status, 0 otherwise
76+
<br>Type: Gauge
77+
<br>Labels:`phase`,`status`,`step_name`,`step_type`
78+
*`codefresh_workflow_volume_reused`
79+
<br>1 if the volume was reused by workflow, 0 otherwise
80+
<br>Type: Gauge
81+
<br>Labels: —

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp