1.3.4 • Published 5 years ago
express-gateway-plugin-metrics-prometheus v1.3.4
express-gateway-plugin-metrics-prometheus
Creates a metrics policy to expose prometheus metrics on /metrics
install
eg install express-gateway-plugin-metrics-prometheus
development
For development, start the gateway using cd gateway && npm start
You will also need httpbin for accepting HTTP requests, so fire up a docker container: docker run -p 8081:80 kennethreitz/httpbin
In order to generate metrics you can use the ab
cli tool provided by the apache2-utils
package.
Simply call ab -n <NUMBER_OF_REQUESTS> http://localhost:8080/<HTTPBIN_REQUEST_PATH>
metrics
- http_requests_total
- http_request_duration_ms