# Monitoring / Alerting

## Basic Monitoring

I'm running a monitoring service called statuscake.com to test my mastodon endpoints every 5 minutes and respond that the services are all online.

* <https://aus.social/about>
* <https://aus.social/api/v1/instance>
* <https://aus.social/api/v1/streaming/health>

These 3 endpoints should give a pretty basic amount of coverage for the internet facing Puma (FE/API) and NodeJS (Websocket Streaming) endpoints.&#x20;

I've connected statuscake up to my mobile, and get push notifications sent to my phone when one of these tests fail.

<figure><img src="/files/WZ0NxHNuoq61pgHnk9QG" alt=""><figcaption></figcaption></figure>

## Advanced Monitoring (metrics)

You can investigate using promethius and other dashboards to display real time and historical details from your instance.

<figure><img src="/files/XjEM1C09ES7VN8nTe0gj" alt=""><figcaption><p>tyr@pettingzoo.co example dashboard</p></figcaption></figure>

## APM (application performance monitoring)

There are more advanced monitoring tools that offer insight into the actual application low level code.&#x20;

I'd recommend investigating the different APM (application performance monitoring) tooling.

* NewRelic
* Sentry.io


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bonusmastodon.aus.social/basics/monitoring-alerting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
