prometheus/discovery/file
Matt Harbison 02277bbe0d Fix path handling in File-SD watcher to allow directory monitoring on Windows
Previously, `d.paths` were normalized to backslashes on Windows, even when if
the config file used Unix style.  The end result meant always watching `./`, so
changes for this config were always ignored:

    scrape_configs:
      - job_name: 'envmsc1'
        file_sd_configs:
        - files:
          - 'targets/envmsc1.d/*.yml'
          - 'targets/envmsc1.d/*.yaml'

Additionally, unlike the other platforms, no warning was emitted on startup
about not being able to install the watch if the directory didn't exist.  Now it
is logged.

Signed-off-by: Matt Harbison <mharbison@atto.com>
2023-06-23 16:37:04 -04:00
..
fixtures fixes yamllint errors 2021-06-12 12:47:47 +02:00
file.go Fix path handling in File-SD watcher to allow directory monitoring on Windows 2023-06-23 16:37:04 -04:00
file_test.go Fix incorrect use of loop variable in parallel test (#11205) 2022-08-25 12:23:29 +02:00