当前位置:网站首页>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
边栏推荐
- 分享 25 个有用的 JS 单行代码
- 笔记——记录一个CannotFindDataSourceException: dynamic-datasource can not find primary datasource问题解决
- 智能电子界桩自然保护区远程监控解决方案
- Working principle of radar water level gauge and precautions for installation and maintenance
- Error when creating dataset with mindscore
- Prescan quick start to master Lesson 19: prescan actuator configuration, track synchronization and non configuration of multiple tracks
- Socket error Event: 32 Error: 10053. Connection closing...Socket close
- TGA file format (waveform sound file format)
- Proxy implements MySQL read / write separation
- 什么是聚类分析?聚类分析方法的类别[通俗易懂]
猜你喜欢

YOLOv7论文部分解读【含自己的理解】
![MySQL date [plus sign / +] condition filtering problem](/img/86/aed048e27b3e0b0baa919204bc067c.png)
MySQL date [plus sign / +] condition filtering problem

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

分享 25 个有用的 JS 单行代码
![[today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference](/img/0f/8ce2d5487b16d38a152cfd3ab454bb.png)
[today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference

【NOI模拟赛】字符串匹配(后缀自动机SAM,莫队,分块)

Difference Between Accuracy and Precision

网络协议:TCP Part2

增加 swap 空间

【高等数学】【1】函数、极限、连续
随机推荐
当AI邂逅生命健康,华为云为他们搭建三座桥
MySQL 日期【加号/+】条件筛选问题
CarSim simulation quick start (XV) - ADAS sensor objects of CarSim sensor simulation (1)
Log in to Baidu online disk with cookies (websites use cookies)
Mindspore1.1.1 source code compilation and installation -- errors in the core compilation stage
[advanced mathematics] [5] definite integral and its application
飞行器pid控制(旋翼飞控)
【高等数学】【4】不定积分
CarSim仿真快速入门(十六)—CarSim传感器仿真之ADAS Sensor Objects (2)
9. < tag dynamic programming and subsequence, subarray> lt.718. Longest repeated subarray + lt.1143. Longest common subsequence
移动web布局方法
Working principle of radar water level gauge and precautions for installation and maintenance
使用cookie登录百度网盘(网站使用cookie)
How to ensure the quality of customized slip rings
Dataframe first performs grouping operation and then combines output
[today in history] July 4: the first e-book came out; The inventor of magnetic stripe card was born; Palm computer pioneer was born
test
QQ是32位还是64位软件(在哪看电脑是32位还是64位)
Proxy实现mysql读写分离
谷歌Pixel 6a屏下指纹扫描仪存在重大安全漏洞