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:
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/
Log Insight found the following 6 events matching the criteria for alert "vROps Counter":