Available as of v2.2.0
Note: This is only available if you’ve enabled monitoring at the cluster level. Project specific analytics must be viewed using the project’s Grafana instance.
Rancher’s dashboards are available at multiple locations:
- Cluster Dashboard: From the Global view, navigate to the cluster.
- Node Metrics: From the Global view, navigate to the cluster. Select Nodes. Find the individual node and click on its name. Click Node Metrics.
- Workload Metrics: From the Global view, navigate to the project. From the main navigation bar, choose Resources > Workloads. (In versions before v2.3.0, choose Workloads on the main navigation bar.) Find the individual workload and click on its name. Click Workload Metrics.
- Pod Metrics: From the Global view, navigate to the project. Select Workloads > Workloads. Find the individual workload and click on its name. Find the individual pod and click on its name. Click Pod Metrics.
- Container Metrics: From the Global view, navigate to the project. From the main navigation bar, choose Resources > Workloads. (In versions before v2.3.0, choose Workloads on the main navigation bar.) Find the individual workload and click on its name. Find the individual pod and click on its name. Find the individual container and click on its name. Click Container Metrics.
Prometheus metrics are displayed and are denoted with the Grafana icon. If you click on the icon, the metrics will open a new tab in Grafana.
Within each Prometheus metrics widget, there are several ways to customize your view.
- Toggle between two views:
- Detail: Displays graphs and charts that let you view each event in a Prometheus time series
- Summary Displays events in a Prometheus time series that are outside the norm.
- Change the range of the time series that you’re viewing to see a more refined or expansive data sample.
- Customize the data sample to display data between specific dates and times.
When analyzing these metrics, don’t be concerned about any single standalone metric in the charts and graphs. Rather, you should establish a baseline for your metrics over the course of time, e.g. the range of values that your components usually operate within and are considered normal. After you establish the baseline, be on the lookout for any large deltas in the charts and graphs, as these big changes usually indicate a problem that you need to investigate.
Grafana allows you to query, visualize, alert, and ultimately, understand your cluster and workload data. For more information on Grafana and its capabilities, visit the Grafana website.
Rancher determines which users can access the new Grafana instance, as well as the objects they can view within it, by validating them against the user’s cluster or project roles. In other words, a user’s access in Grafana mirrors their access in Rancher.
When you go to the Grafana instance, you will be logged in with the username
admin and the password
admin. If you log out and log in again, you will be prompted to change your password. You will only have access to the URL of the Grafana instance if you have access to view the corresponding metrics in Rancher. So for example, if your Rancher permissions are scoped to the project level, you won’t be able to see the Grafana instance for cluster-level metrics.
Accessing the Cluster-level Grafana Instance
From the Global view, navigate to a cluster that has monitoring enabled.
Go to the System project view. This project is where the cluster-level Grafana instance runs.
Click Apps. In versions before v2.2.0, choose Catalog Apps on the main navigation bar.
Go to the
cluster-monitoringapplication, there are two
/index.htmllinks: one that leads to a Grafana instance and one that leads to a Prometheus instance. When you click the Grafana link, it will redirect you to a new webpage for Grafana, which shows metrics for the cluster.
You will be signed in to the Grafana instance automatically. The default username is
adminand the default password is
admin. For security, we recommend that you log out of Grafana, log back in with the
adminpassword, and change your password.
Results: You are logged into Grafana from the Grafana instance. After logging in, you can view the preset Grafana dashboards, which are imported via the Grafana provisioning mechanism, so you cannot modify them directly. For now, if you want to configure your own dashboards, clone the original and modify the new copy.