mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 08:23:34 +01:00
Automatic update Grafana datasource docs from VictoriaMetrics/grafana-datasource@c644bec (#5691)
This commit is contained in:
parent
a2f83115ae
commit
b8a4a78fef
@ -57,6 +57,16 @@ See [why VictoriaMetrics datasource is unsigned](#why-victoriaMetrics-datasource
|
|||||||
For detailed instructions on how to install the plugin on Grafana Cloud or
|
For detailed instructions on how to install the plugin on Grafana Cloud or
|
||||||
locally, please checkout the [Plugin installation docs](https://grafana.com/docs/grafana/latest/plugins/installation/).
|
locally, please checkout the [Plugin installation docs](https://grafana.com/docs/grafana/latest/plugins/installation/).
|
||||||
|
|
||||||
|
### Install via Docker
|
||||||
|
|
||||||
|
[VictoriaMetrics repo](https://github.com/victoriaMetrics/victoriaMetrics) provides a complete
|
||||||
|
[docker-compose](https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/deployment/docker#docker-compose-environment-for-victoriametrics)
|
||||||
|
environment to spin-up all required components via Docker.
|
||||||
|
|
||||||
|
To begin, clone [VictoriaMetrics](https://github.com/VictoriaMetrics/VictoriaMetrics) repository and follow
|
||||||
|
steps described in the [README](https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/deployment/docker#docker-compose-environment-for-victoriametrics).
|
||||||
|
|
||||||
|
|
||||||
### Grafana Provisioning
|
### Grafana Provisioning
|
||||||
|
|
||||||
Provision of Grafana plugin requires to create
|
Provision of Grafana plugin requires to create
|
||||||
@ -109,7 +119,7 @@ Please find the example of provisioning Grafana instance with VictoriaMetrics da
|
|||||||
|
|
||||||
1. Download the latest release:
|
1. Download the latest release:
|
||||||
|
|
||||||
```bash
|
``` bash
|
||||||
ver=$(curl -s https://api.github.com/repos/VictoriaMetrics/grafana-datasource/releases/latest | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1)
|
ver=$(curl -s https://api.github.com/repos/VictoriaMetrics/grafana-datasource/releases/latest | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1)
|
||||||
curl -L https://github.com/VictoriaMetrics/grafana-datasource/releases/download/$ver/victoriametrics-datasource-$ver.tar.gz -o plugin.tar.gz
|
curl -L https://github.com/VictoriaMetrics/grafana-datasource/releases/download/$ver/victoriametrics-datasource-$ver.tar.gz -o plugin.tar.gz
|
||||||
tar -xf plugin.tar.gz -C ./victoriametrics-datasource
|
tar -xf plugin.tar.gz -C ./victoriametrics-datasource
|
||||||
@ -143,7 +153,7 @@ docker-compose -f docker-compose.yaml up
|
|||||||
When Grafana starts successfully datasources should be present on the datasources tab
|
When Grafana starts successfully datasources should be present on the datasources tab
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<img src="grafana-datasource_provision_datasources.webp" width="800" alt="Configuration">
|
<img src="provision_datasources.png" width="800" alt="Configuration">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
### Install in Kubernetes
|
### Install in Kubernetes
|
||||||
@ -239,7 +249,7 @@ spec:
|
|||||||
allow_loading_unsigned_plugins: victoriametrics-datasource
|
allow_loading_unsigned_plugins: victoriametrics-datasource
|
||||||
```
|
```
|
||||||
|
|
||||||
See [Grafana operator reference](https://grafana.github.io/grafana-operator/docs/grafana/) to find more about
|
See [Grafana operator reference](https://grafana-operator.github.io/grafana-operator/docs/grafana/) to find more about
|
||||||
Grafana operator.
|
Grafana operator.
|
||||||
This example uses init container to download and install plugin.
|
This example uses init container to download and install plugin.
|
||||||
|
|
||||||
@ -248,7 +258,7 @@ This example uses init container to download and install plugin.
|
|||||||
|
|
||||||
1. To download plugin build and move contents into Grafana plugins directory:
|
1. To download plugin build and move contents into Grafana plugins directory:
|
||||||
|
|
||||||
```bash
|
``` bash
|
||||||
ver=$(curl -s https://api.github.com/repos/VictoriaMetrics/grafana-datasource/releases/latest | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1)
|
ver=$(curl -s https://api.github.com/repos/VictoriaMetrics/grafana-datasource/releases/latest | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1)
|
||||||
curl -L https://github.com/VictoriaMetrics/grafana-datasource/releases/download/$ver/victoriametrics-datasource-$ver.tar.gz -o /var/lib/grafana/plugins/plugin.tar.gz
|
curl -L https://github.com/VictoriaMetrics/grafana-datasource/releases/download/$ver/victoriametrics-datasource-$ver.tar.gz -o /var/lib/grafana/plugins/plugin.tar.gz
|
||||||
tar -xf /var/lib/grafana/plugins/plugin.tar.gz -C /var/lib/grafana/plugins/
|
tar -xf /var/lib/grafana/plugins/plugin.tar.gz -C /var/lib/grafana/plugins/
|
||||||
@ -262,19 +272,14 @@ This example uses init container to download and install plugin.
|
|||||||
|
|
||||||
### 1. Configure Grafana
|
### 1. Configure Grafana
|
||||||
Installing dev version of Grafana plugin requires to change `grafana.ini` config to allow loading unsigned plugins:
|
Installing dev version of Grafana plugin requires to change `grafana.ini` config to allow loading unsigned plugins:
|
||||||
|
|
||||||
{% raw %}
|
|
||||||
``` ini
|
``` ini
|
||||||
# Directory where Grafana will automatically scan and look for plugins
|
# Directory where Grafana will automatically scan and look for plugins
|
||||||
plugins = {{path to directory with plugin}}
|
plugins = {{path to directory with plugin}}
|
||||||
```
|
```
|
||||||
{% endraw %}
|
|
||||||
|
|
||||||
``` ini
|
``` ini
|
||||||
[plugins]
|
[plugins]
|
||||||
allow_loading_unsigned_plugins = victoriametrics-datasource
|
allow_loading_unsigned_plugins = victoriametrics-datasource
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Run the plugin
|
### 2. Run the plugin
|
||||||
In the project directory, you can run:
|
In the project directory, you can run:
|
||||||
```
|
```
|
||||||
|
BIN
docs/provision_datasources.png
Normal file
BIN
docs/provision_datasources.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 524 KiB |
Loading…
Reference in New Issue
Block a user