Skip to content

Commit

Permalink
Fix metrics dependency on default region #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimKomar committed Feb 21, 2020
1 parent 8216bc8 commit 353de89
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ grafana-cli plugins install oci-datasource
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/).

### Manually installation
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/V1.0.5/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`.
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/V1.0.7/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`.

To start the Grafana server, run: `sudo systemctl start grafana-server`.

Expand Down
2 changes: 1 addition & 1 deletion docs/linuxoci.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ grafana-cli plugins install oci-datasource
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/).

### Manually installation
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/V1.0.5/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`.
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/V1.0.7/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`.

To start the Grafana server, run: `sudo systemctl start grafana-server`.

Expand Down
2 changes: 1 addition & 1 deletion docs/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ grafana-cli plugins install oci-datasource
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/).

### Manually installation
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/V1.0.5/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`
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/V1.0.7/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`

To start the Grafana server, run: `brew services start grafana`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oci-grafana-plugin",
"private": true,
"version": "1.0.5",
"version": "1.0.7",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
{"name": "GitHub", "url": "https://github.com/oracle/oci-grafana-plugin"},
{"name": "MIT License", "url": "https://github.com/oracle/oci-grafana-plugin"}
],
"version": "1.0.6",
"updated": "2020-01-23"
"version": "1.0.7",
"updated": "2020-02-20"
},

"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/datasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default class OCIDatasource {
return this.templateMetricQuery(target);
}

const region = target.region === SELECT_PLACEHOLDERS.REGION ? '' : this.getVariableValue(region);
const region = target.region === SELECT_PLACEHOLDERS.REGION ? '' : this.getVariableValue(target.region);
const compartment = target.compartment === SELECT_PLACEHOLDERS.COMPARTMENT ? '' : this.getVariableValue(target.compartment);
const namespace = target.namespace === SELECT_PLACEHOLDERS.NAMESPACE ? '' : this.getVariableValue(target.namespace);

Expand Down
4 changes: 2 additions & 2 deletions src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
{"name": "GitHub", "url": "https://github.com/oracle/oci-grafana-plugin"},
{"name": "UPL", "url": "https://oss.oracle.com/licenses/upl"}
],
"version": "1.0.6",
"updated": "2020-01-23"
"version": "1.0.7",
"updated": "2020-02-20"
},

"dependencies": {
Expand Down

0 comments on commit 353de89

Please sign in to comment.