Skip to content

Commit 7552c46

Browse files
author
hugovalente-pm
committed
reviewed after releases were completed
1 parent 6493997 commit 7552c46

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

README.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ To remove container:
6363
> `setup-demo-environment.sh remove`
6464
6565
This script will:
66+
1. Spin up a grafana container without starting grafana itself
6667
1. 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

7777
2. 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

8183
3. 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

8688
4. 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

9395
1. 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

97101
2. 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

101105
3. 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

106110
4. Ensure that Netdata plugin which currently isn’t signed can be registered
107111

@@ -123,18 +127,20 @@ This script will:
123127

124128
1. 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

128134
2. 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

132138
3. 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

139145
4. Ensure that Netdata plugin which currently isn’t signed can be registered
140146

0 commit comments

Comments
 (0)