redash數據可視化平臺,主要是將數據進行直觀展示
一、安裝
git clone https://github.com/getredash/redash.git
ubuntu16.04+:直接進入redash/setup,執行腳本 sh setup.sh 即可
centos7(root用戶下):同上不過需要先修改setup.sh
- 將最下面的docker和docker-compose安裝命令註釋掉,即#install_docker
- centos7下的docker和docker-compose安裝參考以下鏈接,
https://blog.csdn.net/weixin_41988331/article/details/8874396
-
yum -y install epel-release wget pwgen perl-JSON-PP
-
然後將模塊setup_compose()中的sudo去掉,然後執行腳本 sh setup.sh
二、ldap和mail都在/opt/redash/目錄下操作,以及修改配置之後,都docker-compose up -d重新加載配置
ldap配置:/opt/redash/env添加
REDASH_LDAP_LOGIN_ENABLED=true
REDASH_LDAP_URL=ldap.xxx.com:389
REDASH_LDAP_BIND_DN=CN=s-ldap,OU=Service Account,DC=xxx,DC=com
REDASH_LDAP_BIND_DN_PASSWORD=123456789
REDASH_LDAP_SEARCH_TEMPLATE=(sAMAccountName=%(username)s)
REDASH_LDAP_SEARCH_DN=OU=xx,DC=xx
mail配置:參考下面鏈接,不過應該可以直接在env中配置,無需在/opt/redash/docker-compose.yml中每處都添加
https://redash.io/help/open-source/setup
https://ithelp.ithome.com.tw/articles/10207745?sc=iThelpR
三、遇到添加用戶後無法刪除問題
docker exec -it postgres bash
su - postgres
psql
\l
\c postgres
\dt
SELECT id,name,details,password_hash FROM users;
update users set details='{"active_at": "2019-09-03T07:08:53Z"}' where name='xx';
update users set password_hash='$6$rounds=106913$qoyscLRejWTmBg03$EauMW/ApKJM9BgQ0bNLB4HIzAL0Yre3onNkliAgdBUwye5Zp9HqbtcV3eKQy.4YrqlmL3VpKM0vq8FL0p0Qie1' where name='xx';
其他參考:
https://blog.csdn.net/diantun00/article/details/80968604
kibana官方使用手冊 https://www.elastic.co/guide/cn/kibana/current/xy-chart.html
所有環境變量 https://redash.io/help/open-source/admin-guide/env-vars-settings
postgresql操作 https://blog.csdn.net/diantun00/article/details/80968604