Skip to content
ally2211 edited this page Jul 31, 2023 · 2 revisions

Migrating Grafana Setup to a separate grafana installation

Dashboards that are created are on a Dev Server will need to be moved to test and production servers. This will require the need to securely and quickly copy dashboards, datasources and alerts to other grafana installations for netowrk monitoring purposes.

Table of Contents

  • Usage / Examples
  • Export/Import dashboards / datasources / alerts
  • Replicate Configuration Setup
  • Virtual Server Setup
  • Grafana Installation
  • Security / Configuration Setup

Usage/Examples

Use Case: I want to setup a grafana server somewhere random and replicate what L1 does with their dashboards.

Use Case: I need to replicate configuration file of Grafana Server without the user information.

Export / Import Dashboards, Datasources, Alerts

Requirements: A user who has Grafana administrative priviledges

To export a Dashboard

  1. Open Dashboards. 'Add a Dashboard link' in settings for your dashboard if the share button is not already there.
  2. Click the share button. The share tab shows the current time range, template variables, and the default theme.
  3. You have the option to either copy a link of your Dashboard or to save your Dashboard to a file in JSON format.

To import a Dashboard onto another installation of Grafana

  1. Click Dashboards in Grafana

  2. Click New and select Import in the dropdown menu.

  3. Perform one of the following options:

    • upload JSON file.
    • paste the Grafana dashboard URL link.
    • Paste dashboard JSON text into text area.
  4. Note: The import process enables you to change the name of the dashboard, pick the data source you want the dashboard to use, and specify any metric prefixes (if the the dashboard uses any).

Replicate configuration setup

Grafana by default uses sqlite3 as a local database to hold the configuration information (such as users, dashboards, alerts, etc.). Below are links with step by step instructions how to migrate your configuration database and to copy the /etc/grafana/grafana.ini config file.

Virtual Server Setup

To install Grafana, you may need to set up a Virtual Server.
To Be Completed.

Grafana Installation

To be completed.

Security / Configuration Setup

To be completed