-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[receiver/httpcheck] add metrics check whether substring contains in response body #27015
Conversation
Thanks for careful reviews. I really appreciate it @atoulme! |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Could this PR hold on? |
Hi @sakulali, if you need help with this, let me know, I can work with you, since this is aligned with what I need for the receiver. |
Sorry for delay reply @lpegoraro. Could you please help review the code? I'm unsure if my implementation aligns with your issue, and I would also like to collaborate in completing this valuable feature you've proposed. |
Hello @atoulme, cloud you mind help reviews again? I want to work with @lpegoraro to implement the feature, thanks! |
Some English and a couple touches, but it's not far. |
Thanks very much for taking the time to reviews @atoulme! |
I also think we are very close! |
Great suggestion! I think it's a good idea to create a separate issue to follow up. I'm not very familiar with encoding best practices either, i think we can retrieve the encoding format from a custom field in the HTTP header, such as |
hi there folks, what is the hold up? can we do something about it? |
Thanks for reminder. Could you mind help to reviews again? @codeboten |
16a6dfc
to
5993665
Compare
Hi there! Great work on getting 2 approvals, can we merge this for the next release? |
Hi there fellas, @codeboten @atoulme , would this be in the next release? |
Sorry for the delay @lpegoraro, I would like to resolve #27015 (comment) before merging this |
Count me in for anything @codeboten |
Signed-off-by: sakulali <sakulali@126.com>
Signed-off-by: sakulali <sakulali@126.com>
2653032
to
6a7a5bb
Compare
Signed-off-by: sakulali <sakulali@126.com>
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
@@ -37,6 +37,8 @@ Each target has the following properties: | |||
|
|||
- `endpoint` (required): the URL to be monitored | |||
- `method` (optional, default: `GET`): The HTTP method used to call the endpoint | |||
- `body` (optional, default: ""): If set, the receiver will emit metrics based on whether the response body exact matches this string. |
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.
This could carry a different meaning when method is POST
where the body
content will be sent as part of the request.
Any one working on this? I actually have a requirement for this. Can we do it in a way in which we can specify the status code to be expected? I actually agree with @andrzej-stencel on this. A single data point would be great, with any additional info in the form of attributes. Also, modifying the name of the metric to something other than |
Description:
Part of #24913, add metrics check if substring contains in http check response body or not. When set
body
option and emithttpcheck.body
, testing substring contains or not in the response of HTTP Check.Link to tracking Issue:
#24913
Testing:
make generate
make chlog-validate
go test for httpcheckreceiver
Documentation:
receiver/httpcheckreceiver/README.md