当前位置:网站首页>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
边栏推荐
- Stock software development
- Cloud native guide: what is cloud native infrastructure
- Redis source code -ziplist
- 增加 swap 空间
- How much memory does bitmap occupy in the development of IM instant messaging?
- Rainbond插件扩展:基于Mysql-Exporter监控Mysql
- Mindspore1.1.1 source code compilation and installation -- errors in the core compilation stage
- 雷达水位计的工作原理及安装维护注意事项
- [Infographics Show] 248 Public Domain Name
- String of sword finger offer question bank summary (II) (C language version)
猜你喜欢

Network protocol: TCP part2

Mobile web layout method
![[today in history] July 13: the father of database passed away; Apple buys cups code; IBM chip Alliance](/img/2d/c23a367c9e8e2806ffd5384de273d2.png)
[today in history] July 13: the father of database passed away; Apple buys cups code; IBM chip Alliance

PyTorch 模型 onnx 文件的导出和调用

4everland storage node portal network design
![[today in history] July 7: release of C; Chrome OS came out;](/img/a6/3170080268a836f2e0973916d737dc.png)
[today in history] July 7: release of C; Chrome OS came out; "Legend of swordsman" issued
![MySQL date [plus sign / +] condition filtering problem](/img/86/aed048e27b3e0b0baa919204bc067c.png)
MySQL date [plus sign / +] condition filtering problem

Vivo official website app full model UI adaptation scheme

笔记——记录一个CannotFindDataSourceException: dynamic-datasource can not find primary datasource问题解决
![[mindspore] [read graph data] cannot read mindrecord format graph data](/img/2a/6da73178993f3d0f84c1f6ada17884.png)
[mindspore] [read graph data] cannot read mindrecord format graph data
随机推荐
Error when creating dataset with mindscore
PMP practice once a day | don't get lost in the exam -7.25
Stock software development
Digital informatization (enumerate assumptions first, and then see whether the conditions are met) (1089 werewolf kill - simple version)
统信UOS下配置安装cocos2dx开发环境
wallys//wifi6 wifi5 router IPQ6018 IPQ4019 IPQ4029 802.11ax 802.11ac
10.< tag-动态规划和子序列, 子数组>lt.53. 最大子数组和 + lt.392. 判断子序列 dbc
String of sword finger offer question bank summary (II) (C language version)
Partial interpretation of yolov7 paper [including my own understanding]
Share 25 useful JS single line codes
redis源码 -ziplist
RF、GBDT、XGboost特征选择方法「建议收藏」
Apache Mina framework "suggestions collection"
[Infographics Show] 248 Public Domain Name
Arrow parquet
[today in history] June 30: von Neumann published the first draft; The semiconductor war in the late 1990s; CBS acquires CNET
RF, gbdt, xgboost feature selection methods "recommended collection"
Summarize the level of intelligent manufacturing discussion [macro understanding]
PMP每日一练 | 考试不迷路-7.25
网络协议:TCP Part2