Summary
In this chapter, you learned how to instrument Gin application code to expose application-side metrics using Prometheus. You saw how to build a dynamic dashboard with Grafana to monitor the overall health of a Gin application in near-real time, as well as how to trigger a Slack alert when certain thresholds are crossed.
Then, you learned how to stream Gin logs to a centralized logging platform built using open source tools such as Logstash, Elasticsearch, and Kibana. Along the way, you learned how to parse Gin logs with Grok patterns and how to build charts on top of these parsed fields.
Congratulations! Now, you can design, build, and deploy a distributed Gin application from scratch. You also have a solid foundation regarding how to automate the deployment workflow and monitor a running Gin application in production.