当前位置:网站首页>Clickhouse notes 02 -- installation test clickvisual
Clickhouse notes 02 -- installation test clickvisual
2022-07-25 20:20:00 【Xin Guang XG】
clickhouse note 02-- Install the test clickvisual
Introduce
clickvisual Is a lightweight open source log query 、 analysis 、 Visual platform of alarm , We are committed to providing visual solutions for one-stop application reliability . It can be deployed and used independently , It can also be integrated into third-party systems as a plug-in . At present, it is the only one in the market that supports ClickHouse Class Kibana Business log query platform .
In this paper Ubuntu Deploy on the system clickvisual, And with Kibana Made a simple comparison .
clickvisual
precondition
Deploy a set of mysql, Here's straight docker Pull up mysql5
docker run -d -p3306:3306 --name=mysql5 -e MYSQL_ROOT_PASSWORD=111111 mysql:5
Get into mysql establish db: clickvisual
Deploy a set of redis, Here's straight docker Pull up redis5 Deploy a set of redis, Here's straight docker Pull up redis5
docker run --name=redis5.0 -d -p 6379:6379 redis:5.0
Deploy a set of clickhouse, Deployment documentation reference clickhouse note 01– Rapid deployment clickhouse , After deployment, import the test data as follows
stay ck Import data from , uk_price_paid2
Download data (27265985 strip ,csv 4.5GB size ):
wget http://prod.publicdata.landregistry.gov.uk.s3-website-eu-west-1.amazonaws.com/pp-complete.csv
Build table , Import data : Be careful clckvisual Time field required , Therefore, it is necessary to date Field set to DateTime
$ clickhouse-client
localhost :) use default;
localhost :)
CREATE TABLE uk_price_paid2
(
price UInt32,
date DateTime,
postcode1 LowCardinality(String),
postcode2 LowCardinality(String),
type Enum8('terraced' = 1, 'semi-detached' = 2, 'detached' = 3, 'flat' = 4, 'other' = 0),
is_new UInt8,
duration Enum8('freehold' = 1, 'leasehold' = 2, 'unknown' = 0),
addr1 String,
addr2 String,
street LowCardinality(String),
locality LowCardinality(String),
town LowCardinality(String),
district LowCardinality(String),
county LowCardinality(String),
category UInt8
) ENGINE = MergeTree ORDER BY (postcode1, postcode2, addr1, addr2);
$ clickhouse-local --input-format CSV --structure ' uuid String, price UInt32, time DateTime, postcode String, a String, b String, c String, addr1 String, addr2 String, street String, locality String, town String, district String, county String, d String, e String ' --query " WITH splitByChar(' ', postcode) AS p SELECT price, toDateTime(time) AS date, p[1] AS postcode1, p[2] AS postcode2, transform(a, ['T', 'S', 'D', 'F', 'O'], ['terraced', 'semi-detached', 'detached', 'flat', 'other']) AS type, b = 'Y' AS is_new,clickvisual transform(c, ['F', 'L', 'U'], ['freehold', 'leasehold', 'unknown']) AS duration, addr1, addr2, street, locality, town, district, county, d = 'B' AS category FROM table" --date_time_input_format best_effort < pp-complete.csv | clickhouse-client --query "INSERT INTO uk_price_paid2 FORMAT TSV"
The deployment of test
Download software configuration
# Get the latest version
latest=$(curl -sL https://api.github.com/repos/clickvisual/clickvisual/releases/latest | grep ".tag_name" | sed -E 's/.*"([^"]+)".*/\1/')
# Linux amd64 System
wget "https://github.com/clickvisual/clickvisual/releases/download/${latest}/clickvisual-${latest}-linux-amd64.tar.gz" -O clickvisual-${latest}.tar.gz
Start the service
# Decompress the package
mkdir -p ./clickvisual-${latest} && tar -zxvf clickvisual-${latest}.tar.gz -C ./clickvisual-${latest}
# Modify the configuration file config/default.toml, take MySQL、Redis Wait for the configuration to change to your own configuration .
# After modifying the configuration file , Use the following instructions to run clickvisual
cd ./clickvisual-${latest} && ./clickvisual -config config/default.toml
# visit http://localhost:19001
# login username: clickvisual
# login password: clickvisual
The normal output after startup is as follows :
http://localhost:19001 Account number / password clickvisual/clickvisual
Clicking the Install button below will trigger multiple table initialization operations 
Login screen :
main interface :
New instance :
stay DSN Fill in the instance information in : tcp://127.0.0.1:9000?username=default
New logstore :
Check the log :
It can be similar in the search column kibana To search for logs , You can use some simple fuzzy matching search .
Advantages and disadvantages
clickvisual Can be used to view Clickhouse Log data in , But compared with the mainstream logging system Kibana It's still a long way off , There is still much room for hints in the future . For reference here kibana Briefly talk about some of its advantages and disadvantages , As follows :
advantage :
- You can query at the front end clickhouse journal
- You can configure some simple filters
Insufficient :
- The front-end query filtering function is relatively weak ,UI It's also very simple.
Kibana Query is more flexible ,clickVisual Query limitations are relatively large

- Cannot provide aggregate function , You cannot configure the relevant data statistics panel through aggregation
- The front end cannot provide data export function
- Open source time is short , Incomplete function , Errors are often reported when using
No error is reported when connecting , But the data cannot be queried :

An abnormal error is reported when searching :
explain
Software environment :
Ubuntu 21.04 Desktop
mysql 5
redis 5.0
clickvisual v0.3.2-rc2
Reference documents :
ClickVisual Official documents -- Binary installation
边栏推荐
- [Infographics Show] 248 Public Domain Name
- CarSim仿真快速入门(十四)—CarSim-Simulink联合仿真
- PreScan快速入门到精通第十八讲之PreScan轨迹编辑的特殊功能
- DIY personal server (DIY storage server)
- Log in to Baidu online disk with cookies (websites use cookies)
- Dataloader reports an error "default_collate: batch must contain tensors, numpy arrays, numbers, dicts" when pytorch trains the model
- [mindspore] [read graph data] cannot read mindrecord format graph data
- 各厂商网络虚拟化的优势
- qml 结合 QSqlTableModel 动态加载数据 MVC「建议收藏」
- Share 25 useful JS single line codes
猜你喜欢

Recommended system topic | Minet: cross domain CTR prediction

谷歌Pixel 6a屏下指纹扫描仪存在重大安全漏洞
![[today in history] July 19: the father of IMAP agreement was born; Project kotlin made a public appearance; New breakthroughs in CT imaging](/img/e9/5751dc435cfbbefc22d84fd9ebbaea.png)
[today in history] July 19: the father of IMAP agreement was born; Project kotlin made a public appearance; New breakthroughs in CT imaging

YOLOv7论文部分解读【含自己的理解】

【高等数学】【3】微分中值定理与导数的应用

Timing analysis and constraints based on xlinx (1) -- what is timing analysis? What are temporal constraints? What is temporal convergence?

PreScan快速入门到精通第十八讲之PreScan轨迹编辑的特殊功能

4. Server startup of source code analysis of Nacos configuration center

Deeplobv1 and V2
![[today in history] June 28: musk was born; Microsoft launched office 365; The inventor of Chua's circuit was born](/img/bf/09ccf36caec099098a22f0e8b670bd.png)
[today in history] June 28: musk was born; Microsoft launched office 365; The inventor of Chua's circuit was born
随机推荐
Rainbow plug-in extension: monitor MySQL based on MySQL exporter
【高等数学】【4】不定积分
Working principle of radar water level gauge and precautions for installation and maintenance
[advanced mathematics] [8] differential equation
Partial interpretation of yolov7 paper [including my own understanding]
JS作用域与作用域链
[mindspore] [read graph data] cannot read mindrecord format graph data
当AI邂逅生命健康,华为云为他们搭建三座桥
CarSim仿真快速入门(十四)—CarSim-Simulink联合仿真
第六章 修改规范(SPEC)类
[today in history] July 13: the father of database passed away; Apple buys cups code; IBM chip Alliance
PMP practice once a day | don't get lost in the exam -7.25
雷达水位计的工作原理及安装维护注意事项
QML combines qsqltablemodel to dynamically load data MVC "recommended collection"
[today in history] June 30: von Neumann published the first draft; The semiconductor war in the late 1990s; CBS acquires CNET
PMP采用最新考纲,这里有【敏捷项目管理】
wallys//IPQ5018/IPQ6010/PD-60 802.3AT Input Output 10/100/1000M
CarSim simulation quick start (XV) - ADAS sensor objects of CarSim sensor simulation (1)
Mobile web layout method
Export and call of onnx file of pytorch model