CA UIM Grafana Plugin
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:
- Make sure uimapi is enabled on your UIM.
- Download the plugin package.
- Export the package to your Grafana plugins folder.
- Restart grafana instance.
- Add a new data source, and you will find CaUIMDatasource plugin.
6. Add the graph on your dashboard.
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.
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!