You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manageability-and-operations/observability-and-manageability/database-management/Custom Metrics/README.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,27 @@
1
-
# Creating Metric Extensions for Database using OCI Database Management Service
1
+
# Creating Metric Extensions for Oracle Database using OCI Database Management Service
2
2
3
-
Metric Extensions are helpful when the metric you are looking for doesn't exist out of the box. In such cases, you may create your own custom metric and use it for monitoring the database.
3
+
Metric extensions are useful when the metric you are looking for does not exist out of the box. In such cases, you can create your own custom metric and use it for monitoring your database.
4
4
5
5
This guide explains how to create metric extensions step by step.
6
6
7
7
## What Are Metric Extensions?
8
8
9
-
**Metric Extensions** are custom, user-defined SQL-based metrics collected by OCI Database Management. They supplement standard metrics, providing additional insights (e.g., error counts, job statuses, or resource KPIs not tracked by default).
9
+
**Metric extensions** are custom, user-defined, SQL-based metrics collected by OCI Database Management. They supplement standard metrics, providing additional insights (for example, error counts, job statuses, or resource KPIs not tracked by default).
10
10
11
11
## Note
12
-
[Metric Extensions](https://docs.oracle.com/en-us/iaas/database-management/doc/work-metric-extensions.html#DBMGM-GUID-6D5E80AA-ABA5-4FBA-A63F-106CEE39C3F7)is currently only available for External Databases. Hence if the database is an OCI database, as in this case (Oracle Base Database), then it needs to be registered in Database Management as an External Database.
12
+
[Metric extensions](https://docs.oracle.com/en-us/iaas/database-management/doc/work-metric-extensions.html#DBMGM-GUID-6D5E80AA-ABA5-4FBA-A63F-106CEE39C3F7)are currently available **only for External Databases**. Therefore, if your database is an OCI database (as in this case, Oracle Base Database), it must be registered in Database Management as an External Database.
13
13
14
14
## Prerequisites
15
15
16
-
- OCI tenancy with Database Management enabled
17
-
- Target Oracle Database registered in Database Management as [External Database](https://docs.oracle.com/en-us/iaas/database-management/doc/external-database-related-prerequisite-tasks.html#DBMGM-GUID-84B74F18-F672-4DDC-8505-ACF249293D64)
18
-
-Have the required [policies](https://docs.oracle.com/en-us/iaas/database-management/doc/perform-general-oracle-cloud-infrastructure-prerequisite-tasks.html#DBMGM-GUID-DCC3067D-5123-468E-A938-D310CC685674) in place
16
+
- OCI tenancy with Database Management enabled.
17
+
- Target Oracle Database registered in Database Management as an [External Database](https://docs.oracle.com/en-us/iaas/database-management/doc/external-database-related-prerequisite-tasks.html#DBMGM-GUID-84B74F18-F672-4DDC-8505-ACF249293D64).
18
+
-Required [policies](https://docs.oracle.com/en-us/iaas/database-management/doc/perform-general-oracle-cloud-infrastructure-prerequisite-tasks.html#DBMGM-GUID-DCC3067D-5123-468E-A938-D310CC685674) in place.
Copy file name to clipboardExpand all lines: manageability-and-operations/observability-and-manageability/database-management/Custom Metrics/create_metric_extension.md
It may take a few seconds to a couple of minutes to complete the tests and return the results. Once you see “Success,” the results will be displayed.
72
-
61
+
<p>It may take a few seconds to a couple of minutes to complete the test and return the results. Once you see “Success,” the results will be displayed.</p>
Then you will be able to view this metric in the metric graph above.
86
+
<p>You will be able to view the metric in the chart above.</p>
98
87
</td>
99
88
<tdalign="left">
100
-
During testing phase, use the namespace ending with "appmgmt_test" to verify the metric is working correctly before publishing.
89
+
During the testing phase, use the namespace ending with <code>appmgmt_test</code> to verify that the metric is working as expected before publishing.
101
90
</td>
102
91
</tr>
103
92
104
93
<tr>
105
94
<tdalign="left">5</td>
106
95
<tdalign="left">
107
96
<b>Publish the Metric</b><br>
108
-
109
-
Now that we successfully see what we want, let us go ahead and publish this metric.<br>
110
-
Go back to the metric extension page, click on Publish and then confirm Publish.
111
-
97
+
<ul>
98
+
<li>Once you have confirmed the metric is working, return to the metric extension page and click on <b>Publish</b>. Then confirm the publish operation.</li>
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.
121
+
<p>This may take some time to execute. After you see success, check back after at least 5–6 minutes to see at least two metric points on the Metrics Explorer graph, as shown below.</p>
139
122
</td>
140
123
<tdalign="left">
141
-
Allow sufficient time for the metric collection to start. Initial data points may take 5-6 minutes to appear in the monitoring system.
124
+
Allow sufficient time for metric collection to start. Initial data points may take 5–6 minutes to appear in the monitoring system.
142
125
</td>
143
126
</tr>
144
127
145
128
<tr>
146
129
<tdalign="left">7</td>
147
130
<tdalign="left">
148
131
<b>View Metrics in Monitoring Service</b><br>
149
-
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>
151
-
132
+
<ul>
133
+
<li>After publishing the metric extension, make sure to select the namespace <code>appmgmt</code> (not the test one used earlier).</li>
-[How to enable OCI Observability for OCI native database deploy](https://medium.com/@erikasciunzi/enable-observability-for-oci-native-database-deploy-235484953e46)
17
+
-[Creating Metric Extensions for Oracle Database using OCI Database Management Service](./Custom%20Metrics/README.md)
0 commit comments