Batteries Included offers robust monitoring capabilities, with built-in Grafana and VictoriaMetrics support. Let’s go over setting up these tools and accessing monitoring dashboards for your clusters.
Setting Up Monitoring
Grafana is an open-source, web-based analytics and monitoring platform. It provides powerful visualization tools, allowing you to create charts, graphs, and alerts for your infrastructure and applications.
VictoriaMetrics is a fast, scalable time series database and monitoring solution. It efficiently collects, stores, and processes metrics from your Kubernetes clusters and applications.
To set up monitoring for your environment:
Navigate to the
Monitoringtab in the control server.Click on
Install BatteriesorManage Batteries. You’ll see a list of available monitoring batteries, including:- Grafana
- Victoria Metrics
- Kube Monitoring
- Loki
- Promtail
To install any of these components, simply click the
Installbutton next to the desired battery.For a well-rounded monitoring setup, we recommend installing both Grafana and VictoriaMetrics batteries. Installing the
Victoria Metricsbattery will also install theVM Operator,VM Agent, andVM Clusterbatteries.
Accessing the Dashboards
Once you’ve installed Grafana and the necessary VictoriaMetrics components:
- Return to the
Monitoringtab in the control server. - Click on the either the
GrafanaorVM Selectentry. This will open the Grafana or VictoriaMetrics dashboard in a new tab.
Cluster-Specific Grafana Dashboards
Batteries Included automatically creates Grafana dashboards for your clusters. To access these:
- Navigate to the
Kubernetestab in the control server. This shows all active pods with their status. - Click on a pod you wish to monitor (e.g. a Jupyter Notebook pod.)
- Look for the
Grafana Dashboardbutton. Clicking this will open a pre-configured Grafana dashboard specific to that cluster.
Database cluster dashboards can also be accessed in their own page:
- Go to the
Datastoressection. - Select the database cluster you want to monitor.
- Click the
Grafana Dashboardbutton to view metrics for that specific instance.