Metric instance is not getting created for em_alert table

rubesh_u
Tera Guru

I have created an metric definition for em_alert table like this for state tracking. 

 

Screenshot 2026-05-06 at 1.05.02 PM.png

 

 

Metric instance is not getting created for em_alert table when the state changes

1 ACCEPTED SOLUTION

Tanushree Maiti
Kilo Patron

Hi @rubesh_u 

 

Refer: https://www.servicenow.com/community/platform-analytics-forum/metric-instance-is-not-getting-created...

"Resource table is not extended from Task. Metrics out of the box only work on task and extended tables, but you can use other tables.

Under Metrics application > Business Rules - there is a BR named: metrics events - copy the BR and change table to resource_plan, name can be anything. Then see if Metric gets created."

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

View solution in original post

5 REPLIES 5

GlideFather
Tera Patron

Ahoy @rubesh_u,

 

i am not that knowledgeable about em_alert and these metrics you shared, but just an idea.. the related list "Metrics" below is empty, shouldn't there be something maybe? I don't know, it's just an idea from other ServiceNow configurations.

 

There's a script field so you can add there some logs to see if it is even triggered upon the state change... 

 

EDIT: is there any similar definition that works? you can get inspiration from it and adjust accordingly

_____
Answers generated by GlideFather. Check for accuracy.