Configuring Grafana¶
This section explains the steps to configure Grafana for monitoring various aspects of your system within the Insights Hub using pre-configured dashboards and data sources.
Expose the Prometheus URL to Insights Hub.
Configuring the Grafana¶
- Log in to Grafana using your credentials.
-
Create a new organization to organize and manage your monitoring setup.
- Navigate to "Server Admin" and select "Users".
- Select "Orgs" and click "Create new organization" by selecting icon.
- Enter a name for your organization and click "Create".
- Keep the "Preferences" as "Default" and click "Save".
- Navigate to "Server Admin" and select "Users".
-
Click the "Switch organization" option at the bottom left next to the logout icon.
-
Select "Switch to your newly created organization".
-
Navigate to the "Settings" and select "Data sources" from the left navigation.
-
Click "Add Data Source", select "Prometheus" as the data source and keep "Data Source" as "Default".
-
Set the "Prometheus URL", keep other settings as default and click "Save & Test".
Check the status of the data source. If you see a green message stating "Data Source is working," it means the data source is added successfully.
If you get an error message, take the appropriate actions based on the displayed message.
Creating dashboards¶
- Click the
+
icon to create dashboard from the left navigation and select "Import". -
Import dashboards using one of two methods:
- Import by dashboard ID
- Import by JSON
The JSON files are located in the "LPC-Monitoring.zip" file, organized in the following folder structure:
- OSS Components
- lpc-kubernets
- Services
- PostgreSQL
-
For each JSON file, copy the JSON data and paste it into the import section.
-
Click "Load".
-
Choose the folder where the dashboard will be stored. The default folder name is "General".
-
Click "Import".
-
Follow the same steps for all JSON files in the respective folders.