With this in place, you can visit the /stats URL on port 8404 to see the dashboard: Optionally, add a stats auth line to enforce Basic authentication. You can also set this to stats admin if TRUE to bypass the restriction. For that, you would add the stats admin line and restrict who can access these functions via an ACL statement. You can also put servers into maintenance mode or drain traffic from them using this screen. The stats refresh line configures how often the dashboard will automatically refresh within your browser. The optional stats uri line changes the URL’s path. The bind line sets which address and port you’ll use to access the dashboard. You only need to add a stats enable directive, which is typically put into its own frontend section. These metrics give you granular data on a per-frontend, backend, and server basis. HAProxy also ships with a dashboard called the HAProxy Stats page that shows you an abundance of metrics that cover the health of your servers, current request rates, response times, and more. In a previous blog post, Introduction to HAProxy Logging, you saw how to harness the power of HAProxy to improve observability into the state of your load balancer and services by way of logging. The HAProxy Stats page provides a near real-time feed of data about the state of your proxied services.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |