You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
3.7 KiB

2 years ago
# Grafana Data Exporter App
2 years ago
Grafana plugin for exporting data from Grafana panels as CSV.
2 years ago
Supported datasources:
- MySQL
- PostgreSQL
2 years ago
## Prerequisites
- [Grafana 9.0.0+](https://grafana.com/grafana/download)
- [Grafana Data Exporter](https://code.corpglory.net/corpglory/grafana-data-exporter)
2 years ago
- set Grafana `app_mode` as `development`:
2 years ago
- find the configuration file: [https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#configuration-file-location](https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#configuration-file-location)
- change `app_mode = production` to `app_mode = development`
2 years ago
- restart Grafana
2 years ago
## Plugin installation
2 years ago
The easiest way to install plugins is by using the `grafana-cli` tool which is bundled with Grafana. See [Using grafana-cli](#using-grafana-cli) paragraph.
2 years ago
If there is no `grafana-cli` tool in your system, plugins can be installed [manually](#manual-installation).
2 years ago
### Table of contents
- [Using grafana-cli](#using-grafana-cli)
- [Install plugin](#install-update-plugin)
- [Manual installation](#manual-installation)
- [Docker installation](#docker-installation)
2 years ago
### Using grafana-cli
2 years ago
Grafana docs about plugin installation: [https://grafana.com/docs/grafana/latest/cli/#plugins-commands](https://grafana.com/docs/grafana/latest/cli/#plugins-commands).
2 years ago
#### Install / update plugin
```bash
2 years ago
grafana-cli --pluginUrl "https://code.corpglory.net/attachments/fa42eb7f-72b9-4a3e-a60e-33fbf7967b30" plugins install corpglory-dataexporter-app
2 years ago
sudo systemctl restart grafana-server
```
2 years ago
### Manual installation
2 years ago
- Navigate to Grafana plugins directory:
- For Grafana installed from `.deb`/`.rpm` package:
- `/var/lib/grafana/plugins`
- For Grafana installed using Standalone Linux Binaries or source:
- `<GRAFANA_PATH>/data/plugins`
2 years ago
- Download corpglory-dataexporter-app
```bash
2 years ago
wget https://code.corpglory.net/attachments/fa42eb7f-72b9-4a3e-a60e-33fbf7967b30 -O corpglory-dataexporter-app.tar.gz
2 years ago
```
2 years ago
- Unpack downloaded files
```bash
tar -zxvf corpglory-dataexporter-app.tar.gz
```
2 years ago
- Restart Grafana
- For Grafana installed from `.deb`/`.rpm` package:
- `systemctl restart grafana-server`
- For Grafana installed using Standalone Linux Binaries or source:
- Stop any running instances of grafana-server
- Start grafana-server: `cd <GRAFANA_PATH> && ./bin/grafana-server`
2 years ago
### Docker installation
2 years ago
You can install Data Exporter App to Grafana in Docker passing it as the environment variable.
2 years ago
```bash
docker run \
-p 3000:3000 \
2 years ago
-e "GF_INSTALL_PLUGINS=https://code.corpglory.net/attachments/fa42eb7f-72b9-4a3e-a60e-33fbf7967b30;corpglory-dataexporter-app" \
2 years ago
grafana/grafana
```
2 years ago
#### Useful links
- Grafana docs about Docker installation: [https://docs.grafana.org/installation/docker/#installing-plugins-from-other-sources](https://docs.grafana.org/installation/docker/#installing-plugins-from-other-sources)
## Plugin Configuration
- In Grafana, go to Configuration -> Plugins -> Data Exporter App
- Fill "DataExporter backend URL" field with the Data Exporter URL (Please note: the URL should be accessible by Grafana Server)
- Click Connect
- If Grafana connects to the Data Exporter successfully, you'll see this message: "Plugin is connected! You can now go to a dashboard and add the DataExporter panel there."
- After this:
- go to a dashboard you'd like to export data from
- click "Add panel"
- select Data Exporter Panel
2 years ago
## Support and Consulting
2 years ago
Commercial support, professional services **or any help** — send us your inquiry at ping@corpglory.com
2 years ago
## About CorpGlory Inc.
Grafana Data Exporter is developed by [CorpGlory Inc.](https://corpglory.com/), a company which provides high quality software development, data visualization, Grafana and monitoring consulting.