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.
Monitoring the Beego application
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