openfaas / of-watchdog

Reverse proxy for STDIO and HTTP microservices
MIT License
259 stars 115 forks source link

Add custom metrics #57

Closed alexellis closed 5 years ago

alexellis commented 5 years ago

Signed-off-by: Alex Ellis alexellis2@gmail.com

Description

Custom metrics are added for HTTP traffic and exposed by default on port 8081. This has been tested more extensively in the classic watchdog and copied / duplicated into the of-watchdog.

Motivation and Context

Several issues exist and a PR for the classic watchdog which was merged: https://github.com/openfaas/faas/pull/1151

How Has This Been Tested?

Local e2e testing was done on MacOS outside of a container and the new http_* fields and metrics were reported as expected.

https://github.com/openfaas/faas/pull/1151

Types of changes

Checklist: