{% extends "base_project.html" %} {% load humanize static hc_extras %} {% block title %}Mattermost Integration for {{ site_name }}{% endblock %} {% block description %} {% endblock %} {% block content %}

Mattermost

{% if request.user.is_authenticated %}

If your team uses Mattermost, you can set up {{ site_name }} to post alerts directly to an appropriate Mattermost channel when a check goes up or down.

{% else %}

{{ site_name }} is a free and open source service for monitoring cron jobs, background processes and scheduled tasks. When {% site_name %} detects a problem, it can notify you by posting to a Mattermost channel. To set up the Mattermost integration, please log into {{ site_name }}:

{% endif %}

Setup Guide

Log into your Mattermost account and select Integrations in the top left menu.
Screenshot

In the "Integrations" screen, select Incoming Webhook and then Add Incoming Webhook.

Fill in the form and hit "Save".

Screenshot
{% if project %}

Copy the displayed URL and paste it in the form below.

Save the integration, and you are all set!

{% else %}

Copy the displayed URL.

{% endif %}
Screenshot
{% if not project %}

Log into {% site_name %}, then go to the Integrations page and click on Add Integration next to the Mattermost integration.

Screenshot

Paste the copied URL in the form.

Save the integration, and you are all set!

Screenshot
{% endif %} {% if project %}

Integration Settings

{% csrf_token %}
{% if form.value.errors %}
{{ form.value.errors|join:"" }}
{% endif %}
{% endif %}
{% endblock %}