CA UIM Grafana Plugin

Fairuz A Hirzani
3 min readJul 10, 2019

--

I try to modify simplejson data source for CA UIM Integration.

We fall in love to Grafana

We’re using grafana as the main data visualization platform. All kind of metrics is shown here. Thanks to its capability to connect with so many sources. Now, we just have to open Grafana to see all data we need. However, several months ago, one data source was left behind. It cannot be connected to our main dashboard. The plugin is nowhere to find.

Everyone is in love with Grafana. The requirement of connecting Grafana to UIM becomes an urgency. So, I came up with a temporary solution, using simplejson data source and develop a generic backend to handle its request. The backend has only one job; translating simplejson data source request to uimapi request format. That story was written in my previous post.

The Plugin you need

After publishing my previous post, it seems like some people are also trying to find the plugin. At that time, I cannot share the code because it can only be run on our environment. We wrote so many private business logic to enhance the experience. So, I try to rewrite the code and make it universal that everyone can use. This is my unofficial CA UIM Grafana plugin.

Here’s the step you need to follow in order to use the plugin:

  1. Make sure uimapi is enabled on your UIM.
  2. Download the plugin package.
  3. Export the package to your Grafana plugins folder.
  4. Restart grafana instance.
  5. Add a new data source, and you will find CaUIMDatasource plugin.
adding a new data source

6. Add the graph on your dashboard.

query editor for CaUIMDatasource

Query Editor

query editor

Once the plugin is set up, you can see the editor as shown above. Please note that source is manual input. I haven’t configured to automatically lookup data yet. First thing you have to do is define which source you want to add. You can fill the input with one or more sources, separated using a comma.

selecting metrics

There are two custom object I add on the target. Those are --alltarget-- and [source]. --alltarget-- means all targets are selected and source means target value will be set the same with source value. This will gives you some flexibility on which target you want to show.

The code is not the best, not clean enough, and surely need some improvement. However, it works and I hope it helps!

--

--

Fairuz A Hirzani

an Observer. Working on Maker’s Schedule. Love to capture colors and human emotions. Found an excitement on typing, code.. mostly.