-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat(inputs.prometheus): Allow explicit scrape configuration without annotations #11962
Conversation
Thanks so much for the pull request! |
!signed-cla |
…heus.io annotations When `scrape_config` is present and enabled all pods matched by label and field selector as well as namespace filter will be scraped using configuration (scheme, port, path) specified in the `scrape_config`. Pod annotations continue to override plugin configuration, therefore pods can still exclude themselves from scraping with `prometheus.io/scrape=false` annotation or alter scrape URL as they did before.
864a594
to
56a5cfa
Compare
@powersj , would you mind to take a look? |
I am not sure why readme linters are failing, I didn't update files it is failing on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the updates, this is looking great, just some re-ording of the readme to request
Readme linter is failing due to other un-related plugins |
Docs are much more clear now, thanks! |
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the nice PR @redbaron! One small question/comment...
d46e5c8
to
e9309d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for the quick update @redbaron!
resolves #11961
allow scraping pods without requiring
prometheus.io/
annotations