Skip to main content

Filestats Receiver

Status Available in: contrib Maintainers: @atoulme Source: opentelemetry-collector-contrib

Supported Telemetry

Metrics

Overview

Configuration

  • include (required): The glob path for files to watch
  • collection_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.

Example

receivers:
  filestats:
    include: /tmp/files/*
    collection_interval: 10s
    initial_delay: 1s
See documentation.md for a list of the metrics collected.

Metrics

Metric NameDescriptionUnitTypeAttributes
file.atimeElapsed time since last access of the file or folder, in seconds since Epoch.sUpDownCounter
file.countThe number of files matched{file}Gauge
file.ctimeElapsed 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.sUpDownCounterfile.permissions
file.mtimeElapsed time since the last modification of the file or folder, in seconds since Epoch.sUpDownCounter
file.sizeThe size of the file or folder, in bytes.bGauge

Attributes

Attribute NameDescriptionTypeValues
file.permissionsthe permissions associated with the file, using an octal format.string

Resource Attributes

Attribute NameDescriptionTypeEnabled
file.nameThe name of the filestring
file.pathThe absolute path of the filestring

Last generated: 2026-04-13