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

pkg/prometheus: allow Probes without "module" parameter #4074

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

paulfantom
Copy link
Member

module parameter is optional in ProbeSpec and as such it shouldn't be passed to prometheus configuration when field is empty. Allowing such configuration extends usability of Probe CRD to other exporters that are based on similar concept to blackbox_exporter (for example pagespeed_exporter).

Release Note Template (will be copied)

Generate correct scraping configuration for Probes with empty or unset `module` parameter

@paulfantom paulfantom requested a review from a team as a code owner June 7, 2021 13:13
paulfantom added a commit to thaum-xyz/ankhmorpork that referenced this pull request Jun 7, 2021
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@paulfantom paulfantom merged commit bbe6046 into prometheus-operator:master Jun 8, 2021
@paulfantom paulfantom deleted the no_module_probe branch June 8, 2021 15:35
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

Successfully merging this pull request may close these issues.

None yet

2 participants