一.背景介绍
数据分析和探索是日常常见的需求,Superset 就是能否符合该要求的一款工具。
Superset is a modern data exploration and data visualization platform. Superset can
replace or augment proprietary business intelligence tools for many teams. Superset
integrates well with a variety of data sources.
https://github.com/apache/superset
二.看板示例

三.superset 环境搭建
1.查找 image

2.下载 image

3.启动服务

4.数据库初始化

5.Superset 初始化

6.设置账户

7.设置服务域名

8.登录验证


四.postgres 环境搭建
1.image 查找

2.image 下载

3.服务启动

4.测试数据构造
create table bigdata(ctime timestamp,c1 numeric(10,2),c2 numeric(10,2));
truncate bigdata;
insert into bigdata(ctime,c1,c2) values('2022-08-13 00:00:00',1,10)
,('2022-08-13 01:00:00',1,10),('2022-08-13 02:00:00',2,20)
,('2022-08-13 03:00:00',3,30),('2022-08-13 04:00:00',4,40)
,('2022-08-13 05:00:00',5,50),('2022-08-13 06:00:00',6,60)
,('2022-08-13 07:00:00',7,70),('2022-08-13 08:00:00',8,80)
,('2022-08-13 09:00:00',9,90),('2022-08-13 10:00:00',1,10)
,('2022-08-13 11:00:00',1,10),('2022-08-13 12:00:00',2,20)
,('2022-08-13 13:00:00',3,30),('2022-08-13 14:00:00',4,40)
,('2022-08-13 15:00:00',5,50),('2022-08-13 16:00:00',6,60)
,('2022-08-13 17:00:00',7,70),('2022-08-13 18:00:00',8,80)
,('2022-08-13 19:00:00',9,90),('2022-08-13 20:00:00',1,10)
,('2022-08-13 21:00:00',1,10),('2022-08-13 22:00:00',2,20)
,('2022-08-13 23:00:00',3,30);
五.连接 postgres 数据库
1.选择数据源类型

2.设置连接参数

3.保存设置

六.BI 分析
1.创建数据集

2.创建 chart

3.创建 DashBoard

4.Chart 保存到 DashBoard

网友评论