当前位置:网站首页>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
- 各厂商网络虚拟化的优势
- Export and call of onnx file of pytorch model
- PMP adopts the latest exam outline, here is [agile project management]
- [today in history] July 19: the father of IMAP agreement was born; Project kotlin made a public appearance; New breakthroughs in CT imaging
- What is the method to load the torch pre trained model for the mindspore model finetune?
- 4. Server startup of source code analysis of Nacos configuration center
- CarSim仿真快速入门(十五)—CarSim传感器仿真之ADAS Sensor Objects (1)
- What is cluster analysis? Categories of cluster analysis methods [easy to understand]
- Arrow parquet
猜你喜欢
![[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

分享 25 个有用的 JS 单行代码
![[today in history] July 18: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal](/img/7d/7a01c8c6923077d6c201bf1ae02c8c.png)
[today in history] July 18: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal

JMeter - interface test

Technology cloud report: what is the difference between zero trust and SASE? The answer is not really important
![[today in history] July 2: BitTorrent came out; The commercial system linspire was acquired; Sony deploys Playstation now](/img/7d/7a01c8c6923077d6c201bf1ae02c8c.png)
[today in history] July 2: BitTorrent came out; The commercial system linspire was acquired; Sony deploys Playstation now

谷歌Pixel 6a屏下指纹扫描仪存在重大安全漏洞

当AI邂逅生命健康,华为云为他们搭建三座桥

wallys//IPQ5018/IPQ6010/PD-60 802.3AT Input Output 10/100/1000M

RepVGG网络中重参化网络结构解读【附代码】
随机推荐
9. < tag dynamic programming and subsequence, subarray> lt.718. Longest repeated subarray + lt.1143. Longest common subsequence
统信UOS下配置安装cocos2dx开发环境
Is QQ 32-bit or 64 bit software (where to see whether the computer is 32-bit or 64 bit)
网络RTK无人机上机测试[通俗易懂]
10. < tag dynamic programming and subsequence, subarray> lt.53. maximum subarray and + lt.392. Judge subsequence DBC
wallys//IPQ5018/IPQ6010/PD-60 802.3AT Input Output 10/100/1000M
When the V100 of mindpole 8 card is trained to 101 epochs, an error of reading data timeout is reported
"Share" devaxpress asp Net v22.1 latest version system environment configuration requirements
CarSim simulation quick start (XIV) - CarSim Simulink joint simulation
Advantages of network virtualization of various manufacturers
Cloud native guide: what is cloud native infrastructure
移动web布局方法
YOLOv7论文部分解读【含自己的理解】
Introduction and construction of consul Registration Center
Application of conductive slip ring in mechanical equipment
[today in history] June 29: SGI and MIPS merged; Microsoft acquires PowerPoint developer; News corporation sells MySpace
[advanced mathematics] [8] differential equation
Apache Mina framework "suggestions collection"
[today in history] July 13: the father of database passed away; Apple buys cups code; IBM chip Alliance
【高等数学】【4】不定积分