Skip to content

Commit 05dafb1

Browse files
new updates to main doc
new updates to main doc
1 parent 4a73285 commit 05dafb1

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

manageability-and-operations/observability-and-manageability/database-management/Custom Metrics/create_metric_extension.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ Confirm Enable again when asked.<br>
133133

134134
<img src="./images/ME11.png" height="100" width="200"><br>
135135

136+
<img src="./images/ME12.png" height="100" width="200"><br>
136137

137138
This will take some time to execute and once you see success, check back after at least 5–6 minutes to see at least 2 metric points on the Metrics Explorer graph as shown below.
138139
</td>
@@ -144,17 +145,18 @@ Allow sufficient time for the metric collection to start. Initial data points ma
144145
<tr>
145146
<td align="left">7</td>
146147
<td align="left">
147-
**View Metrics in Monitoring Service**
148+
<b>View Metrics in Monitoring Service</b><br>
148149

149-
Now that we have already published the metric extension, make sure to select the namespace appmgmt and not the test one as before.
150+
Now that we have already published the metric extension, make sure to select the namespace appmgmt and not the test one as before.<br>
150151

151-
<img src="../images/MONITORING_PROD.png" height="100" width="200" align="left">
152+
<img src="./images/ME13.png" height="100" width="200"><br>
152153

153-
&nbsp;
154+
Click on Update Chart and review the graph.<br>
155+
<img src="./images/ME14.png" height="100" width="200"><br>
154156

155-
Click on Update Chart and review the graph.
157+
Click on Show Data Table to see the metric values clearly<br>
158+
<img src="./images/ME15.png" height="100" width="200"><br>
156159

157-
Click on Show Data Table to see the metric values clearly.
158160
</td>
159161
<td align="left">
160162
After publishing, use the "appmgmt" namespace (not the test namespace) to view production metrics data.
@@ -164,7 +166,7 @@ After publishing, use the "appmgmt" namespace (not the test namespace) to view p
164166
<tr>
165167
<td align="left">8</td>
166168
<td align="left">
167-
**Example 2: PDB-Level Metric — % Used in SYSTEM Tablespace in PDB**
169+
<b>Create Metric Extension at the PDB level — % Storage Used in SYSTEM Tablespace in PDB</b><br><br>
168170

169171
```sql
170172
SELECT
@@ -180,13 +182,11 @@ FROM
180182

181183
Use this when Target Level is PDB.
182184

183-
Follow the exact same steps as we did for CDB query above. I will only note the changes below.
184-
185-
Select Pluggable DB for PDB level query. Test, Publish and Enable as we did earlier.
185+
Follow the exact same steps as we did for CDB query above. I will only note the changes below.<br>
186+
<img src="./images/ME16.png" height="100" width="200"><br>
187+
Select Pluggable DB for PDB level query. Test, Publish and Enable as we did earlier.<br>
188+
<img src="./images/ME17.png" height="100" width="200"><br>
186189

187-
<img src="../images/PDB_METRIC.png" height="100" width="200" align="left">
188-
189-
&nbsp;
190190
</td>
191191
<td align="left">
192192
For PDB-level metrics, ensure you select "Pluggable DB" as the target level and that the SQL query is appropriate for PDB context.
@@ -196,15 +196,14 @@ For PDB-level metrics, ensure you select "Pluggable DB" as the target level and
196196
<tr>
197197
<td align="left">9</td>
198198
<td align="left">
199-
**View PDB Metrics**
199+
<b>View PDB Metrics</b><br>
200200

201-
Go to Monitoring -> Metrics Explorer and select these options.
201+
Go to Monitoring -> Metrics Explorer and select these options.<br>
202202

203-
<img src="../images/PDB_MONITORING.png" height="100" width="200" align="left">
203+
<img src="./images/ME18.png" height="100" width="200"><br>
204204

205-
&nbsp;
206-
207-
Click on Update to view the captured metrics.
205+
Click on Update to view the captured metrics.<br>
206+
<img src="./images/ME19.png" height="100" width="200"><br>
208207
</td>
209208
<td align="left">
210209
PDB-level metrics will appear under the same monitoring namespace but will be specific to the pluggable database context.
@@ -224,7 +223,7 @@ PDB-level metrics will appear under the same monitoring namespace but will be sp
224223
- Output columns or types are incorrect.
225224

226225
Here's an example of what an incorrect SQL query error would look like during Test phase.
227-
226+
<img src="./images/ME20.png" height="100" width="200"><br>
228227
Hence login to the DB beforehand and test the SQL first to ensure the queries are valid and return the expected data.
229228

230229
---

0 commit comments

Comments
 (0)