prometheus-community / windows_exporter

Prometheus exporter for Windows machines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can read custom files TEXTFILE_DIRS="C:\custom_metrics\"

morshaq opened this issue · comments

I'm encountering an issue with the Prometheus Windows Exporter where metrics aren't being scraped despite configuring the exporter with specific collectors and providing custom metric files.

Here's the command I'm using to install and configure the exporter:

msiexec /i C:\Users\Administrator\Downloads\windows_exporter.msi ENABLED_COLLECTORS="ad,iis,logon,memory,process,tcp,textfile,thermalzone" TEXTFILE_DIRS="C:\custom_metrics"
I've also tried specifying the full path to the custom metric file like so:

C:\custom_metrics\custom.txt
However, even after adding files to the specified directory and ensuring their accessibility, none of the metrics are appearing in the Prometheus scraping.

Could you please assist me in resolving this issue and ensuring that the Prometheus Windows Exporter correctly scrapes the specified metrics?

Sure, please provides logs from event log