Skip to content

Commit ae0a722

Browse files
committed
Updated versions and upgraded grafana
- Updated version with same numbers in src/plugin.json and package.json - Upgraded grafana to the latest release | From 3.x to 7.3.x - Added gBuild script for grafana build and made some changes in package.json - Build file changes
1 parent 9ec7513 commit ae0a722

File tree

8 files changed

+22
-15
lines changed

8 files changed

+22
-15
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ coverage/
3636
dist/
3737
*_orig
3838
.idea
39+
40+
#Ignore the built tar and zip files
41+
*.tar
42+
*.zip

Gopkg.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ GOOS=$GOOS go build -o ./dist/oci-plugin$POST
4444
GOOS=windows GOARCH=amd64 go build -o ./dist/oci-plugin_windows_amd64.exe
4545
tar cvf plugin.tar ./dist
4646

47+
#For grafana publishing
48+
#yarn install --pure-lockfile && yarn build

docs/linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ grafana-cli plugins install oci-datasource
4242
The plugin will be installed into your Grafana plugins directory, which by default is located at /var/lib/grafana/plugins. [Here is more information on the CLI tool](http://docs.grafana.org/plugins/installation/).
4343

4444
### Manual installation
45-
Alternatively, you can manually download the .tar file and unpack it into your /grafana/plugins directory. To do so, change to the Grafana plugins directory: `cd /usr/local/var/lib/grafana/plugins`. Download the OCI Grafana Plugin: wget `https://github.com/oracle/oci-grafana-plugin/releases/download/v2.0.1/plugin.tar`. Create a directory and install the plugin: `mkdir oci && tar -C oci -xvf plugin.tar` and then remove the tarball: `rm plugin.tar`.
45+
Alternatively, you can manually download the .tar file and unpack it into your /grafana/plugins directory. To do so, change to the Grafana plugins directory: `cd /usr/local/var/lib/grafana/plugins`. Download the OCI Grafana Plugin: wget `https://github.com/oracle/oci-grafana-plugin/releases/download/v2.2.0/plugin.tar`. Create a directory and install the plugin: `mkdir oci && tar -C oci -xvf plugin.tar` and then remove the tarball: `rm plugin.tar`.
4646

4747
> **Additional step for Grafana 7**. Open the grafana configuration *grafana.ini* file and add the `allow_loading_unsigned_plugins = "oci-datasource"`in the *plugins* section.
4848

docs/linuxoci.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ grafana-cli plugins install oci-metrics-datasource
3535
The plugin will be installed into your Grafana plugins directory, which by default is located at /var/lib/grafana/plugins. [Here is more information on the CLI tool](http://docs.grafana.org/plugins/installation/).
3636

3737
### Manually installation
38-
Alternatively, you can manually download the .tar file and unpack it into your /grafana/plugins directory. To do so, change to the Grafana plugins directory: `cd /usr/local/var/lib/grafana/plugins`. Download the OCI Grafana Plugin: wget `https://github.com/oracle/oci-grafana-plugin/releases/download/v2.0.1/plugin.tar`. Create a directory and install the plugin: `mkdir oci && tar -C oci -xvf plugin.tar` and then remove the tarball: `rm plugin.tar`.
38+
Alternatively, you can manually download the .tar file and unpack it into your /grafana/plugins directory. To do so, change to the Grafana plugins directory: `cd /usr/local/var/lib/grafana/plugins`. Download the OCI Grafana Plugin: wget `https://github.com/oracle/oci-grafana-plugin/releases/download/v2.2.0/plugin.tar`. Create a directory and install the plugin: `mkdir oci && tar -C oci -xvf plugin.tar` and then remove the tarball: `rm plugin.tar`.
3939

4040
> **Additional step for Grafana 7**. Open the grafana configuration *grafana.ini* file and add the `allow_loading_unsigned_plugins = "oci-datasource"`in the *plugins* section.
4141

docs/macos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ grafana-cli plugins install oci-metrics-datasource
4040
The plugin will be installed into your Grafana plugins directory, which by default is located at /var/lib/grafana/plugins. [Here is more information on the CLI tool](http://docs.grafana.org/plugins/installation/).
4141

4242
### Manually installation
43-
Alternatively, you can manually download the .tar file and unpack it into your /grafana/plugins directory. To do so, change to the Grafana plugins directory: `cd /usr/local/var/lib/grafana/plugins`. Download the OCI Grafana Plugin: wget `https://github.com/oracle/oci-grafana-plugin/releases/download/v2.0.1/plugin.tar`. Create a directory and install the plugin: `mkdir oci && tar -C oci -xvf plugin.tar` and then remove the tarball: `rm plugin.tar`
43+
Alternatively, you can manually download the .tar file and unpack it into your /grafana/plugins directory. To do so, change to the Grafana plugins directory: `cd /usr/local/var/lib/grafana/plugins`. Download the OCI Grafana Plugin: wget `https://github.com/oracle/oci-grafana-plugin/releases/download/v2.2.0/plugin.tar`. Create a directory and install the plugin: `mkdir oci && tar -C oci -xvf plugin.tar` and then remove the tarball: `rm plugin.tar`
4444

4545
> **Additional step for Grafana 7**. Open the grafana configuration *grafana.ini* file and add the `allow_loading_unsigned_plugins = "oci-datasource"`in the *plugins* section.
4646

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
2-
"name": "oci-grafana-plugin",
2+
"name": "oci-metrics-datasource",
33
"private": true,
4-
"version": "2.0.1",
5-
"description": "",
4+
"version": "2.2.0",
5+
"description": "Oracle Cloud Infrastructure Metrics Data Source for Grafana",
66
"main": "index.js",
77
"scripts": {
88
"buildjs": "./node_modules/.bin/grunt",
99
"lint": "./node_modules/.bin/eslint src/",
1010
"fix": "./node_modules/.bin/eslint --fix src/",
1111
"bump": "./node_modules/.bin/grunt bump",
12-
"test": "jest src/ --coverage"
12+
"test": "jest src/ --coverage",
13+
"gBuild" : "yarn install --pure-lockfile && yarn buildjs && zip ${npm_package_name}-${npm_package_version}.zip ./dist -r"
1314
},
1415
"author": "",
1516
"license": "UPL",

src/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
{"name": "GitHub", "url": "https://github.com/oracle/oci-grafana-plugin"},
2727
{"name": "UPL", "url": "https://oss.oracle.com/licenses/upl"}
2828
],
29-
"version": "1.1.4",
29+
"version": "2.2.0",
3030
"updated": "2020-12-08"
3131
},
3232

3333
"dependencies": {
34-
"grafanaVersion": "3.x.x",
34+
"grafanaVersion": "7.3.x",
3535
"plugins": [ ]
3636
}
3737
}

0 commit comments

Comments
 (0)