mendhak / docker-http-https-echo

Docker image that echoes request data as JSON; listens on HTTP/S, useful for debugging.
https://code.mendhak.com/docker-http-https-echo/
MIT License
621 stars 136 forks source link

#56 Feat: Add middleware for prometheus metrics #57

Closed mxcoder closed 9 months ago

mxcoder commented 1 year ago

Giving a try to implement this feature using the most popular middleware for expressjs.

Please advise on the rest of the code, docs and tests.

mendhak commented 9 months ago

Thanks for the PR I have made one modification which is to set Prometheus disabled by default.

Also had to fix the build, seems like there was some upstream problem with s390x platform.

mxcoder commented 9 months ago

Cool. Thanks for accepting