Skip to content

Conversation

@saswatamcode
Copy link
Collaborator

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

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Comment on lines -345 to -347
if httpResp.StatusCode/100 == 5 {
return err
}
Copy link
Collaborator 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
prateeknayak pushed a commit to prateeknayak/avalanche that referenced this pull request Jan 2, 2025
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