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

validate incoming scrape jobs #441

Merged
merged 18 commits into from Mar 24, 2023
Merged

validate incoming scrape jobs #441

merged 18 commits into from Mar 24, 2023

Conversation

dstathis
Copy link
Contributor

Issue

Fixes #314

Solution

Create a minimal Prometheus config and check it with cos-tool.

Testing Instructions

Provide an invalid scrape config and check that it does not get written to disk.

Release Notes

Prometheus-k8s now validates incoming scrape jobs

Copy link
Contributor

@PietroPasotti PietroPasotti left a comment

Choose a reason for hiding this comment

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

Just a generic clarification, looks good!

tests/integration/test_check_config.py Show resolved Hide resolved
tests/unit/test_endpoint_consumer.py Show resolved Hide resolved
@simskij simskij merged commit 94c668e into main Mar 24, 2023
11 checks passed
@simskij simskij deleted the validate_scrape_jobs branch March 24, 2023 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate scrape configs/targets from incoming relations
6 participants