# Filestats

### Supported Platforms

| Platform | Metrics | Logs | Traces |
| -------- | ------- | ---- | ------ |
| Linux    | ✓       |      |        |
| Windows  | ✓       |      |        |
| macOS    | ✓       |      |        |

### Configuration Table

<table><thead><tr><th width="179.41015625">Parameter</th><th width="122.98046875">Type</th><th width="104.03125">Default</th><th>Description</th></tr></thead><tbody><tr><td>include*</td><td><code>string</code></td><td></td><td>The glob path for files to watch.</td></tr><tr><td>initial_delay</td><td><code>int</code></td><td>1</td><td>The time (seconds) to wait before starting the collection.</td></tr><tr><td>collection_interval</td><td><code>int</code></td><td>60</td><td>How often (seconds) to scrape for metrics.</td></tr><tr><td>metrics</td><td><code>metrics</code></td><td></td><td>Which metrics to collect for the included file(s).</td></tr></tbody></table>

#### Metrics

<table><thead><tr><th width="99.0234375">Name</th><th width="108.8671875">Unit</th><th width="104.484375">Type</th><th width="127.0703125">Monotonic</th><th>Description</th></tr></thead><tbody><tr><td>file.mtime</td><td><code>seconds</code></td><td><code>Sum</code></td><td>false</td><td>Elapsed time since the last modification of the file or folder, in seconds since Epoch.</td></tr><tr><td>file.size</td><td><code>bytes</code></td><td><code>Gauge</code></td><td></td><td>The size of the file or folder, in bytes.</td></tr><tr><td>file.atime</td><td><code>seconds</code></td><td><code>Sum</code></td><td>false</td><td>Elapsed time since last access of the file or folder, in seconds since Epoch.</td></tr><tr><td>file.count</td><td><code>int</code></td><td><code>Gauge</code></td><td></td><td>The number of files matched.</td></tr><tr><td>file.ctime</td><td><code>seconds</code></td><td><code>Sum</code></td><td>false</td><td>Elapsed time since the last change of the file or folder, in seconds since Epoch. In addition to <code>file.mtime</code>, this metric tracks metadata changes such as permissions or renaming the file.</td></tr></tbody></table>

<mark style="color:red;">\*</mark>*<mark style="color:red;">required field</mark>*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bindplane.com/integrations/sources/filestats.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
