Author Archives: Luciano Gomes

Monitoring Oracle WebLogic Servers

This blog is contributed by my friend Luciano Gomes, a VMware Technical Account Manager in Rio de Janeiro Area, Brazil. Thank you, Lucky!

You can monitor Oracle WebLogic Server using vR Ops. This helps you see the correlation between Application and Infrastructure. I’ve created 3 custom dashboards to jump start your effort.

First of all, the pre-requisites:

  1. vR Ops Enterprise edition.
  2. Weblogic Solution Installed
    1. Download here and see here how to install
    2. We support WebLogic 10.3 and above. These dashboards were made for 10.3. If you have a different version you need to update the metrics files.
  3. EP Ops Agent installed on each WebLogic servers that you want to monitor
    1. See here how to install
  4. Import all Dashboards, Views and re-create all metrics files available.
    1. See here how to import

To import, follow these 3 steps:

  1. Import the dashboards available here
  2. Import the views available here
  3. Recreate the Metrics files, available below (See here how to recreate this metrics files below). The files must have the same name as shown below.

weblogic-admin-server.xml

<?xml version="1.0" encoding="UTF-8"?>
 <AdapterKinds>
 <AdapterKind adapterKindKey="EP Ops Adapter">
 <ResourceKind resourceKindKey="Weblogic Admin 10.3">
 <Metric attrkey="PERFORMANCE|JVMTotalGarbageCollectionTime" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="PERFORMANCE|JVMTotalGarbageCollectionTimeperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|InvalidLoginAttemptsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|JTAActiveTransactionsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|JTACommittedTransactionsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|JMSActiveServers" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|JTASecondsActiveperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|JTASystemTransactionsRolledBackperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|JTATransactionsRolledBackperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|SocketsOpen" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 </AdapterKind>
 </AdapterKinds>

weblogic-jdbc-connection-pool.xml

<?xml version="1.0" encoding="UTF-8"?>
 <AdapterKinds>
 <AdapterKind adapterKindKey="EP Ops Adapter">
 <ResourceKind resourceKindKey="Weblogic 10.3 JDBC Connection Pool">
 <Metric attrkey="UTILIZATION|ActiveConnections" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|FailurestoReconnectperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|HighActiveConnections" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|LeakedConnectionsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|MaxConnectionsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|TotalConnectionsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="AVAILABILITY|ResourceAvailability" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ConnectionDelayTime" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|TotalConnections" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|WaitingForConnectionCurrentCount" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 </AdapterKind>
 </AdapterKinds>

weblogic-jta-resource.xml

<?xml version="1.0" encoding="UTF-8"?>
 <AdapterKinds>
 <AdapterKind adapterKindKey="EP Ops Adapter">
 <ResourceKind resourceKindKey="Weblogic 10.3 JTA Resource">
 <Metric attrkey="AVAILABILITY|ResourceAvailability" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|TransactionHeuristicCommitsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|TransactionHeuristicHazardTotalperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|TransactionHeuristicMixedTotalperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|TransactionHeuristicRollbacksperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|TransactionHeuristicsTotalperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|TransactionsCommittedperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|TransactionsRolledBackperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|TransactionsTotal" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|TransactionHeuristicCommits" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 </AdapterKind>
 </AdapterKinds>

weblogic-webapp.xml

<?xml version="1.0" encoding="UTF-8"?>
 <AdapterKinds>
 <AdapterKind adapterKindKey="EP Ops Adapter">
 <ResourceKind resourceKindKey="Weblogic 10.3 Webapp">
 <Metric attrkey="AVAILABILITY|ResourceAvailability" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|CurrentActiveSessions" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|SessionsCreated" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|SessionsCreatedperMinute" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 </AdapterKind>
 </AdapterKinds>

Once you got them imported, you’ll get the dashboards below. I’ve added some help on the dashboard image.

Weblogic Components Dashboard:

Weblogic Components Menu

Weblogic Overview

Hope you find it useful. Do reach out via Linkedin and Twitter. Thanks for reading!

A tool to help dashboard creation

This blog is contributed by my friend Luciano Gomes, a VMware Technical Account Manager in Rio de Janeiro Area, Brazil. Thank you, Lucky!

A quick tip to help you to spend a less time to create your vRealize Operations dashboards. Sometimes when creating a dashboard, you need to understand what metrics are available, the relationship between objects, properties and so on. I created this simple dashboard to help that.

Just import this dashboard and save your precious time! It looks like this:

Hope you find it useful. Do reach out via Linkedin and Twitter. Thanks for reading!

WaveFront – How to deploy and use – PART I

This blog is contributed by my friend Luciano Gomes, a VMware Technical Account Manager in Rio de Janeiro Area, Brazil. Thank you, Lucky!

Today, I am super excited to share about Wavefront, a new acquisitions by VMware. I’ve been playing with it as it’s been awesome!

First, what is Wavefront?

It is cloud-hosted service, not a product you install in your premise. You send your time-series (metric) data – from CollectD, StatsD, JMX, Ruby’s logger, AWS, anything basically, to it.

You can then perform arbitrary mathematical operations on any number of those series, render charts to see anomalies or KPI dashboards, and ultimately create truly intelligent alerts to proactively watch over your entire stack.

It scales seamlessly, it’s reliable, it’s feature complete, and the support is great. It’s everything you have always wanted but never get. Find more details here.

How to use Wavefront

I will share the instructions in how you can setup your environment and start today to monitor your environment. Yeah, today! Wavefront is a SaaS solution, so you only need to set up a proxy on-premises and connect to Wavefront in the cloud.

Step 0: Prerequisites

  1. Setup your account in Wavefront (You can use a trial here)
  2. A Linux (or Windows) machine to be used as a WaveFront Proxy (need to have Internet Access).
  3. A Linux or Windows machine that you want to monitor (need access to Internet, at least for installing the Agent).
    • If you want to see Application Monitoring, like a MySQL Database, you need it
    • If you want to explore integration, like Zabbix (yeah, we have it OOTB), you need it.

Step 1: Install Proxy

Login in your WaveFront account and click in Browse -> Proxies (Choose Linux) and copy the code.

Go to your Linux machine, that you choose to be your WaveFront proxy, and paste the code. (remember, you need to have Internet access).

Tip: to avoid errors, copy and paste the code in one single line, like below:

sudo bash -c "$(curl -sL https://wavefront.com/install)" -- install --proxy --wavefront-url https://vmware.wavefront.com --api-token 09090099-7405993030033-a403904930907d

If you already are the root, you don’t need to use sudo.

After the installation concludes, go to the same place and check if your proxy is listed.

If the proxy does not appear, check /var/log/wavefront/wavefront.log to verify the installation.

Step 2: Install Agents

Once your proxy is setup, time to install an agent inside the machines that we want to monitor.

Click in Integration, and then Click Linux Host

After that, click Setup

If your Wavefront Proxy is not reachable with the hostname that appears in the code, change it before pasting.

Tip: put the code in one single line, like below:

bash -c "$(curl -sL https://wavefront.com/install)" -- install --agent --proxy-address ahutchings --proxy-port 2878

After this command concludes with success, you can click in the Metrics tab and check if your metrics are available in awesome dashboard, like below:

This concludes the first part of a series of blog post about Wavefront.

Hope you find it useful. Do reach out via Linkedin and Twitter. Thanks for reading!