-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
containermetadata: make default pattern more restrictive (#39)
the default pattern would match systemd service names which only contain letter a-f (see added test which fails with the current code) this commit extracts the container regex pattern used by the datadog-agent, and uses it as a default pattern. this makes the pattern more restrictive, avoiding the addition of an incorrect container_id tags for some systemd services
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
13:devices:/system.slice/dd.taskapi.service | ||
12:pids:/system.slice/dd.taskapi.service | ||
11:cpu,cpuacct:/system.slice/dd.taskapi.service | ||
10:cpuset:/ | ||
9:memory:/system.slice/dd.taskapi.service | ||
8:rdma:/ | ||
7:freezer:/ | ||
6:misc:/ | ||
5:hugetlb:/ | ||
4:blkio:/system.slice/dd.taskapi.service | ||
3:perf_event:/ | ||
2:net_cls,net_prio:/ | ||
1:name=systemd:/system.slice/dd.taskapi.service | ||
0::/system.slice/dd.taskapi.service |