Add support for Alerting with UQL #738
Closed
Wizzzzzzard
started this conversation in
Ideas
Replies: 1 comment
-
Hiya.. There is no plans to add support for alerting in UQL. BTW, you can achieve the desired behaviour using backend parser and jsonata query as root selector. For example, following root selector will give you the results you want. $map($.value, function($app){
$map($app.certDetails, function($cert){
return {
"app": $app.applicationName,
"owner" : $cert.owner,
"thumbPrint" : $cert.thumbPrint,
"daysToExpiry" : $cert.daysToExpiry
}
})
}).* |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to create an alert to tell application users when the certificates related to their application are due to expire. I am able to create an alert with just the certificate details by entering at the certDetails level. However doing this with the backend parser makes it impossible to access the data located a level above as far as I can tell.
Sample API response:
Currently I am entering using value.certDetails which allows me to see thumbPrint, owner and daysToExpiry for each alert, with my alert criteria being based off the daysToExpiry being below a certain threshold.
I am also displaying this data in a table using UQL as part of a Certificate dashboard and with UQL I am able to expand each certDetail into it's own row including all the higher level details using the following query:
Is there a way to replicate similar behaviour using only the backend parser? Or failing that adding support to use UQL with Grafana alerting?
Beta Was this translation helpful? Give feedback.
All reactions