Skip to content

[bug][receiver/filestats] doesn't show the full path #32003

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

Closed
josepcorrea opened this issue Mar 27, 2024 · 2 comments
Closed

[bug][receiver/filestats] doesn't show the full path #32003

josepcorrea opened this issue Mar 27, 2024 · 2 comments
Labels
bug Something isn't working needs triage New item requiring triage receiver/filestats

Comments

@josepcorrea
Copy link

Component(s)

receiver/filestats

What happened?

Description

filestatsreceiver doesn't show the full path

The metrics show:

file_size_b{file_name="file.log",file_path="/file.log"} 48

The filepath only show the last path.

Collector version

v0.93.0

Environment information

Environment

OS: Red Hat Enterprise Linux Server release 7.5 (Maipo)

OpenTelemetry Collector configuration

receivers:
 filestats:
   include: /tmp/test/file.log

exporters:
  prometheus:
    endpoint: "0.0.0.0:8085"

  pipelines:
    metrics:
      receivers: [filestats]
      exporters: [prometheus]

Log output

No response

Additional context

No response

@josepcorrea josepcorrea added bug Something isn't working needs triage New item requiring triage labels Mar 27, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@atoulme
Copy link
Contributor

atoulme commented Mar 27, 2024

Dupe for #31738, fixed in 0.97.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage New item requiring triage receiver/filestats
Projects
None yet
Development

No branches or pull requests

2 participants