# Ksyun KLog Grafana Plugin

## Package Layout

- 
kscklog-dsapp-datasource
/ : plugin folder copied into Grafana's plugin directory during install
- install-plugin.ps1 : Windows installer
- install-plugin.sh : Linux installer

## Windows

powershell -ExecutionPolicy Bypass -File .\install-plugin.ps1

Specify Grafana install path:

powershell -ExecutionPolicy Bypass -File .\install-plugin.ps1 -GrafanaPath "C:\Program Files\GrafanaLabs\grafana" -RestartGrafana

Specify plugin directory directly:

powershell -ExecutionPolicy Bypass -File .\install-plugin.ps1 -PluginDir "C:\Program Files\GrafanaLabs\grafana\data\plugins"

## Linux

chmod +x ./install-plugin.sh
./install-plugin.sh

Specify Grafana install path and restart immediately:

./install-plugin.sh --grafana-path /usr/share/grafana --restart

Specify plugin directory directly:

./install-plugin.sh --plugin-dir /var/lib/grafana/plugins

Environment variable form is also supported:

RESTART_GRAFANA=1 ./install-plugin.sh --grafana-path /usr/share/grafana
