Enhance httpcheckreceiver to Support Nested "endpoints" Under targets #37121
Labels
enhancement
New feature or request
needs triage
New item requiring triage
receiver/httpcheck
HTTP Check receiver
Component(s)
receiver/httpcheck
Is your feature request related to a problem? Please describe.
We propose an enhancement to the httpcheckreceiver configuration to allow endpoints to be nested under targets. This change introduces flexibility for users by enabling the definition of multiple endpoints per target while maintaining support for a single endpoint.
Describe the solution you'd like
Proposed Changes
Describe alternatives you've considered
Code should support below "endpoints" list and method is common for all.
receivers:
httpcheck:
collection_interval: 30s
targets:
- method: "GET"
endpoints:
- "https://httpbin.org/status/201"
- "https://httpbin.org/status/404"
- method: "POST"
endpoint: "https://httpbin.org/status/500"
processors:
batch:
send_batch_max_size: 1000
send_batch_size: 100
timeout: 10s
exporters:
debug:
verbosity: detailed
service:
pipelines:
metrics:
receivers: [httpcheck]
processors: [batch]
exporters: [debug]
Additional context
I would like to take this task.
The text was updated successfully, but these errors were encountered: