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_config_files variable incorrect? #406

Closed
MattiasSkohg opened this issue Aug 2, 2024 · 2 comments
Closed

prometheus_scrape_config_files variable incorrect? #406

MattiasSkohg opened this issue Aug 2, 2024 · 2 comments

Comments

@MattiasSkohg
Copy link

Hi,

New to Prometheus but i have begun deploying prometheus through ansible, i noticed that i had issues when restarting the prometheus service, due to a file being configured which i dont believe should.

After some poking around i noticed that the default value from the prometheus role according to the documentation should be:

prometheus_scrape_config_files
Default: ["prometheus/scrapes/*.yml", "prometheus/scrapes/*.json"]

However, looking in the code, (prometheus/roles/prometheus/defaults/main.yml) its actually set to the same as the targets variable which seems incorrect?

["prometheus/targets/*.yml", "prometheus/targets/*.json"]

As i workaround i have simply declared prometheus_scrape_config_files="prometheus/scrapes/.yml", "prometheus/scrapes/.json" in the vars file.

@manzsolutions-lpr
Copy link
Contributor

Well I missed that when initially appropriating an abandoned PR but immediately fixed it in a second PR. Unfortunately it hit a couple of obstacles and has been unable to proceed for issues with the CI unrelated to PR itself for months now: #377

I guess once #411 gets merged it may finally complete all CI jobs.

@gardar
Copy link
Member

gardar commented Oct 25, 2024

#377

@gardar gardar closed this as completed Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants