Grafana 8.4.5 to 9.0.6 migration

Step 1: Download the 9.0.6 Grafana zip file from the below URL.

Download Grafana package from

Download Grafana | Grafana Labs

Follow the steps mentioned in the grafana installation document

Grafana Installation - Cognizant® Cloud Acceleration Platform Insights - Confluence (atlassian.net)

Step 2: Unzip the package and add the necessary configurations needed in default.ini.The following properties need to be updated in default.ini file.

neo4j-datasource,Inference,cde-inference-plugin,cde-fusion-panel plugins are not signed plugins so we have to allow loading these plugins using the property as below. If this property is not set, we don’t see the plugins in Grafana.

allow_loading_unsigned_plugins = neo4j-datasource,Inference,cde-inference-plugin,cde-fusion-panel

Please check for below properties in default.ini file.

[database]

# You can configure the database connection by specifying type, host, name, user and password

# as separate properties or as on string using the url property.

# Either "mysql", "postgres" or "sqlite3", it's your choice

type =

host =

name =

user =

# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""

password =

[live]

# max_connections to Grafana Live WebSocket endpoint per Grafana server instance. See Grafana Live docs

# if you are planning to make it higher than default 100 since this can require some OS and infrastructure

# tuning. 0 disables Live, -1 means unlimited connections.

max_connections = 0

[plugins]

enable_alpha = false

app_tls_skip_verify_insecure = false

# Enter a comma-separated list of plugin identifiers to identify plugins to load even if they are unsigned. Plugins with modified signatures are never loaded.

allow_loading_unsigned_plugins = neo4j-datasource,Inference

neo4j-datasource,Inference,cde-inference-plugin,cde-fusion-panel plugins are not signed plugins so we have to allow loading these plugins using the property as below. If this property is not set, we don’t see the plugins in Grafana.

allow_loading_unsigned_plugins = neo4j-datasource,Inference,cde-inference-plugin,cde-fusion-panel

Step 2.1:Copy the custom.ini file from conf folder of Grafana8.4.5 version and replace in the current version of grafana.

Step 3: Postgres Backup Steps

  • Stop the previous version of Grafana 8.4.5 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 4: Run grafana-server.exe file from the bin folder of Grafana-8.4.5 folder.

Step 5: create Grafana service using following command

C:\InSights\Insights_Deployment\Server2\nssm-2.24\win64\nssm install Grafana9.0.6 "C:\InSights\Insights_Deployment\Server2\grafana-v9.06\bin\grafana-server.exe"

 

©2021 Cognizant, all rights reserved. US Patent 10,410,152