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

[receiver/httpcheck] check if response matches regex #35882

Open
Amoolaa opened this issue Oct 19, 2024 · 1 comment
Open

[receiver/httpcheck] check if response matches regex #35882

Amoolaa opened this issue Oct 19, 2024 · 1 comment
Labels
enhancement New feature or request needs triage New item requiring triage receiver/httpcheck HTTP Check receiver

Comments

@Amoolaa
Copy link

Amoolaa commented Oct 19, 2024

Component(s)

receiver/httpcheck

Is your feature request related to a problem? Please describe.

A status code is often not enough to determine whether there’s been a successful response.

Describe the solution you'd like

I think it would be great if we could check if a response body matches a regex. Potentially, we could also use capture groups to parse fields, and then use OTTL to filter for responses. I think this would probably be best expressed with a new metric that not only captures the status code but also the outcome of the regex match

Describe alternatives you've considered

No response

Additional context

Happy to contribute to make this happen!

@Amoolaa Amoolaa added enhancement New feature or request needs triage New item requiring triage labels Oct 19, 2024
@github-actions github-actions bot added the receiver/httpcheck HTTP Check receiver label Oct 19, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@Amoolaa Amoolaa changed the title check if response matches regex [receiver/httpcheck] check if response matches regex Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage New item requiring triage receiver/httpcheck HTTP Check receiver
Projects
None yet
Development

No branches or pull requests

1 participant