Monitoring the Beego application
Once the Beego application is up and running, we can easily monitor application request statistics, performance, health checks, tasks, and the configuration status through its admin dashboard. We will learn how to do this in this recipe.
How to do it…
- Enable the application live monitor by adding
EnableAdmin = true
in$GOPATH/src/my-first-beego-project/conf/app.conf
, as follows:
appname = my-first-beego-project ... EnableAdmin = true ..
Optionally, change the port it listens on, by adding fields in $GOPATH/src/my-first-beego-project/conf/app.conf
:
AdminAddr = "localhost" AdminPort = 8088
- Run the program using the following command:
$ bee run
How it works…
Once the command has executed successfully, the web application will run on the default Beego port 8080
and browsing http://localhost:8088/
will render the admin dashboard, as shown in the following screenshot:

Browsing http://localhost:8088/qps
will show us the request statistics of an application, as shown in the...