You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ndelic0 Having a quick look at the code, I can't see any particular reason why this definition would be ignored. Do you have some leftover code somewhere else saving to the spot? Is it only appearing in /etc/prometheus/file_sd_config.d - and aren't the files maybe just leftovers from a previous change?
@towo Thanks for looking into this. Solved the problem with refactoring the profile. Basically replacing class { 'prometheus::server'} call with main class class { 'prometheus': }. Missed this issue #208. Maybe this is worth documenting.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
In profile we're exporting scrape_jobs
In server profile these resources are collected with :
What are you seeing
File configs are created in
/etc/prometheus/file_sd_config.d/
What behaviour did you expect instead
File configs are created in
/srv/prometheus/file_sd_config.d/
Output log
Any additional information you'd like to impart
The text was updated successfully, but these errors were encountered: