You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using Jenkins workers, you can corralate pipelines with the infrastructure that is running them. For this feature to work:
147
+
148
+
1. Install the [Datadog Agent][1] in every Jenkins worker.
149
+
2. Set and export a new environment variable called `DD_CI_HOSTNAME` in every Jenkins worker with the worker hostname.
150
+
* It must be the same hostname that the Datadog Agent is reporting in the infrastructure metrics for that worker.
151
+
* You can use fixed values or other environment variables as valid values.
152
+
153
+
```bash
154
+
# Using fixed value
155
+
export DD_CI_HOSTNAME=my-hostname
156
+
157
+
# Using other environment variable
158
+
export DD_CI_HOSTNAME=$HOSTNAME
159
+
```
160
+
161
+
This is only required for Jenkins workers. For the Jenkins controller, the infrastructure metric correlation does not require additional actions.
162
+
163
+
**Note**: Infrastructure metric correlation is supported since Jenkins Plugin v5.0.0+
164
+
145
165
## Enable job log collection
146
166
147
167
This is an optional step that enables the collection of job logs. It involves two steps: enabling the job collection port on the Datadog Agent, and enabling job collection on the Datadog Plugin.
0 commit comments