-
Notifications
You must be signed in to change notification settings - Fork 200
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
Add ignore_status #161
Add ignore_status #161
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if instead of this, we add something more like the blackbox_exporter's "allowed status codes". This way you can be more explicit about what non-2xx codes are allowed.
Signed-off-by: Alexander Ryabov <alexander.ryabov@jetbrains.com>
Signed-off-by: Alexander Ryabov <alexander.ryabov@jetbrains.com>
Yeah, that would also work for us. Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the PR.
Fix for: #160
It seems this option would look better inside of
http_client_config
, but I do not see easy way to extendHTTPClientConfig
(because it has ownUnmarshalJSON()
)