Skip to content

Sensitive case #19

@csphoenix1

Description

@csphoenix1

Hello :)

When using the yaml configuration, the exporter don't find my paths, whereas in CLI arguments, it's okey.

Yaml File

multi-paths:
  /volume1/data/Personnal/: 1
  /volume1/data/Programs/: 1
  /volume1/public/: 1

With the Yaml configuration file, I have "no such file or directory"

./disk_usage_exporter_linux_amd64 -c disk_usage_exporter.yaml
Using config file: disk_usage_exporter.yaml
INFO[0000] Disk Usage Prometheus Exporter v0.6.0        build date: Wed Feb 28 11:06:29 PM CET 2024     sha1: 738d351f1a1bf886cec89cb095b9ee6bce1a81f8  Go: go1.22.0    GOOS: linux     GOARCH: amd64 
INFO[0000] Providing metrics at http://0.0.0.0:9995/metrics 
INFO[0003] open /volume1/data/programs: no such file or directory 
INFO[0003] open /volume1/data/personnal: no such file or directory 
INFO[0003] Analysis done                                

With the arguments, it's ok

./disk_usage_exporter_linux_amd64 --multi-paths /volume1/data/Personnal/=1
INFO[0000] Disk Usage Prometheus Exporter v0.6.0        build date: Wed Feb 28 11:06:29 PM CET 2024     sha1: 738d351f1a1bf886cec89cb095b9ee6bce1a81f8  Go: go1.22.0    GOOS: linux     GOARCH: amd64 
INFO[0000] Providing metrics at http://0.0.0.0:9995/metrics 
INFO[0023] setting GC percent to 88, alloc: 192364688, free: 170987520 
INFO[0024] disabling GC, alloc: 56896720, free: 138162176 
INFO[0039] setting GC percent to 96, alloc: 118349792, free: 114573312 
INFO[0040] disabling GC, alloc: 56173960, free: 105881600 
INFO[0051] Analysis done                                

I presume the Yaml key was set cast to lowercase ?

Thank you :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions