Hot sos em12c_metric_extensions
-
Upload
kellyn-potvin-gorman -
Category
Technology
-
view
391 -
download
0
description
Transcript of Hot sos em12c_metric_extensions
EM12c Metric Extensions
Kellyn Pot’Vin
Sr. Techical Consultant
Designing, Deploying and Dynamic
Success
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
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.
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.
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.
Why Not Enhance User
Defined Metrics?
No Library to store and view.
No development cycle support, (dev testdeploy)
Lack of versioning.
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 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.
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.
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.
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….
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
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!
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 warning, anything 25 in this column will alert critical.
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 Message” Window.
o A full log of the tests are retained in the
Metric Extensions Testing History.
The Finale!
Test, rinse, and repeat, (deploy/publish!)
Only publish once you are satisfied that all
testing was performed adequately.
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
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.
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
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 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.
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
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.