Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions systemd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,37 @@ docker run -d -v /var/run/docker.sock:/var/run/docker.sock:ro \
datadog/agent:latest
```

#### Helm

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:

```bash
datadog:
#(...)
confd:
# Custom config file for SystemD
# Example: https://github.com/DataDog/datadog-agent/blob/main/cmd/agent/dist/conf.d/systemd.d/conf.yaml.example

systemd.yaml: |-
init_config:
instances:
- unit_names:
- kubelet.service
- ssh.service

agents:
# Custom Mounts for SystemD socket (/run/systemd/private)
volumeMounts:
- name: systemd
mountPath: /host/run/systemd/ # the path within the container where the volume will be mounted

volumes:
- name: systemd
hostPath:
path: /run/systemd/ # the path on the host machine that will be mounted into the container.
```


<!-- xxz tab xxx -->
<!-- xxz tabs xxx -->

Expand Down