The HTML dashboard is, of course, only one way to use the stats. Because we have direct access to the JSON data, we can pull this data from a third-party monitoring system. For instance, we can view what information is available by calling:
curl http://202.74.71.216:8188/status
This will produce a JSON based output, similar to the following:
{"version":8,"nginx_version":"1.11.10","nginx_build":"nginx-plus-r12-p3", "address":"202.74.71.216", "generation":1,"load_timestamp":1503127483754, "timestamp":1503149700611, "pid":10008,"ppid":10007, "processes":{"respawned":0}, "connections":{"accepted":945523, "dropped":0,"active":1, "idle":0}, "ssl":{"handshakes":0, "handshakes_failed":0, "session_reuses":0}, "requests":{"total":5249054, "current":1}, "server_zones":{"status-page":{"processing":1, "requests":5249049, "responses":{"1xx":0, "2xx":4903722, "3xx":345306, "4xx":20, "5xx":0,"total":5249048}, "discarded":0, "received":566205691, "sent":16475272258}}, "slabs":{}, "upstreams":{}, "caches":{}} d
You can also reduce the output to the specific component you're after, for example, we can call /status/connections to retrieve just the statistics about the connections:
{"accepted":945526,"dropped":0,"active":1,"idle":0}
Don't forget to adjust your accept/allow and/or authentication for third-party monitoring systems.