File tree Expand file tree Collapse file tree 1 file changed +16
-21
lines changed Expand file tree Collapse file tree 1 file changed +16
-21
lines changed Original file line number Diff line number Diff line change 2
2
title : Directory check
3
3
integration_title : Directory Check
4
4
kind : integration
5
+ newhlevel : true
5
6
---
6
- ### Overview
7
+ # Overview
7
8
{: #int-overview}
8
9
9
10
Capture metrics from the files in given directories:
@@ -20,13 +21,12 @@ From the Agent:
20
21
* [ Directory check configuration example] [ 2 ]
21
22
22
23
23
- ### Configuration
24
+ # Configuration
24
25
{:#int-configuration}
25
26
* To capture Directory metrics you need to install the Datadog Agent.*
26
27
27
- 1 . The Directory check ** is not currently supported on Windows systems** .
28
- 2 . Ensure the user account running the Agent (typically ` dd-agent ` ) has read access to the monitored directory and files.
29
- 3 . Configure the Agent to connect to your directories. Edit ` /etc/dd-agent/conf.d/directory.yaml `
28
+ 2 . Ensure the user account running the Agent (typically ` dd-agent ` ) has read access to the monitored directory and files.
29
+ 3 . Configure the Agent to connect to your directories. Edit ` directory.yaml ` in your ` conf.d ` directory.
30
30
31
31
init_config:
32
32
@@ -44,28 +44,23 @@ From the Agent:
44
44
name: "tag_name"
45
45
pattern: "*.log"
46
46
recursive: True
47
- {:.language-yaml}
47
+ {:.language-yaml}
48
48
49
- 4 . Restart the Agent
49
+ 4 . Restart the Agent
50
50
51
- sudo /etc/init.d/datadog-agent restart
52
- {:.language-console}
51
+ # Validation
53
52
54
- 5 . Execute the info command
53
+ To validate that the check has passed run the agent info command. The output of the command should contain a section similar to the following:
55
54
56
- sudo /etc/init.d/datadog-agent info
55
+ Checks
56
+ ======
57
57
58
- 6 . Verify that the check has passed. The output of the command should contain a section similar to the following:
58
+ [...]
59
59
60
- Checks
61
- ======
62
-
63
- [...]
64
-
65
- directory
66
- ---------
67
- - instance #0 [OK]
68
- - Collected 8 metrics & 0 events
60
+ directory
61
+ ---------
62
+ - instance #0 [OK]
63
+ - Collected 8 metrics & 0 events
69
64
70
65
71
66
[ 1 ] : https://github.com/DataDog/dd-agent/blob/master/checks.d/directory.py
You can’t perform that action at this time.
0 commit comments