Reputation: 73
It's there a way to add a text file with licenses dates to be monitored by Prometheus windows exporter.( to be used with alert manager to receive a alert if a program license will expire in 10 days for example). So I would basically have this license_example.txt with : "" Visual studio code : 22-01-2024 Windows exporter : 25-02-2025 "" Can he receive file inputs and if so on what format they must be, in order to recognize the dates for example.
Thanks for help and reading all of this.
Upvotes: 0
Views: 522
Reputation: 999
Yes and it is actually enabled by default. Put *.prom
files in this path C:\Program Files\windows_exporter\textfile_inputs
and fill them according to the prometheus metrics exporter documentation. I'd suggest to use a Gauge
metric with the remaining days until license expiration and a script to update the *.prom
files regularly. See a sample of the required format here.
Upvotes: 1