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

Log remote write errors as they happen #102

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

saswatamcode
Copy link
Contributor

This commit allows logging remote write errors as they happen instead of waiting till the end of 20*refreshInterval. The motivation is to allow catching config issues early during ad-hoc benchmarking.

Addresses #81

Comment on lines -345 to -347
if httpResp.StatusCode/100 == 5 {
return err
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also removed this block as it seems like the error would be assigned in the previous if block anyway on 5xx? Can add back in if I'm wrong somewhere

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks!

@bwplotka bwplotka merged commit 5d86b52 into prometheus-community:main Oct 18, 2024
6 checks passed
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.

2 participants