Let's Go Further › Metrics
Previous · Contents · Next
Chapter 18.

Metrics

When your application is running in production with real-world traffic — or if you’re carrying out targeted load testing — you might want some up-close insight into how it’s performing and what resources it’s using.

For example, you might want to answer questions like:

Having insight into these things can help inform your hardware and configuration choices, and act as an early warning sign of potential problems (such as memory leaks).

To assist with this, Go’s standard library includes the expvar package which makes it easy to collate and view different application metrics at runtime.

In this section you’ll learn: