Hi All,
I’m have a managed grafana instance(no prometheus,loki etc)
I have a datasource created from infinity which connects to Business Central application api and gets me a series of jobs queues. In a table view data will be shown in 2 columns like below
Actual data in the value column(just a single entry),
[{"@odata.etag":"W/\"jakgfkjdlahflifsuieuriWFKELFJ=\"","Description":"Test Job","Earliest_Start_Date_Time":"2025-05-09T00:00:00Z","Ending_Time":"00:00:00","ID":"645g29blk-06tf-49h2-ba78-35656540et03v","Job_Queue_Code":"Test","Minutes_between_Runs":5,"Object_Caption_to_Run":"Test your job","Object_ID_to_Run":5555,"Object_Type_to_Run":"xxxxx","Parameter_String":"","Recurring_Job":true,"Run_on_Fridays":true,"Run_on_Mondays":true,"Run_on_Saturdays":true,"Run_on_Sundays":true,"Run_on_Thursdays":true,"Run_on_Tuesdays":true,"Run_on_Wednesdays":true,"Scheduled":true,"Starting_Time":"02:00:00","Status":"Ready","Timeout":"P0DT6H0M0.0S","User_ID":"test","User_Session_Started":"0001-01-01T00:00:00Z"}]
I need creating alerts to identify the jobs that have the Status==‘Error’, to do that I have to set the selector as ‘value’ and then use a filter option
then I will get something like below where I can alert on,
But the problem here is the rows are been duplicated for some reason (Only in alerting, no duplicates observed in explore and in dashboard creation views). So I have to put a summarize option ‘count(ID)’ where it will aggregate and only give me a count but I cannot provide any details in the alert that is generated.
I can only query data using the type ‘JSON’ and I tried using UQL but gives no data in the alerting view but this query works in the explore view,
parse-json
| project "value"
| where "Status" == 'Ready'
My Questions are,
- Can I get the data without duplicates in alerting?
- How can I alert with more details in the alert?
- I want to perform more queries on data to create alerts, eg: Get the jobs that are in Ready state but have not executed today(To check if the job has not run today)
Your help will be appreciated, thank you