-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add directory attribute in file.count metric (filestats receiver) #36274
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
The file path should be present as a resource attribute. The filestatsreceiver doesn't set the Please see this file for what the receiver generates: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/filestatsreceiver/testdata/integration/expected.yaml |
Thanks @atoulme : Is there a way to display the path directory? The attributes host_name and os_type are added with processing resourcedetection component like this: resourcedetection/system: |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
receiver/filestats
Is your feature request related to a problem? Please describe.
when you want to count the files in a directory, the metric does not show the directory name, so you cannot distinguish different receivers.
Only one metric is generated, so you cannot distinguish between the two:
Describe the solution you'd like
Add the directory attribute to be able to distinguish the different file_count metrics:
In this way the metrics of both directories can be distinguished.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: