Skip to content

kaakaa/matter-redash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov

Matter-Redash

Redash integrations for Mattermost

Screenshot

Configure

Matter-Redash

Matter-Redash needs Mattermost Personal Access Token and Redash API Key.

And writing it in config/.default.json.

Mattermost Configurations

Since Matter-Redash uses Personal Access Token and Public Link of Mattermost, you must enable that options form System Console.

Mattermost Custom Slash Command

Create Custom Slash Command for matter-redash.

  • Title: redash
  • TriggerWord: redash
  • RequestURL: http://${matter-redash}:8888/redash

Run Server

Docker

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

Command Line

cp config/.default.json config/default.json
vi config/default.json

yarn run server

Execute Command

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}

Caution

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.

LISENCE

Matter-Redash is licensed under MIT.