---
title: Charmhub | Deploy Mattermost PagerDuty Bot using Charmhub - The Open Operator
  Collection
description: Deploy the latest version of Mattermost PagerDuty Bot as a Kubernetes
  Operator on any cloud.
url: https://charmhub.io/mm-pd-bot/docs/configuration
---

# Mattermost PagerDuty Bot

[The Canonical Sysadmins](https://charmhub.io/publisher/canonical-sysadmins "View all packages from The Canonical Sysadmins")

* [The Canonical Sysadmins](https://charmhub.io/publisher/canonical-sysadmins "View all packages from The Canonical Sysadmins")

Platform:

stable 2

```
juju deploy mm-pd-bot
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Contacts

##### Maintainers

+ [Launchpad Team](https://launchpad.net/~mm-pd-bot-charmers)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

## Configuration File Set Up

Copy over the bot.cfg example

```
cp examples/bot.cfg bot.cfg
```

The configuration looks like this:

```
[PagerDuty]
account = %(MM_PD_BOT_PD_ACCOUNT)s
api-token = %(MM_PD_BOT_PD_TOKEN)s
private-channel = %(MM_PD_BOT_PD_PRIVATE_CHANNEL)s
public-channel = %(MM_PD_BOT_PD_PUBLIC_CHANNEL)s
# This one is optional but will avoid getting incident for ALL escalation policy under your PagerDuty account
filter-status-on-policy = ^(escalation Policy 1|escalation Policy 2)$

[Prometheus]
max_cache_size = 100

[httpd]
listen-ip = 0.0.0.0
listen-port = 2160
# This parameter will be used to construct the url the webhook should reach through the ingress.
# With the above parameters, the webhook URL should be as follows (note that the trailing "/" is required):
# http://%(MM_PD_BOST_HOSTNAME)s/%(MM_PD_BOT_UUID)s/
# Use `uuidgen` tools to generate a random UUID
magic-uuid = %(MM_PD_BOT_UUID)s
ssl = False

[MattermostBot]
bot_url = %(MM_PD_BOT_URL)s
bot_team = %(MM_PD_BOT_TEAM)s
bot_token = %(MM_PD_BOT_TOKEN)s
ssl_verify = False
plugins = modules

[nickname to email]
jdoe = john.doe@example.com

# List of Mattermost nick and their aliases
[Mattermost Aliases]

# List of PagerDuty service ID and the public channel to write to
# Default to the public-channel in the PagerDuty section
[PagerDuty service to Mattermost Channel]
```

The key section are the PagerDuty and the MattermostBot ones.
The PagerDuty section need your account and a [general access token](https://support.pagerduty.com/docs/generating-api-keys)

The MattermostBot section needs [a bot account token](https://docs.mattermost.com/developer/bot-accounts.html)

---
