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
Monitoring
tab in the control server.Click on
Install Batteries
orManage 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
Install
button next to the desired battery.For a well-rounded monitoring setup, we recommend installing both Grafana and VictoriaMetrics batteries. Installing the
Victoria Metrics
battery will also install theVM Operator
,VM Agent
, andVM Cluster
batteries.
Accessing the Dashboards
Once you’ve installed Grafana and the necessary VictoriaMetrics components:
- Return to the
Monitoring
tab in the control server. - Click on the either the
Grafana
orVM Select
entry. 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
Kubernetes
tab 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 Dashboard
button. 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
Datastores
section. - Select the database cluster you want to monitor.
- Click the
Grafana Dashboard
button to view metrics for that specific instance.