Compare commits

...

5 Commits

  1. 82
      README.md
  2. 2
      package.json
  3. BIN
      src/img/task-creation.png
  4. BIN
      src/img/task-list.png
  5. 13
      src/plugin.json

82
README.md

@ -6,85 +6,27 @@ Supported datasources:
- MySQL
- PostgreSQL
We work on expanding this list. If you would like us to support any particular datasource -- please let us know at ping@corpglory.com
## Prerequisites
- [Grafana 9.0.0+](https://grafana.com/grafana/download)
- [Grafana Data Exporter](https://code.corpglory.net/corpglory/grafana-data-exporter)
- set Grafana `app_mode` as `development`:
- 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`
- restart Grafana
## Plugin installation
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.
If there is no `grafana-cli` tool in your system, plugins can be installed [manually](#manual-installation).
### Table of contents
- [Using grafana-cli](#using-grafana-cli)
- [Install plugin](#install-update-plugin)
- [Manual installation](#manual-installation)
- [Docker installation](#docker-installation)
### Using grafana-cli
Grafana docs about plugin installation: [https://grafana.com/docs/grafana/latest/cli/#plugins-commands](https://grafana.com/docs/grafana/latest/cli/#plugins-commands).
#### Install / update plugin
```bash
grafana-cli --pluginUrl "https://code.corpglory.net/attachments/a5b15fd8-b675-46b3-ae56-6c68e22dfcd6" plugins install corpglory-dataexporter-app
sudo systemctl restart grafana-server
```
### Manual installation
- 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`
- Download corpglory-dataexporter-app
```bash
wget https://code.corpglory.net/attachments/1e475686-fe9c-43dc-89cb-01ccee4fc4b3 -O corpglory-dataexporter-app.tar.gz
```
- Unpack downloaded files
```bash
tar -zxvf corpglory-dataexporter-app.tar.gz
```
- 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`
### Docker installation
You can install Data Exporter App to Grafana in Docker passing it as the environment variable.
```bash
docker run \
-p 3000:3000 \
-e "GF_INSTALL_PLUGINS=https://code.corpglory.net/attachments/a5b15fd8-b675-46b3-ae56-6c68e22dfcd6;corpglory-dataexporter-app" \
grafana/grafana
```
#### 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
- Make sure [Grafana Data Exporter](https://code.corpglory.net/corpglory/grafana-data-exporter) is running, and accessible from Grafana Server
- 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)
- Fill "DataExporter backend URL" field with the Data Exporter URL (Please note: the URL should be accessible from 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
## Plugin Usage
- go to a dashboard you'd like to export data from
- click "Add panel"
- select Data Exporter Panel
- click Add Task
- select timerange and query
- click Export
## Support and Consulting

2
package.json

@ -1,6 +1,6 @@
{
"name": "corpglory-dataexporter-app",
"version": "1.0.9",
"version": "1.0.10",
"description": "",
"scripts": {
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx --max-warnings=0 ./src",

BIN
src/img/task-creation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
src/img/task-list.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

13
src/plugin.json

@ -4,7 +4,7 @@
"name": "Data Exporter App",
"id": "corpglory-dataexporter-app",
"info": {
"description": "",
"description": "Export dashboard data into CSV",
"author": {
"name": "CorpGlory Inc."
},
@ -13,7 +13,16 @@
"large": "img/logo.svg"
},
"keywords": ["export", "csv"],
"screenshots": [],
"screenshots": [
{
"name": "Task List",
"path": "img/task-list.png"
},
{
"name": "Task Creation",
"path": "img/task-creation.png"
}
],
"version": "%VERSION%",
"updated": "%TODAY%"
},

Loading…
Cancel
Save