Skip to content
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

Textfile: Duplicate filename detected in 0.27.0 #1569

Closed
davideverall opened this issue Aug 13, 2024 · 3 comments · Fixed by #1570
Closed

Textfile: Duplicate filename detected in 0.27.0 #1569

davideverall opened this issue Aug 13, 2024 · 3 comments · Fixed by #1570
Labels

Comments

@davideverall
Copy link

Current Behavior

After upgrading from 0.25.x or 0.26.0 the textfile collector is reporting duplicate filename where there is no duplicate.

Error message:

ts=2024-08-13T08:52:33.522Z caller=textfile.go:325 level=error collector=textfile msg="Duplicate filename detected: \"C:\\\\Program Files\\\\windows_exporter\\\\textfile_inputs\\\\test_textfile_metric.prom\". Skip File."

Verified on:

  • Windows Server 2019 Standard
  • windows_exporter v0.27.0

Expected Behavior

There should be no error as there is no duplicate filename.

Steps To Reproduce

1. Install windows_exporter version 0.27.0 with the textfile collector enabled
2. Create a textfile in `C:\Program Files\windows_exporter\textfile_inputs` with .prom file extension
3. Check application log for errors

Environment

  • windows_exporter Version: 0.27.0
  • Windows Server Version: 2019 Standard

windows_exporter logs

ts=2024-08-13T08:47:28.935Z caller=exporter.go:229 level=info msg="Enabled collectors: system, process, textfile, scheduled_task, logical_disk, physical_disk, net, service, tcp, printer, cpu, cs, os"

ts=2024-08-13T08:52:33.522Z caller=textfile.go:325 level=error collector=textfile msg="Duplicate filename detected: \"C:\\\\Program Files\\\\windows_exporter\\\\textfile_inputs\\\\test_textfile_metric.prom\". Skip File."


### Anything else?

_No response_
@jkroepke
Copy link
Member

@jkroepke
Copy link
Member

Let me know, if 0.27.1 does not solve your issue

@davideverall
Copy link
Author

Thanks @jkroepke

I can confirm that this is fixed in 0.27.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants