Grafana

To display these metrics, we are going to use Grafana. If we start our stack by using the make runserver command and wait for a few moments for the server to start, we can then execute a few curl commands to the endpoint to start populating the system with data:

curl [docker host ip]:8091/helloworld -d '{"name": "Nic"}'  

Let's log into Grafana and have a look at some of the data we have collected. Point your browser at [docker host ip]:3000 and you should be presented with a login screen. The default username and password is admin:

Once you have logged in, the first thing we want to do is to configure our data source. Unfortunately, ...

Get Building Microservices with Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.