documentation.md 1.9 KB

filestats

Default Metrics

The following metrics are emitted by default. Each of them can be disabled by applying the following configuration:

metrics:
  <metric_name>:
    enabled: false

file.mtime

Elapsed time since the last modification of the file or folder, in seconds since Epoch.

Unit Metric Type Value Type Aggregation Temporality Monotonic
s Sum Int Cumulative false

file.size

The size of the file or folder, in bytes.

Unit Metric Type Value Type
b Gauge Int

Optional Metrics

The following metrics are not emitted by default. Each of them can be enabled by applying the following configuration:

metrics:
  <metric_name>:
    enabled: true

file.atime

Elapsed time since last access of the file or folder, in seconds since Epoch.

Unit Metric Type Value Type Aggregation Temporality Monotonic
s Sum Int Cumulative false

file.ctime

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.

Unit Metric Type Value Type Aggregation Temporality Monotonic
s Sum Int Cumulative false

Attributes

Name Description Values
file.permissions the permissions associated with the file, using an octal format. Any Str

Resource Attributes

Name Description Values Enabled
file.name The name of the file Any Str true
file.path The absolute path of the file Any Str false