The File Stats receiver collects metrics from files specified with a glob pattern.
| Status | |
|---|---|
| Stability | beta: metrics |
| Distributions | contrib |
| Issues | |
| Code coverage | |
| Code Owners | @atoulme | Seeking more code owners! |
Note: This receiver was renamed from
filestatstofile_statsto match the snake_case naming convention. The deprecated component typefilestatsis still accepted as an alias and will log a deprecation warning.
include(required): The glob path for files to watchcollection_interval(default =1m): The interval at which metrics are emitted by this receiver.initial_delay(default =1s): defines how long this receiver waits before starting.
receivers:
file_stats:
include: /tmp/files/*
collection_interval: 10s
initial_delay: 1s
See documentation.md for a list of the metrics collected.