Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Additional metric support for HTTP probe #327

Closed
wants to merge 1 commit into from

Conversation

mfboulos
Copy link

Fixes #297.

I essentially added a couple options to the config proto for the http probe, which allow it to specify a bool export_response_as_metrics to flag for reading the http response as metrics along with output_metrics_options similar to the external probe.

This forced a rename of the original export_response_as_metrics to export_response_count_as_metric, which makes a lot more sense given that the latter actually defines what is going on with that option.

Another caveat here is that the responseMetrics field within http.probeResult exposes the EventMetrics after each http message, which may contradict the usual pattern of only sending event metrics to probe.dataChan when the run count is a multiple of the run frequency.

Otherwise, I also added a small check in TestProbeWithBody and it passed, so hopefully all looks good.

Config proto update

EventMetrics per response body
@mfboulos
Copy link
Author

@manugarg Not sure if you've taken a look at this PR yet, just want to remind you that it's open

@manugarg
Copy link
Contributor

Thanks for the reminder @mfboulos. It had slipped my mind. I'll take a look soon.

@manugarg manugarg closed this Oct 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Add support for creating metrics from HTTP probe output
2 participants