VMware Cloud Community
koit12
Enthusiast
Enthusiast

How to send queries from Log Insight to vROps as metrics?

Hi,

I'm trying to send the total number of hits from Log Insight queries to vROps as metrics.
According to the documentation the integration between Log Insight and vROps should support sending queries to vROps as metrics.

Some objects in vROps has a metric group called "Log Insight Generated" with 3 metrics inside. "Error Count", "Total Log Count" and "Warning Count".
These are great, but I would like to make my own custom metrics from my own custom Log Insight queries.
Is that possible, or do the integration only support the OOTB-metrics?

I asked the same question in the Log Insight forum, but I got no response: 
https://communities.vmware.com/t5/vRealize-Log-Insight-Discussions/How-to-send-a-result-from-a-query...

-bernt

Reply
0 Kudos
2 Replies
KabirAli82
Expert
Expert

Hi,

AFAIK that's not possible. You will run into all sorts of "problems". When do you start to count? When do you stop to count?

vRLI just sends the query details to vROps and if there is no alert open, vROps will create an alert for you. vROps will disregard any new triggers as long as that alert is still open. So if you want to know how often a query is hit, that will not work.

The only way I can think of, is if you have vRLI send an email. Then you need some sort of script to grab the number in that email and send that as a metric to vROps. Again you will need to figure out something for the start and stop moment.

 

Email sample vRLI:

This alert is about your Log Insight installation on https://vRLI.local.domain/

Hi,

Log Insight found the following 6 events matching the criteria for alert "vROps Counter":


Was I helpful? Give a kudo for appreciation!
Braindumping @ http://kablog.nl/
Tweeting @ https://twitter.com/_Kabir_Ali_
Reply
0 Kudos
koit12
Enthusiast
Enthusiast

Thank you for your reply.
This seems to be more tricky than I initially thought 😕

 

Reply
0 Kudos