Skip to content

Commit 806c115

Browse files
author
Mattia Moretti
authored
v650 (#314)
* v650 * docs preliminary * custom region * multi * ready doc * removed debug printout
1 parent 752135a commit 806c115

File tree

8 files changed

+58
-11
lines changed

8 files changed

+58
-11
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<a name="v6.5.0"></a>
2+
# [Security Maintenance release (v6.5.0)](https://github.com/oracle/oci-grafana-metrics/releases/tag/v6.5.0) - 05 Feb 2025
3+
4+
This release includes:
5+
6+
- Support for DRCC/Alloy Regions
7+
- Updated version of OCI Golang libraries to v65.81.3
8+
- Some bug fixes
9+
- Support for Custom Region
10+
11+
[Changes][v6.5.0]
12+
13+
114
<a name="v6.0.3"></a>
215
# [Security Maintenance release (v6.0.3)](https://github.com/oracle/oci-grafana-metrics/releases/tag/v6.0.3) - 26 Nov 2024
316

docs/images/custom_region.png

86.3 KB
Loading

docs/images/standard_region.png

70.2 KB
Loading

docs/linux.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,24 @@ You can then choose between two different modes as **Tenancy mode**:
153153
If you selected **single** as **Tenancy mode** then fill in the following credentials:
154154

155155
* `Profile Name` - A user-defined name for this profile. In **single** mode this is automatically set to **DEFAULT** and cannot be modified.
156+
* `Dedicated Region` (optional) - Toggle this to configure dedicated Region and domain such as in DRCC/Alloy Regions (not needed for commercial or sovereign regions)
156157
* `Region` - An OCI region. To get the value, see [**Getting Region Configuration value**](#getting-the-region).
157-
* `User OCID` - OCID of the user calling the API. To get the value, see [**Getting User OCID Configuration value**](#getting-the-user-OCID).*
158+
* `User OCID` - OCID of the user calling the API. To get the value, see [**Getting User OCID Configuration value**](#getting-the-user-OCID).
158159
* `Tenancy OCID` - OCID of your tenancy. To get the value, see [**Getting Tenancy OCID Configuration value**](#getting-the-tenancy-OCID).
159160
* `Fingerprint` - Fingerprint for the key pair being used. To get the value, see [**Getting Fingerprint Configuration value**](#getting-the-private-api-key-and-fingerprint).
160161
* `Private Key` - The contents of the private key file. To get the value, see [**Getting Private Key Configuration value**](#getting-the-private-api-key-and-fingerprint).
161162

162163
The configured data source will look like the following:
163164

164-
![Datasource Filled](images/datasource_conf_filled.png)
165+
![Datasource Filled](images/standard_region.png)
166+
167+
In case you are setting up a Dedicated Region, you must provide these two additional information:
168+
* `Region` - The DRCC/Alloy region. To get the value, see [**Getting Region Configuration value**](#getting-the-region).
169+
* `Domain` - The first level domain of your Dedicated Region.
170+
171+
The configured data source with dedicated Region and domain configuration will look like the following:
172+
173+
![Datasource Filled](images/custom_region.png)
165174

166175
Click **Save & Test** to return to the home dashboard.
167176

@@ -170,6 +179,7 @@ Click **Save & Test** to return to the home dashboard.
170179
If you selected **multi** as **Tenancy mode** then fill in the following credentials for **each Tenancy you want to configure (up to 5 additional tenancies)**:
171180

172181
* `Profile Name` - A user-defined name for this profile. The first Tenancy is automatically set to **DEFAULT** and cannot be modified. You need to specify a custom and unique Profile name for each of the additional tenancies.
182+
* `Dedicated Region` (optional) - Toggle this to configure dedicated Region and domain such as in DRCC/Alloy Regions (not needed for commercial or sovereign regions)
173183
* `Region` - An OCI region. To get the value, see [**Getting Region Configuration value**](#getting-the-region).
174184
* `User OCID` - OCID of the user calling the API. To get the value, see [**Getting User OCID Configuration value**](#getting-the-user-OCID).
175185
* `Tenancy OCID` - OCID of your tenancy. To get the value, see [**Getting Tenancy OCID Configuration value**](#getting-the-tenancy-OCID).
@@ -182,9 +192,17 @@ The configured data source will look like the following:
182192

183193
![Datasource Filled](images/multitenancy_configured.png)
184194

195+
In case you are setting up a Dedicated Region, you must provide these two additional information:
196+
* `Region` - The DRCC/Alloy region. To get the value, see [**Getting Region Configuration value**](#getting-the-region).
197+
* `Domain` - The first level domain of your Dedicated Region.
198+
199+
The configured data source with dedicated Region and domain configuration will look like the following:
200+
201+
![Datasource Filled](images/custom_region.png)
202+
185203
Click **Save & Test** to return to the home dashboard.
186204

187-
After the initial configuration, you can modify the datasource by adding a new tenancy by clicking on the **Add another Tenancy** checkbox and filling in the additional credentials. You can also disable a configured Tenancy leaving ampty the **Profile Name** as in this screenshot:
205+
After the initial configuration, you can modify the datasource by adding a new tenancy by clicking on the **Add another Tenancy** checkbox and filling in the additional credentials. You can also disable a configured Tenancy leaving empty the **Profile Name** as in this screenshot:
188206

189207
![Tenancy Disabled](images/multi_disable.png)
190208

docs/macos.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,24 @@ You can then choose between two different modes as **Tenancy mode**:
154154
If you selected **single** as **Tenancy mode** then fill in the following credentials:
155155

156156
* `Profile Name` - A user-defined name for this profile. In **single** mode this is automatically set to **DEFAULT** and cannot be modified.
157+
* `Dedicated Region` (optional) - Toggle this to configure dedicated Region and domain such as in DRCC/Alloy Regions (not needed for commercial or sovereign regions)
157158
* `Region` - An OCI region. To get the value, see [**Getting Region Configuration value**](#getting-the-region).
158-
* `User OCID` - OCID of the user calling the API. To get the value, see [**Getting User OCID Configuration value**](#getting-the-user-OCID).*
159+
* `User OCID` - OCID of the user calling the API. To get the value, see [**Getting User OCID Configuration value**](#getting-the-user-OCID).
159160
* `Tenancy OCID` - OCID of your tenancy. To get the value, see [**Getting Tenancy OCID Configuration value**](#getting-the-tenancy-OCID).
160161
* `Fingerprint` - Fingerprint for the key pair being used. To get the value, see [**Getting Fingerprint Configuration value**](#getting-the-private-api-key-and-fingerprint).
161162
* `Private Key` - The contents of the private key file. To get the value, see [**Getting Private Key Configuration value**](#getting-the-private-api-key-and-fingerprint).
162163

163164
The configured data source will look like the following:
164165

165-
![Datasource Filled](images/datasource_conf_filled.png)
166+
![Datasource Filled](images/standard_region.png)
167+
168+
In case you are setting up a Dedicated Region, you must provide these two additional information:
169+
* `Region` - The DRCC/Alloy region. To get the value, see [**Getting Region Configuration value**](#getting-the-region).
170+
* `Domain` - The first level domain of your Dedicated Region.
171+
172+
The configured data source with dedicated Region and domain configuration will look like the following:
173+
174+
![Datasource Filled](images/custom_region.png)
166175

167176
Click **Save & Test** to return to the home dashboard.
168177

@@ -171,6 +180,7 @@ Click **Save & Test** to return to the home dashboard.
171180
If you selected **multi** as **Tenancy mode** then fill in the following credentials for **each Tenancy you want to configure (up to 5 additional tenancies)**:
172181

173182
* `Profile Name` - A user-defined name for this profile. The first Tenancy is automatically set to **DEFAULT** and cannot be modified. You need to specify a custom and unique Profile name for each of the additional tenancies.
183+
* `Dedicated Region` (optional) - Toggle this to configure dedicated Region and domain such as in DRCC/Alloy Regions (not needed for commercial or sovereign regions)
174184
* `Region` - An OCI region. To get the value, see [**Getting Region Configuration value**](#getting-the-region).
175185
* `User OCID` - OCID of the user calling the API. To get the value, see [**Getting User OCID Configuration value**](#getting-the-user-OCID).
176186
* `Tenancy OCID` - OCID of your tenancy. To get the value, see [**Getting Tenancy OCID Configuration value**](#getting-the-tenancy-OCID).
@@ -183,9 +193,17 @@ The configured data source will look like the following:
183193

184194
![Datasource Filled](images/multitenancy_configured.png)
185195

196+
In case you are setting up a Dedicated Region, you must provide these two additional information:
197+
* `Region` - The DRCC/Alloy region. To get the value, see [**Getting Region Configuration value**](#getting-the-region).
198+
* `Domain` - The first level domain of your Dedicated Region.
199+
200+
The configured data source with dedicated Region and domain configuration will look like the following:
201+
202+
![Datasource Filled](images/custom_region.png)
203+
186204
Click **Save & Test** to return to the home dashboard.
187205

188-
After the initial configuration, you can modify the datasource by adding a new tenancy by clicking on the **Add another Tenancy** checkbox and filling in the additional credentials. You can also disable a configured Tenancy leaving ampty the **Profile Name** as in this screenshot:
206+
After the initial configuration, you can modify the datasource by adding a new tenancy by clicking on the **Add another Tenancy** checkbox and filling in the additional credentials. You can also disable a configured Tenancy leaving empty the **Profile Name** as in this screenshot:
189207

190208
![Tenancy Disabled](images/multi_disable.png)
191209

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "oci-metrics-datasource",
33
"private": true,
4-
"version": "6.0.3",
4+
"version": "6.5.0",
55
"description": "Oracle Cloud Infrastructure Metrics Data Source for Grafana",
66
"scripts": {
77
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",

pkg/plugin/plugin.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,6 @@ func (o *OCIDatasource) getConfigProvider(environment string, tenancymode string
371371
host_custom_identity := common.StringToRegion(q.customregion[key]).EndpointForTemplate("identity", "https://identity."+q.customregion[key]+"."+q.customdomain[key])
372372
monitoringClient.Host = host_custom_telemetry
373373
identityClient.Host = host_custom_identity
374-
backend.Logger.Debug("getConfigProvider", "monitoringClient.Host", monitoringClient.Host)
375-
backend.Logger.Debug("getConfigProvider", "identityClient.Host", identityClient.Host)
376374
}
377375

378376
tenancyocid, err := configProvider.TenancyOCID()

src/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
},
2424
{ "name": "UPL", "url": "https://oss.oracle.com/licenses/upl" }
2525
],
26-
"version": "6.0.3",
27-
"updated": "2024-10-13",
26+
"version": "6.5.0",
27+
"updated": "2025-02-05",
2828
"screenshots":[
2929
{
3030
"name":"OCI Metrics Dashboard",

0 commit comments

Comments
 (0)