profile image
Jeff Johnson
Senior Software Engineer
Posts by Jeff Johnson
Marketing & Commerce | February 8, 2021
Commerce 9.1 Monitoring and Metrics
One of the most important things for any site is reliability and performance, to ensure the users are getting the best experience when accessing the site. The goal of monitoring is real-time visibility into the health and performance of the application in order to minimize the time it takes to discover and resolve a problem. HCL Commerce enables real-time monitoring and metrics through a framework that also includes Grafana dashboards to display the Commerce metrics. Monitoring Framework: There are three parts to the monitoring framework. The first is a fully customizable presentation layer that enables you to use your preferred tools to report and analyze your systems' performance. The second, the Prometheus toolkit, provides flexibility for the presentation layer to be vendor neutral. It is considered an industry-standard data-representation language. Finally, Prometheus gets its data from the fully customizable Micrometer library, which "scrapes" the data from your containers. Presentation Layer: Since HCL uses the Grafana for reporting in our internal testing, we have provided these dashboards out of the box. They are available for download here and can be used when setting up your reporting dashboards for 9.1 Commerce Site. They are easily imported into Grafana to use “as is” or can be customized as needed. Grafana is deployed with Prometheus Operator and extends Prometheus’ basic charting capabilities. Most applications that support Prometheus also make Dashboards available like Redis, Nginx, Kubernetes and Kafka to name a few which can be found here. Images of 3rd party dashboards The Commerce Grafana dashboards include, Java, Rest Performance, Cache, Ingest and Store among others. To demonstrate the dashboards, we did a small 50 user test to show how they can be used. We can monitor the state of the JVMs on any pod, by monitoring the CPU, Threads and Memory. It is easy...