Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus scrape configuration file not working #51

Open
fuslwusl opened this issue Oct 9, 2024 · 1 comment
Open

Prometheus scrape configuration file not working #51

fuslwusl opened this issue Oct 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@fuslwusl
Copy link
Collaborator

fuslwusl commented Oct 9, 2024

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.

@fuslwusl fuslwusl added the bug Something isn't working label Oct 9, 2024
@ananthb
Copy link

ananthb commented Dec 15, 2024

The extra scrape.yaml goes in the /addons_config/8f49de54_victoria_metrics folder. It won't work if you put it in the /addons_config/victoria_metrics folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants