数据可视化之redash(支持43种数据源)

安装npm

官网有详细的教程:https://redash.io/

查看当前版本
yum --showduplicates list nodejs | expand
#以10.x 版本为例,要9.x的话只要把该命令中10.x改为9.x就好
curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -
安装10.x版本
yum install nodejs

安装

git clone https://github.com/getredash/redash.git
cd redash/
docker-compose up -d
npm install
创建数据库
docker-compose run --rm server create_db
docker-compose run --rm postgres psql -h postgres -U postgres -c "create database tests"
npm run build
参考:https://redash.io/help/open-source/dev-guide/docker

配置

添加mysql数据库

添加Query和Dashboards 需要publish

生成统计呀 需要publish

添加到Dashboards

参考:https://juejin.im/post/5d25b88cf265da1bc23f9ff3?utm_source=gold_browser_extension


文章作者: Ciwei
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Ciwei !
 上一篇
【MySQL】MySQL 快速创建千万级测试数据之mysql_random_data_load 【MySQL】MySQL 快速创建千万级测试数据之mysql_random_data_load
介绍使用mysql_random_data_load将随机数据插入表中百万数据分分钟插入 源码地址:https://github.com/Percona-Lab/mysql_random_data_load/releases 备份地址:
2019-07-24
下一篇 
【设计模式】观察者模式 【设计模式】观察者模式
观察者模式观察者模式也被称为发布-订阅(Publish/Subscribe)模式,它属于行为型模式的一种。观察者模式定义了一种一对多的依赖关系,一个主题对象可被多个观察者对象同时监听。当这个主题对象状态变化时,会通知所有观察者对象并作出相应
2019-07-23
  目录