Skip to content

jdmEveryDay/active-client-requests-metric-demo

Repository files navigation

Demo project for http_client_requests_active_seconds_count metric issue

Steps to reproduce:

  1. Launch wiremock container with pre-configured long-responding endpoint:
docker run -it --rm \
    -p 8080:8080 \
    --name wiremock \
    -v ./wiremock:/home/wiremock \
    wiremock/wiremock:3.9.1
  1. Build and launch the app:
./gradlew bootRun
  1. Execute cURL request with timeout to simulate request cancellation:
curl --location --request POST 'http://localhost:8876/test' -m 1
  1. Query metrics and observe http_client_requests_active_seconds_count having value > 0:
curl --location 'http://localhost:8876/management/prometheus' | grep 'http_client_requests_active_seconds_count'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages