Skip to content

Commit 15f7396

Browse files
authored
Update README.md (#17402)
This adds the Helm configuration for systemd, which can be made available for customers via a new 'Helm' tab.
1 parent ac8e595 commit 15f7396

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

systemd/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,37 @@ docker run -d -v /var/run/docker.sock:/var/run/docker.sock:ro \
4444
datadog/agent:latest
4545
```
4646

47+
#### Helm
48+
49+
For Helm configurations, you can set up the Datadog Agent to monitor systemd units (such as: `kubelet.service` and `ssh.service`) by defining volume mounts and volumes for accessing systemd-related files and directories within containers. For example:
50+
51+
```bash
52+
datadog:
53+
#(...)
54+
confd:
55+
# Custom config file for SystemD
56+
# Example: https://github.com/DataDog/datadog-agent/blob/main/cmd/agent/dist/conf.d/systemd.d/conf.yaml.example
57+
58+
systemd.yaml: |-
59+
init_config:
60+
instances:
61+
- unit_names:
62+
- kubelet.service
63+
- ssh.service
64+
65+
agents:
66+
# Custom Mounts for SystemD socket (/run/systemd/private)
67+
volumeMounts:
68+
- name: systemd
69+
mountPath: /host/run/systemd/ # the path within the container where the volume will be mounted
70+
71+
volumes:
72+
- name: systemd
73+
hostPath:
74+
path: /run/systemd/ # the path on the host machine that will be mounted into the container.
75+
```
76+
77+
4778
<!-- xxz tab xxx -->
4879
<!-- xxz tabs xxx -->
4980

0 commit comments

Comments
 (0)