Skip to content

Add file count metric to filestats receiver #24651

@cxhiggins

Description

@cxhiggins

Component(s)

receiver/filestats

Is your feature request related to a problem? Please describe.

I use OpenTelemetry in a deployment which saves all coredumps to a specific folder, and want to export a metric describing the number of cores dumped. This would allow us to enable alerting when processes crash.

Describe the solution you'd like

Ideally the filestats receiver would implement a file.count metric, or something similar, which tracks the number of files which match the specified include parameter.

Unit Metric Type Value Type
1 Gauge Int

Describe alternatives you've considered

I tried using hostmetricsreceiver with a root_path set to our coredump directory, but unfortunately all instances of this receiver must share the same root_path and our other use of the receiver took priority.

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions