Kellyn Pot'Vin gave a presentation on metric extensions in Oracle Enterprise Manager 12c. Metric extensions allow users to customize monitoring by defining new metrics for non-standard applications and systems. The presentation covered the basics of metric extensions, how to create them using a wizard, different types of extensions, and reasons for using extensions to enhance monitoring. It provided details on developing, testing, and deploying extensions and emphasized the importance of testing extensions thoroughly before publishing them for use.
2. Kellyn Pot’Vin
Westminster,
Colorado
Oracle ACE, Sr. Technical Specialist at Enkitec
Specialize in performance and management of
large enterprise environments.
Board of directors for RMOUG, Director of
Training Days 2013 and Database Track
Committee for KSCOPE 2013
Blog: DBAKevlar.com
Twitter: @DBAKevlar
3. Why We Monitor our
Databases
Pro-active
notification of issues before
resulting in outages/impact to users.
Awareness of performance, resource
usage and demands.
Data collection to investigate
performance issues- current, recent and
historical.
Capacity planning.
4. Monitoring and Notification
Downfalls
Yahoo News- “Over 70% of workers would give
up shower[ing] to eliminate unnecessary
emails.”
Paging with “Successful” and/or “I’m OK”.
Not alerting for enough types of failures,
instead covering with when complete.
Paging on “Warning”
Setting Critical thresholds too high vs. giving
time to correct.
5. When Extend Current
Monitoring?
Specialized
or proprietary applications
could benefit from monitoring and
alerting.
EM12c is all about adaptive and selfservice.
Effective Monitoring of all mission-critical
systems allows the business to be proactive saving it time, resources and
money.
6. Why Not Enhance User
Defined Metrics?
No
Library to store and view.
No development cycle support, (dev
testdeploy)
Lack of versioning.
8. Rules vs. Metric Thresholds
• Rule are Set Globally.
• Rules are Independent of Database Metric Settings.
9. What Are Metric Extensions?
A dynamically configured extensions feature
allowing to monitor environment specific
conditions.
Simplifies monitoring of operational processes
that once only existed outside of the EM12c
console.
Eliminates requirements for secondary
monitoring and management tools.
Eliminate need for external scripting that may
require more monitoring logic than EM Jobs
can provide.
10. Metric Extensions Details
Metric Extensions replace the formerly known “User
Defined Metrics”
User Defined Metrics were limited to database and
host types, no longer with Metric Extensions.
Ability to build a metric extensions library to utilize for
your own environment.
Full development cycle support
Using specific protocols , the Oracle Integration
Adapter gathers data about targets for use with
metrics extensions.
11. Metric Extension “Verbage”
Metric
Extensions Use the following:
Target Type- Required to tell the metric
what “tools” will be required to monitor.
Adapter- The type of “communicator”
required to execute the metric extension.
Collection Frequency- Interval settings to
collect the information.
Columns- Returned data from output and
metric value settings.
12. Metric Extension Types
Host Level
Java, including Jboss, JVM, OC4J, etc.
Metadata Repository
OMS- OMS, Repository, Platform
Oracle Access Managers
Oracle BI
Oracle Exadata system and components
Oracle HTTP and Weblogic server
And others….
13. Metric Determines the
Adapter
Depending on the type of Target, the
Adapter used by the Metric Extension
Changes…
Java- JMX(Java Mgmt Extensions/OS
Cmds
Cluster Database- OS Cmd/SQL
Apache HTTP Server- OS CMD
14. The “More” of Metric
Extensions
A simple wizard allows for easy development
and refinement of metric extensions.
Ability to test metrics using the “Test Page”
allows an ability to run real-time metric
evaluations to ensure definitions and scripts
are free of errors before deploying.
Loved, stand-alone scripts, with small changes
can become metric extensions, too!
24. Column and Thresholds
The Percentage Used of Temp will be Returned as
part of the script, anything over 10 will alert a
warning, anything 25 in this column will alert
critical.
28. Testing
o Testing can be done as many times as
necessary.
o A full explanation of any failure is shown
in the “Error Message” Window.
o A full log of the tests are retained in the
Metric Extensions Testing History.
29. The Finale!
Test,
rinse, and repeat, (deploy/publish!)
Only publish once you are satisfied that all
testing was performed adequately.
32. Things to Remember
No Metric Extension is active UNTIL it is
deployed.
Just because a metric extension is in the
library, does not mean that it is ready to
deploy and should always be tested before
deployment.
You are deploying the metric extension to the
target, so if you are using a script, the script
will need to be on the (remote) target.
33. EM CLI and Metric Extensions
Metric Extension Verbs
export_metric_extension
-- Export a metric extension to an archive file
get_unused_metric_extensions
-- Get a list of unused metric extensions
import_metric_extension
-- Import a metric extension archive file
publish_metric_extension
-- Publish a metric extension for use by all administrators
save_metric_extension_draft
-- Save a deployable draft of a metric extension
34. Make it Easy on Yourself
emcli help <verb> is your friend…
35. Metric Extensions Summary
Create
development metric extension,
wizard will simplify process.
Test with test page and verify that all
steps, all features of the metric extension
test correctly.
Deploy to target separately or to groups.
Utilize to fulfill any missing areas in
monitoring environment.
36. Links
Step by Step to create a metric extension from Rob Zoeteweijhttp://oemgc.files.wordpress.com/2012/05/using-metric-extensions-inem12c.pdf
Oracle: Create and Use Metric Extensionshttp://www.oracle.com/webfolder/technetwork/tutorials/obe/em/em12c/
metric_extensions/Metric_Extensions.html
My Contact Info!
Company Website: www.enkitec.com
Blog: http://dbakevlar.com
Twitter: @DBAKevlar
RMOUG: www.rmoug.org
Linkedin: Kellyn Potvin and/or Rocky Mountain Oracle User Group
Email: dbakevlar@gmail.com or kpotvin@enkitec.com or
TrainingdaysDir@rmoug.org
37. Who: You and the world’s
leading authorities on
Exadata, all in one place.
What: Two days of deep
diving into the internals of all
things Exadata — providing
the tools and knowledge you
need to fully harness its
advanced powers.
When: E4 will be held on
August 5-6, 2013; 8:00 a.m. to
5 p.m. each day.
Where: Four Seasons Hotel &
Resort, Irving, Texas, AND
Online
Why: Because Exadata
machines everywhere want to
be fully understood and
appreciated.