Grafana Installation
- Abirami
- Nishkarsh.Jain2
- Gaurav (Unlicensed)
Step 1:
- Click here to download Grafana 9.3.1 zip file.
Step 2:
- Unzip the package and replace below files present in conf folder.
- default.ini
- ldap.toml
- Click here to get ldap.toml.
- Download the default.ini for the required version below
- Grafana 9.3.1 defaults.ini
- Grafana 8.4.5 defaults.ini
- Grafana 8.3.3 defaults.ini
- Grafana 7.5.10 defaults.ini
- Replace the ldap.toml and content of defaults.ini inside the conf folder in Grafana with the downloaded defaults.ini file content.
- Go to the Database section inside file and enter the Database password in the password field.
- Following variables are customized in the downloaded default.ini
- Database section
[database]
type = (database type)
host = (database host)
name = grafana
user = (database name)
password = (database password)
- Security section
[security]
# set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
allow_embedding = true
- External Image Storag section
[plugins]
allow_loading_unsigned_plugins = cts-neo-4-j-4-0,Inference,cde-inference-plugin,cognizant-insights-charts
We can check the name of the plugin in package.json in the plugin folder.
(eg. grafana-9.3.1\data\plugins\insights-charts-4-0\package.json
- Grafana Live section
[Live]
max_connections = 0
Step 3:
- Click here to download master.zip.
- Unzip and copy the iSight_ui3.js in Insights-master\PlatformGrafanaPlugins\ScriptedDashboard.
- Place it inside grafana-9.3.1/public/dashboards.
Step 4:
- Include the below script tags in the index.html file located in C:\InSights_Windows\Server2\grafana-9.3.1\public\views
<script async="" src="//www.googletagmanager.com/gtm.js?id=[[.GoogleTagManagerId]]">
</script><script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
Step 5:
- Copy the plugins in Insights-master\PlatformGrafanaPlugins\Panels.
- Place the plugins inside grafana-9.3.1\data\plugins.
- Copy the data sources in Insights-master\PlatformGrafanaPlugins\DataSources.
- Place the data sources inside grafana-9.3.1\data\plugins.
Step 6:
- Add all the files inside img folder (Click here to download img folder) in C:\InSights_Windows\Server2\grafana-9.3.1\public\img.
Step 7:
Postgres Backup Steps (if you are upgrading grafana)
- Stop the previous version of Grafana running on the instance.
- Follow the below steps to backup existing database
- Navigate to <postgres_installation_path>/bin
- Backup DB by executing the command pg_dump --username=username --password grafana > grafana_backup
Step 8:
create Grafana service using following command (change the nssm or grafana-9.3.1 if needed)C:\Insights_Deployment\Server2\nssm-2.24\win64\nssm install Grafana9.3.1 "C:\Insights_Deployment\Server2\grafana-9.3.1\bin\grafana-server.exe"
Start the Grafana9.3.1 service.
- Click here to get the Grafana installation script on RHEL 7.
- Click here to get the Grafana installation script on RHEL 8.
- Click here to get the Grafana installation script on UBUNTU.
- Refer the below documentation for Grafana Migration.
Back to Top
©2021 Cognizant, all rights reserved. US Patent 10,410,152