github.com/thisdougb/health (go): Package health provides an easy way to record and report metrics.  A good example is using the health package in a service architecture running on k8s. Each container can run a /health http handler that simple returns the json output from health.Dump(). A dashboard can consume that json ouput, using it for alerting, graphs, logs, etc.  Using a standard metrics output across all app services, means it is trivial to build a dashboard that auto-discoveres any container.  The intention is that this package is used in a similar way to /proc on *nix systems. It is the responsibility of the metrics consumer to handle rates over time (message per second, for example). This keeps the health package simple.  In a DevOps team, ops can run a consumer at high frequency while troubleshooting, for example per second. While a log aggregator like DataDog can consume at per minute.  Example:  Output:
Keywords: containers|docker|go|golang|kubernetes