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

HTTP metrics output broken #44

Open
ztreinhart opened this issue Mar 22, 2021 · 0 comments
Open

HTTP metrics output broken #44

ztreinhart opened this issue Mar 22, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ztreinhart
Copy link
Contributor

When running the following VHS command with the testdata/echo.bash script generating load:

./vhs --input tcp|http --address 0.0.0.0:1111 --capture-response --output json|stdout --debug --prometheus-address 127.0.0.1:8888

I expect to see VHS http specific output at the metrics endpoint at 127.0.0.1:8888/metrics. Something like this:

# HELP vhs_http_duration_seconds Duration of http exchanges seen by VHS.
# TYPE vhs_http_duration_seconds summary
vhs_http_duration_seconds{code="200",method="GET",path="/",quantile="0.5"} 0.0003203
vhs_http_duration_seconds{code="200",method="GET",path="/",quantile="0.75"} 0.0005124
vhs_http_duration_seconds{code="200",method="GET",path="/",quantile="0.9"} 0.0006848
vhs_http_duration_seconds{code="200",method="GET",path="/",quantile="0.95"} 0.0007811
vhs_http_duration_seconds{code="200",method="GET",path="/",quantile="0.99"} 0.0009974
vhs_http_duration_seconds{code="200",method="GET",path="/",quantile="0.999"} 0.0011647
vhs_http_duration_seconds{code="200",method="GET",path="/",quantile="0.9999"} 0.0011647
vhs_http_duration_seconds_sum{code="200",method="GET",path="/"} 0.1551513
vhs_http_duration_seconds_count{code="200",method="GET",path="/"} 412
# HELP vhs_http_requests_total Total count of http requests captured by VHS.
# TYPE vhs_http_requests_total counter
vhs_http_requests_total{code="200",method="GET",path="/"} 412

However, when using a VHS binary built from the current main branch, there is no VHS HTTP data in the metrics output, only standard output from the Prometheus library.

@ztreinhart ztreinhart added the bug Something isn't working label Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant