This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/collector/components/contrib/filestatsreceiver.md.

File Stats Receiver

OpenTelemetry Collector receiver · contrib distribution

The File Stats receiver collects metrics from files specified with a glob pattern.

  • Component ID: contrib-filestatsreceiver
  • Name: filestatsreceiver
  • Type: receiver
  • Distribution: contrib
  • Repository: opentelemetry-collector-contrib

Stability

LevelSignals
betametrics

Metrics

MetricTypeValue typeUnitStabilityEnabledAttributesDescription
file.atimesumintsdevelopmentnoElapsed time since last access of the file or folder, in seconds since Epoch.
file.countgaugeint{file}developmentnofile.include (string)The number of files matched
file.ctimesumintsdevelopmentnofile.permissions (string)Elapsed time since the last change of the file or folder, in seconds since Epoch. In addition to file.mtime, this metric tracks metadata changes such as permissions or renaming the file.
file.mtimesumintsdevelopmentyesElapsed time since the last modification of the file or folder, in seconds since Epoch.
file.sizegaugeintbdevelopmentyesThe size of the file or folder, in bytes.

Attributes

AttributeTypeDescription
file.includestringThe glob pattern configured via the include option that produced this count.
file.permissionsstringthe permissions associated with the file, using an octal format.

Data

  • JSON (latest): /data/collector/components/contrib-filestatsreceiver/latest.json
  • JSON (pinned): /data/collector/components/contrib-filestatsreceiver/contrib-filestatsreceiver-55b21d64b3e1.json
  • Explore: /collector/components/contrib/filestatsreceiver