VictoriaMetrics-Community / homeassistant-addon-victoriametrics

VictoriaMetrics Add-on for Home Assistant OS is the perfect solution for long term data storage of your smart home sensor data and visualization with Grafana.
MIT License
95 stars 24 forks source link

Prometheus scrape configuration file not working #51

Open fuslwusl opened 2 weeks ago

fuslwusl commented 2 weeks ago

I created a prometheus scrape configuration yaml file 'scrape.yaml' in the addons_config/victoria_metrics. The documentation says you just have to enter the filename into the configuration field 'Prometheus scrape configuration file' of the addon. So I filled it with 'scrape.yaml'. Restarting the Addon then shows the following error in the log:

fatal VictoriaMetrics/lib/promscrape/scraper.go:118 cannot read "/config/scrape.yaml": cannot read Prometheus config from "/config/scrape.yaml": cannot read "/config/scrape.yaml": open /config/scrape.yaml: no such file or directory

VictoriaMetrics tries to read the file from /config folder instead of the expected /addons_config/victoria_metrics folder. I then moved the scrape.yaml to the /config folder and restartet but this also didn't work.