# Setting up alerts

**URL:** <https://forum.canton.network/t/setting-up-alerts/5382>\
**Category:** App Development\
**Created:** [October 6, 2022, 1:33pm UTC](https://forum.canton.network/t/setting-up-alerts/5382 "2022-10-06T13:33:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonid\_Rozenberg](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/leonid_rozenberg/32/48_2.png) [@Leonid\_Rozenberg](https://forum.canton.network/u/Leonid_Rozenberg)\
**Post date:** [October 6, 2022, 1:33pm UTC](https://forum.canton.network/t/setting-up-alerts/5382/1 "2022-10-06T13:33:28Z")

</div>

A client wants to setup alerts based on log messages.

- Do we have a canonical or suggested list for the various components?
- Should we treat everything at a WARN or ERROR level as alert worthy? Anything at a lower level that can be used for diagnostics?
- The [documentation](https://docs.daml.com/canton/usermanual/monitoring.html#monitoring) answers the how but not the what.

---

<div class="post-metadata">

**Author:** ![bernhard](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bernhard/32/356_2.png) [@bernhard](https://forum.canton.network/u/bernhard)\
**Post date:** [October 6, 2022, 1:45pm UTC](https://forum.canton.network/t/setting-up-alerts/5382/2 "2022-10-06T13:45:14Z")

</div>

My recommendation:

- Alert on every ERROR (though be sure to not pick up errors wrapped in warns)
- Alert on continuous rates of WARNs. Eg if your system runs at 100 TPS, warn if there are more than 5 warns/s average for 30+ seconds or similar.

But the second one is really something you need to make a judgement call on your tolerance for false positives/negatives. If you alert on every warn, better be sure there are no intermittent network failures, DB disconnects, contention, etc. If you don’t alert on any warns, you may be failing all your transactions because your clock skews are off and you wouldn’t notice.
