Redash integrations for Mattermost
Matter-Redash
needs Mattermost Personal Access Token and Redash API Key.
And writing it in config/.default.json.
Since Matter-Redash
uses Personal Access Token
and Public Link
of Mattermost, you must enable that options form System Console
.
Create Custom Slash Command for matter-redash
.
- Title:
redash
- TriggerWord:
redash
- RequestURL:
http://${matter-redash}:8888/redash
cp config/.default.json config/default.json
vi config/default.json
docker build -t matter-redash .
docker run \
--rm \
-p 8888:8888 \
-v ${PWD}/config/default.json:/usr/local/src/config/default.json \
kaakaa/matter-redash
cp config/.default.json config/default.json
vi config/default.json
yarn run server
Post on Mattermost
/redash http://redash.example.com/queries/1/source#2
Redash URL must follow the format below
http://${REDASH_HOST}/queries/${QUERY_ID}/source#{VISUALIZATION_ID}
On the specification of Mattermost, Matter-Redash
created a temporary post to obtain the public link of the image file uploaded to the mattermost.
Matter-Redash
deleted that post after obtaining the public link, but the message "post deleted" has been left.
Matter-Redash
is licensed under MIT.