summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorJoel Hans <joel@netdata.cloud>2020-06-08 09:53:42 -0700
committerGitHub <noreply@github.com>2020-06-08 09:53:42 -0700
commitecd9c48238a4db2ab6ef2bb4e98d75093773df69 (patch)
tree43a86f644f62db0c163fb1fc829ab6701a9b20b2 /health
parent6f8066a34caae6559460802f37a636cd0c2e9886 (diff)
Add revisions to Matrix doc (#9295)
Diffstat (limited to 'health')
-rw-r--r--health/notifications/matrix/README.md34
1 files changed, 25 insertions, 9 deletions
diff --git a/health/notifications/matrix/README.md b/health/notifications/matrix/README.md
index 9be28ec282..ea22b4a8a1 100644
--- a/health/notifications/matrix/README.md
+++ b/health/notifications/matrix/README.md
@@ -1,24 +1,38 @@
+<!--
+title: "Send Netdata notifications to Matrix network rooms"
+description: "Stay aware of warning or critical anomalies by sending health alarms to Matrix network rooms with Netdata's health monitoring watchdog."
+sidebar_label: "Matrix"
+custom_edit_url: https://github.com/netdata/netdata/edit/master/health/notifications/matrix/README.md
+-->
+
# Matrix
Send notifications to [Matrix](https://matrix.org/) network rooms.
The requirements for this notification method are:
-1. The url of the homeserver (`https://homeserver:port`)
-2. Credentials for connecting to the homeserver, in the form of a valid access token for your account (or for a dedicated notification account). These tokens usually don't expire.
-3. The room ids that you want to sent the notification to.
-To obtain the access token you can use the following curl command:
-```
+1. The url of the homeserver (`https://homeserver:port`).
+2. Credentials for connecting to the homeserver, in the form of a valid access token for your account (or for a
+ dedicated notification account). These tokens usually don't expire.
+3. The room ids that you want to sent the notification to.
+
+To obtain the access token, you can use the following `curl` command:
+
+```bash
curl -XPOST -d '{"type":"m.login.password", "user":"example", "password":"wordpass"}' "https://homeserver:8448/_matrix/client/r0/login"
```
-The room ids are unique identifiers and can be obtained from the room settings in a Matrix client (e.g. Riot). Their format is !uniqueid:homeserver.
+The room ids are unique identifiers and can be obtained from the room settings in a Matrix client (e.g. Riot). Their
+format is `!uniqueid:homeserver`.
+
Multiple room ids can be defined by separating with a space character.
-Detailed information about the Matrix client API is available at the official [site](https://matrix.org/docs/guides/client-server.html)
+Detailed information about the Matrix client API is available at the [official
+site](https://matrix.org/docs/guides/client-server.html).
-Your health_alarm_notify.conf should look like this:
-```
+Your `health_alarm_notify.conf` should look like this:
+
+```conf
###############################################################################
# Matrix notifications
#
@@ -40,3 +54,5 @@ MATRIX_ACCESSTOKEN="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
# The format is !roomid:homeservername
DEFAULT_RECIPIENT_MATRIX="!XXXXXXXXXXXX:matrix.org"
```
+
+[![analytics](https://www.google-analytics.com/collect?v=1&aip=1&t=pageview&_s=1&ds=github&dr=https%3A%2F%2Fgithub.com%2Fnetdata%2Fnetdata&dl=https%3A%2F%2Fmy-netdata.io%2Fgithub%2Fhealth%2Fnotifications%2Fmatrix%2FREADME&_u=MAC~&cid=5792dfd7-8dc4-476b-af31-da2fdb9f93d2&tid=UA-64295674-3)](<>)