Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #17402

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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