To
...
Ask ranjit
- Enter url of the grafana in browser
- Select the dashboard to view resource.
- You can also import customized dashboard to monitor Adpetia application matrices.
- Steps (Ranjit)
----------------------------------------------------------------------------------
Prerequisites
- Kubernetes 1.16+
- Helm 3+
Deploying Grafana
Get Repo Info
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
2. Installing the Chart
To install the chart with the release name my-release
:
helm install my-release grafana/grafana
3. Exposing Grafana (Connecting To Grafana Dashboard)
4. Log in to Grafana (URL depends upon how Grafana has been exposed) and configure the data source. The login name is admin and the password admin.
5. Click on the "cogwheel" in the sidebar to open the Configuration menu.
6. Click on "Data Sources".
7. Click on "Add data source".
8. Select "Prometheus" as the type.
...
view the application metrices dashboard, you need to configure the data source in Grafana. In this case, Prometheus is the data source.
Configuring the data source in Grafana
Follow the instructions given below to configure the data source.
Log in to Grafana and configure the data source.
Info What would be the Grafana URL depends upon how you have exposed Grafana. - Click Configuration >> Data Sources.
- Click Add data source.
- On the Add data source page, select Prometheus as the type.
- Set the Prometheus server URL (For example,
http://
...
<Hostname>:
...
<Port>/
)
...
- .
- Configure the other data source settings
...
- based on your requirement (For example,
...
- selecting the
...
- authentication method).
...
- Click Save &
...
- test to save the new data source.
Once you have configured the data source, you can view the application metrices dashboards provided by Kubernetes. Anchor view dashboards view dashboards
To view the dashboards:
Click Search dashboards in the left panel.
The list of all the available dashboards appear under different heads, for example, Starred, Recent, etc.Tip You can also search for a specific dashboard by entering the name of the dashboard in the search bar. - Click the required dashboard on the list to view it.
...
12. Importing the Grafana dashboard. (Adeptia provides the dashboards in JSON format)
...
borderStyle | solid |
---|---|
title | You may be interested in... |
...
-
The following screenshot is an example that shows the General/Kubernetes/Compute Resources/Cluster dashboard with relevant metrices.
Importing and viewing the custom Grafana dashboard
Adeptia provides a few dashboards in JSON format that you can import to view the application metrices. You can also customize these JSON files based on your requirement. Follow the steps given below to import the dashboard.
- Download the JSON file available here.
- Log in to Grafana.
- Go to Dashboards >> Browse.
- Click Import.
- On the Import page, click Upload JSON file to browse to and select the JSON file you downloaded in step 1.
- In the Options section, do the followings to import the dashboard.
- In the Name field, enter a name for the dashboard.
- In the Folder field, select a folder where you want to place the uploaded JSON file.
- In the Unique identifier (UID) field, provide a unique identifier (if required) to the dashboard.
- In the field next to Unique identifier (UID), select Prometheus as the data source.
- Click Import.
- Follow the steps given here to view the imported dashboard.
The following screenshot is an example that shows the Adeptia Graphs/Kubernetes Nodes dashboard with relevant metrices.
The following screenshot is an example that shows the Adeptia Graphs/Kubernetes Persistent Volumes usage dashboard with relevant metrices.