-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.yml.example
48 lines (45 loc) · 1.66 KB
/
config.yml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
# Set up your HS connections
matrix:
- name: matrix-org
url: 'https://matrix.org'
# Create a user - log that user in using a post request
# curl -XPOST -d '{"type": "m.login.password",
# "user":"grafana",
# "password":"2m4ny53cr3t5"}'
# "https://my-matrix-server/_matrix/client/r0/login"
# Fill that access token in here
access_token: '<token>'
#device_id: <device> # Optional
#- name: matrix-priv
# url: 'https://private.matrix.org'
# access_token: '<token>'
# The default message type for messages, should be either m.text or m.notice,
# defaults to m.text
msgtype: m.text
# Set up notification ingress rules
rules:
- name: hq # Name of the rule
room: "#hq:matrix.org" # Room or ID
matrix: matrix-org # The Matrix HS to use - defaults to first one
msgtype: m.notice
# The following values are optional:
#image: true # Attach image to the notification?
#embed_image: true # Upload and embed the image into the message?
#details_tag: false # Use a <details> tag to include image (MSC2184)
#templates:
# Templates to use when rendering the notification, available placeholders:
# %TEMPLATES% - lib/grafana_matrix/templates
# $<env> - Environment variables
#html: "%TEMPLATES%/html.erb" # Path to HTML template
#plain: "%TEMPLATES%/plain.erb" # Path to plaintext template
#auth:
#user: example
#pass: any HTTP encodable string
#- name: other-hq
# room: "#hq:private.matrix.org
# matrix: matrix-priv
# To use the webhook, you need to configure it into Grafana as:
#
# Url: http://<server address>:<port>/hook?rule=<rule name>
# Http Method: POST