@@ -63,10 +63,10 @@ To remove container:
6363> ` setup-demo-environment.sh remove `
6464
6565This script will:
66+ 1 . Spin up a grafana container without starting grafana itself
66671 . Retrieve the latest available release of the Netdata datasource plugin
67- 2 . Spin up a grafana container running on port ` 3000 ` that will allow installing this unsigned plugin
68- 3 . Install the Netdata datasource plugin in ` /var/lib/grafana/plugins `
69- 4 . Start the container again
68+ 1 . Install the Netdata datasource plugin in /var/lib/grafana/plugins
69+ 1 . Start grafana
7070
7171#### Manual step-by-step
7272
@@ -76,7 +76,9 @@ This script will:
7676
77772 . Ensure you have the desired version of the plugin you want to install, get it from github releases
7878
79- ` git clone https://github.com/netdata/netdata-grafana-datasource-plugin `
79+ ``` curl -s https://api.github.com/repos/netdata/netdata-grafana-datasource-plugin/releases/latest \
80+ jq -r '.assets[] | select(.name|match("zip$")) | .browser_download_url'
81+ ```
8082
81833 . Grafana plugins, by default, should be under /var/lib/grafana/plugins. Create a folder for netdata inside the container. Enter in an interactive session
8284
@@ -85,23 +87,25 @@ This script will:
8587
86884 . Copy the contents of the Netdata data source plugin to the new plugin folder created on step 2
8789
88- ` tar -xvf netdata…..tar.gz `
89- ` docker cp dist grafana:/var/lib/grafana/plugins/ `
90+ ` unzip netdata-datasource-<version_number>.zip `
91+ ` docker cp netdata-datasource grafana:/var/lib/grafana/plugins/netdata / `
9092
9193### Linux (local)
9294
93951 . Ensure you have the desired version of the plugin you want to install, get it from github releases
9496
95- ` git clone https://github.com/netdata/netdata-grafana-datasource-plugin `
97+ ``` curl -s https://api.github.com/repos/netdata/netdata-grafana-datasource-plugin/releases/latest \
98+ jq -r '.assets[] | select(.name|match("zip$")) | .browser_download_url'
99+ ```
96100
971012 . Grafana plugins, by default, should be under /var/lib/grafana/plugins. Create a folder for netdata
98102
99103 ` mkdir /var/lib/grafana/plugins/netdata `
100104
1011053 . Copy the contents of the Netdata data source plugin to the new plugin folder created on step 2
102106
103- ` tar -xvf netdata…..tar.gz `
104- ` cp -rf dist/ * /var/lib/grafana/plugins/netdata/ `
107+ ` unzip netdata-datasource-<version_number>.zip `
108+ ` cp -rf ./netdata-datasource * /var/lib/grafana/plugins/netdata/ `
105109
1061104 . Ensure that Netdata plugin which currently isn’t signed can be registered
107111
@@ -123,18 +127,20 @@ This script will:
123127
1241281 . Ensure you have the desired version of the plugin you want to install, get it from github releases
125129
126- ` git clone https://github.com/netdata/netdata-grafana-datasource-plugin `
130+ ``` curl -s https://api.github.com/repos/netdata/netdata-grafana-datasource-plugin/releases/latest \
131+ jq -r '.assets[] | select(.name|match("zip$")) | .browser_download_url'
132+ ```
127133
1281342 . Grafana plugins, by default, should be under C:\Program Files\GrafanaLabs\grafana\data\plugins. Create a folder for netdata
129135
130136 ` mkdir ‘C:\Program Files\GrafanaLabs\grafana\data\plugins\netdata’ `
131137
1321383 . Copy the contents of the Netdata data source plugin to the new plugin folder created on step 2
133139
134- ` wzunzip -d file.gz `
140+ ` wzunzip -d netdata-datasource-<version_number>.zip `
135141 or
136- ` gzip -d < file.tar.gz | tar xvf - `
137- ` cp .\dist \* "C:\Program Files\GrafanaLabs\grafana\data\plugins\netdata" `
142+ ` gzip -d < netdata-datasource-<version_number>.zip `
143+ ` cp .\netdata-datasource \* "C:\Program Files\GrafanaLabs\grafana\data\plugins\netdata" `
138144
1391454 . Ensure that Netdata plugin which currently isn’t signed can be registered
140146
0 commit comments