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

fix: validating prometheus target #1077

Merged
merged 15 commits into from
Sep 26, 2024

Conversation

AleksandrMatsko
Copy link
Member

Changed the status code and returned description

Before this PR on any error from prometheus the response with status code 500 was returned.

Now if the error is caused by bad target the response with status code 400 is returned.

@AleksandrMatsko AleksandrMatsko requested a review from a team as a code owner August 30, 2024 09:33
api/handler/triggers.go Outdated Show resolved Hide resolved
api/handler/triggers.go Outdated Show resolved Hide resolved
almostinf
almostinf previously approved these changes Sep 3, 2024
api/handler/triggers.go Outdated Show resolved Hide resolved
@almostinf almostinf self-requested a review September 3, 2024 08:22
…metheus errors (except bad data error type)
almostinf
almostinf previously approved these changes Sep 10, 2024
@AleksandrMatsko
Copy link
Member Author

/build

@AleksandrMatsko
Copy link
Member Author

/build

@AleksandrMatsko AleksandrMatsko marked this pull request as draft September 18, 2024 10:25
@AleksandrMatsko AleksandrMatsko marked this pull request as ready for review September 18, 2024 12:37
@AleksandrMatsko
Copy link
Member Author

/build

api/handler/triggers.go Outdated Show resolved Hide resolved
api/handler/triggers.go Fixed Show fixed Hide fixed
@AleksandrMatsko
Copy link
Member Author

/build

@AleksandrMatsko AleksandrMatsko merged commit 5a546ac into master Sep 26, 2024
7 checks passed
@AleksandrMatsko AleksandrMatsko deleted the fix/validating-prometheus-target branch September 26, 2024 04:40
Copy link

Build and push Docker images with tag: 2024-09-26.5a546ac

3 similar comments
Copy link

Build and push Docker images with tag: 2024-09-26.5a546ac

Copy link

Build and push Docker images with tag: 2024-09-26.5a546ac

Copy link

Build and push Docker images with tag: 2024-09-26.5a546ac

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.

4 participants