EM12c Metric Extensions
Designing, Deploying and Dynamic
Success
Kellyn Pot’Vin
Sr. Techical Consultant
Kellyn Pot’Vin
 Westminster,

Colorado
 Oracle ACE, Sr. Technical Specialist at Enkitec
 Specialize in performance and ...
Why We Monitor our
Databases
 Pro-active

notification of issues before
resulting in outages/impact to users.
 Awareness...
Monitoring and Notification
Downfalls
Yahoo News- “Over 70% of workers would give
up shower[ing] to eliminate unnecessary
...
When Extend Current
Monitoring?
 Specialized

or proprietary applications
could benefit from monitoring and
alerting.
 E...
Why Not Enhance User
Defined Metrics?
 No

Library to store and view.
 No development cycle support, (dev
testdeploy)
...
Presentation Agenda
 Metric





Extensions

The Basics
The How
The Types
The Reasons
Rules vs. Metric Thresholds
• Rule are Set Globally.
• Rules are Independent of Database Metric Settings.
What Are Metric Extensions?







A dynamically configured extensions feature
allowing to monitor environment specifi...
Metric Extensions Details







Metric Extensions replace the formerly known “User
Defined Metrics”
User Defined Met...
Metric Extension “Verbage”
 Metric

Extensions Use the following:
 Target Type- Required to tell the metric
what “tools”...
Metric Extension Types










Host Level
Java, including Jboss, JVM, OC4J, etc.
Metadata Repository
OMS- OMS, ...
Metric Determines the
Adapter
Depending on the type of Target, the
Adapter used by the Metric Extension
Changes…
 Java- J...
The “More” of Metric
Extensions





A simple wizard allows for easy development
and refinement of metric extensions.
A...
Development Life Cycle
Enterprise > Monitoring >
Metric Extensions
First Step, General
OS Scripting, 2 Ways
Creating Your Own Script
Setting Input and Environment
Variables
Adding Custom Files
 For

more complex metric extensions, you
can upload parameter files, support files,
etc.
The Right Panel Display
Additional Info
Adding Columns
 The

output of the report will decide the
layout and type of columns:
Column and Thresholds


The Percentage Used of Temp will be Returned as
part of the script, anything over 10 will alert a...
Choose a Target
Credentials
 Choose

a pre-existing setup or new?
Completed Creation, Now
Test!
Testing
o Testing can be done as many times as
necessary.
o A full explanation of any failure is shown
in the “Error Messa...
The Finale!
 Test,

rinse, and repeat, (deploy/publish!)
 Only publish once you are satisfied that all
testing was perfo...
Check_Temp Library Bound!
Publishing/Deploying/Retaining
Things to Remember





No Metric Extension is active UNTIL it is
deployed.
Just because a metric extension is in the
l...
EM CLI and Metric Extensions
Metric Extension Verbs
export_metric_extension
-- Export a metric extension to an archive fil...
Make it Easy on Yourself


emcli help <verb> is your friend… 
Metric Extensions Summary
 Create

development metric extension,
wizard will simplify process.
 Test with test page and ...
Links
Step by Step to create a metric extension from Rob Zoeteweijhttp://oemgc.files.wordpress.com/2012/05/using-metric-ex...
Who: You and the world’s
leading authorities on
Exadata, all in one place.
What: Two days of deep
diving into the internal...
Upcoming SlideShare
Loading in …5
×

Hot sos em12c_metric_extensions

1,038 views

Published on

HotSos 2013 Metric Extensions Presentation

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,038
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
25
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Hot sos em12c_metric_extensions

  1. 1. EM12c Metric Extensions Designing, Deploying and Dynamic Success Kellyn Pot’Vin Sr. Techical Consultant
  2. 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. 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. 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. 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. 6. Why Not Enhance User Defined Metrics?  No Library to store and view.  No development cycle support, (dev testdeploy)  Lack of versioning.
  7. 7. Presentation Agenda  Metric     Extensions The Basics The How The Types The Reasons
  8. 8. Rules vs. Metric Thresholds • Rule are Set Globally. • Rules are Independent of Database Metric Settings.
  9. 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. 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. 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. 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. 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. 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!
  15. 15. Development Life Cycle
  16. 16. Enterprise > Monitoring > Metric Extensions
  17. 17. First Step, General
  18. 18. OS Scripting, 2 Ways
  19. 19. Creating Your Own Script
  20. 20. Setting Input and Environment Variables
  21. 21. Adding Custom Files  For more complex metric extensions, you can upload parameter files, support files, etc.
  22. 22. The Right Panel Display Additional Info
  23. 23. Adding Columns  The output of the report will decide the layout and type of columns:
  24. 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.
  25. 25. Choose a Target
  26. 26. Credentials  Choose a pre-existing setup or new?
  27. 27. Completed Creation, Now Test!
  28. 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. 29. The Finale!  Test, rinse, and repeat, (deploy/publish!)  Only publish once you are satisfied that all testing was performed adequately.
  30. 30. Check_Temp Library Bound!
  31. 31. Publishing/Deploying/Retaining
  32. 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. 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. 34. Make it Easy on Yourself  emcli help <verb> is your friend… 
  35. 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. 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. 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.

×