Skip to content

Commit add6035

Browse files
formatting plus now supported on windows
1 parent 0b759f1 commit add6035

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

content/integrations/directory.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
title: Directory check
33
integration_title: Directory Check
44
kind: integration
5+
newhlevel: true
56
---
6-
### Overview
7+
# Overview
78
{: #int-overview}
89

910
Capture metrics from the files in given directories:
@@ -20,13 +21,12 @@ From the Agent:
2021
* [Directory check configuration example][2]
2122

2223

23-
### Configuration
24+
# Configuration
2425
{:#int-configuration}
2526
*To capture Directory metrics you need to install the Datadog Agent.*
2627

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.
3030

3131
init_config:
3232

@@ -44,28 +44,23 @@ From the Agent:
4444
name: "tag_name"
4545
pattern: "*.log"
4646
recursive: True
47-
{:.language-yaml}
47+
{:.language-yaml}
4848

49-
4. Restart the Agent
49+
4. Restart the Agent
5050

51-
sudo /etc/init.d/datadog-agent restart
52-
{:.language-console}
51+
# Validation
5352

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:
5554

56-
sudo /etc/init.d/datadog-agent info
55+
Checks
56+
======
5757

58-
6. Verify that the check has passed. The output of the command should contain a section similar to the following:
58+
[...]
5959

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
6964

7065

7166
[1]: https://github.com/DataDog/dd-agent/blob/master/checks.d/directory.py

0 commit comments

Comments
 (0)