SAM alerts about messages
I would be interested to know is it possible to implement alerts about messages (errors etc that show in message viewer or event log) to show in the SAM portal? So far I've only been able to see system alerts there.
Comments
Hi @Krista Koljonen take a look at this page of the documentation. There are many options available to check the status of active productions using the API Rest.
Not sure that you have seen that Intersystems deprecated SAM November 13th.
Hi, I'm working on this as well but as for now I'm not sure if I'm going the best way: Trying to extract event-logs via SQL on a regular base and feed them to grafana. There I would be able to configure alerts.
Feeding log to grafana works pretty well with promtail and loki from grafana.
Does anyone have a better solution especially to get the eventlogs out of iris?
Btw: since SAM is deprecated I just use grafana and prometheus without SAM. The monitoring api will still exist.
I'm still working with SAM since I got the okay to continue with my project. I think there should be a better way to do this since the main thing I'm trying to monitor are errors and alerts for messages. I'm trying to use the basic interoperability metrics for messages and hosts to configure an alert in the SAM portal when the queue is too long or host isn't okay but it doesn't recognize the metrics even though they are IRIS metrics.
To configure properly the IRIS metrics like queue alerts and so on you can check this configurations:
Hey @Thomas Wuppermann I ended up trying the same solution. What table are you using to extract data about the event log?
Hi @Krista Koljonen , I followed the recommendations in this post: https://community.intersystems.com/post/how-write-event-log-text-file
, so SELECT * FROM Ens_Util.Log; will return the content of the eventlog . You just have to remeber the last id to be able to extract only the rows you haven't already got earlier.