NATS uses a simple /varz monitoring style after a practice followed at Google.1 By inspecting the data from the monitoring port from NATS, we can better understand the performance of the system as a whole and make data-based decisions on whether to scale up the services, or to investigate and find bad actors in the system.
In this chapter, we take a look in detail at some of the monitoring options provided by the server, taking as an example the setup from the application that we developed in the previous chapter.
Server Instrumentation
When monitoring is enabled in gnatsd, the server ...