hot sos em12c_metric_extensions
DESCRIPTION
HotSos 2013 Metric Extensions PresentationTRANSCRIPT
![Page 1: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/1.jpg)
EM12c Metric Extensions
Kellyn Pot’Vin
Sr. Techical Consultant
Designing, Deploying and Dynamic
Success
![Page 2: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/2.jpg)
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
![Page 3: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/3.jpg)
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.
![Page 4: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/4.jpg)
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.
![Page 5: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/5.jpg)
When Extend Current
Monitoring?
Specialized or proprietary applications could benefit from monitoring and alerting.
EM12c is all about adaptive and self-service.
Effective Monitoring of all mission-critical systems allows the business to be pro-active saving it time, resources and money.
![Page 6: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/6.jpg)
Why Not Enhance User
Defined Metrics?
No Library to store and view.
No development cycle support, (dev testdeploy)
Lack of versioning.
![Page 7: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/7.jpg)
Presentation Agenda
Metric Extensions
The Basics
The How
The Types
The Reasons
![Page 8: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/8.jpg)
Rules vs. Metric Thresholds • Rule are Set Globally.
• Rules are Independent of Database Metric Settings.
![Page 9: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/9.jpg)
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.
![Page 10: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/10.jpg)
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.
![Page 11: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/11.jpg)
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.
![Page 12: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/12.jpg)
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….
![Page 13: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/13.jpg)
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
![Page 14: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/14.jpg)
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!
![Page 15: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/15.jpg)
Development Life Cycle
![Page 16: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/16.jpg)
Enterprise > Monitoring >
Metric Extensions
![Page 17: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/17.jpg)
First Step, General
![Page 18: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/18.jpg)
OS Scripting, 2 Ways
![Page 19: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/19.jpg)
Creating Your Own Script
![Page 20: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/20.jpg)
Setting Input and Environment
Variables
![Page 21: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/21.jpg)
Adding Custom Files
For more complex metric extensions, you
can upload parameter files, support files,
etc.
![Page 22: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/22.jpg)
The Right Panel Display
Additional Info
![Page 23: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/23.jpg)
Adding Columns
The output of the report will decide the
layout and type of columns:
![Page 24: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/24.jpg)
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.
![Page 25: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/25.jpg)
Choose a Target
![Page 26: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/26.jpg)
Credentials
Choose a pre-existing setup or new?
![Page 27: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/27.jpg)
Completed Creation, Now
Test!
![Page 28: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/28.jpg)
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.
![Page 29: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/29.jpg)
The Finale!
Test, rinse, and repeat, (deploy/publish!)
Only publish once you are satisfied that all
testing was performed adequately.
![Page 30: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/30.jpg)
Check_Temp Library Bound!
![Page 31: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/31.jpg)
Publishing/Deploying/Retaining
![Page 32: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/32.jpg)
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.
![Page 33: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/33.jpg)
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
![Page 34: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/34.jpg)
Make it Easy on Yourself
emcli help <verb> is your friend…
![Page 35: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/35.jpg)
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.
![Page 36: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/36.jpg)
Links
Step by Step to create a metric extension from Rob Zoeteweij-
http://oemgc.files.wordpress.com/2012/05/using-metric-extensions-in-
em12c.pdf
Oracle: Create and Use Metric Extensions-
http://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: [email protected] or [email protected] or
![Page 37: Hot sos em12c_metric_extensions](https://reader034.vdocument.in/reader034/viewer/2022052410/554b9864b4c9052d448b4b59/html5/thumbnails/37.jpg)
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.