From the course: Cloud Native Development with Node.js, Docker, and Kubernetes

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Build charts for your applications

Build charts for your applications

From the course: Cloud Native Development with Node.js, Docker, and Kubernetes

Start my 1-month free trial

Build charts for your applications

- [Instructor] In the previous video, we installed Grafana into our Kubernetes install and then we added the default Kubernetes Cluster Monitoring Dashboard that we got from the community. Now we're going to extend that dashboard to add some custom chart specifically for our Node.js application that we've deployed. To do that, we're first going to go to the top and select the Add panel button. This lets us add new charts based either on a query first or on choosing a visualization first. Let's click on Add Query. We're going to start by adding the same query that we used when we were just using Prometheus. And that is os_cpu_used_ratio. It auto completes that for us so we can select os_cpu_used_ratio and when we do that, it starts to chart the CPU data that it has for each of our Node server instances. We also have the option of limiting the chart to specific applications or charts or instances by using any of these fields that it shows you in the line. So, we can take our value of…

Contents