Oracle Service Bus 11g: Statistics Projects and services with WLST - Part 2

Oracle Service Bus 11g: Statistics Projects and services with WLST - Part 2

Gepubliceerd: Categorie: Oracle

As a follow-up on my earlier blogpost about how to list all your projects and services in your OSB domain, I’ve extended the script with some count statistics. Look at this screenshot below. I blacked out the names for the services.

In the example I’ve used I extended it with some statistic counts on some Proxy services. Now at this moment the script errors out on non monitored services, but that is because I did not implement a check if a service is monitored or not. Which should be done by checking if the value of isMonitoringEnabled in the CommonServiceConfigurationMBean is set to true.

Look below at some of the code. The first section is to get the list of projects and their proxy or business services (in my example I used proxy services). With a for loop on the getAllResourceStatistics method I filtered out the statistics I’d like to see: some counts about pipeline and SLA.

Now this is of course a beginning, you can build, customize and cosmetize your script to you own needs with all kinds of colors for high error rates. For example you can implement an if statement if your error rates raise above a certain level and colorize it with terminal colours (red '33[1;31m').

My next challenge is to filter out those services which are not enabled for monitoring, but that will be for a next time.

Publicatiedatum: 3 juli 2013

Michel Schildmeijer
Over auteur Michel Schildmeijer

Having started in the pharmacy sector, Michel transitioned to IT in 1996, where he worked on a UNIX TTY terminal-based system and the MUMPS language. He currently works as a solutions architect at Qualogy, with a focus on middleware, application integration and service-oriented architecture. His passion for middleware started in 2000, when he worked as a support analyst in the financial sector with BEA WebLogic and Tuxedo. Michel is an expert on the WebLogic platform. He serves customers in his role as architect and advises them in all aspects of their IT landscape. He became an Oracle ACE in 2012 and wrote two books about WebLogic: Oracle WebLogic Server 11gR1 PS2: Administration Essentials and Oracle WebLogic Server 12c: First Look. He is a well-known speaker at national and international conferences and is recognized as an official Oracle Speaker. Since a few years, he is also an active contributor to the OpenSource community and solutions regarding containerization and DevOps. Furthermore, he is a well-known expert in several communities. He speaks regularly at events in the EMEA region and worldwide, such as KubeCon, Continuous Delivery Summit, Oracle OpenWorld, Groundbreakers Developers Tours and several other tech conferences. Read more at: http://www.qualogy.nl/techblog/author/michel-schildmeijer and https://community.oracle.com/blogs/mnemonic

Meer posts van Michel Schildmeijer
Reacties (1)
  1. om 20:08

    Your second print is incomplete. Can you share the code in text?

Reactie plaatsen