├── .gitignore
├── Dockerfile
├── LICENSE
├── README.md
├── Vagrantfile
├── docker-compose.yaml
├── img
├── dashboard.png
├── image01.png
├── image02.png
├── image03.png
├── image04.png
└── image05.png
├── import_zabbix_clickhouse_template.php
├── zbx_clickhouse_agent.example.conf
├── zbx_clickhouse_config.xml
├── zbx_clickhouse_monitor.sh
└── zbx_clickhouse_template.xml
/.gitignore:
--------------------------------------------------------------------------------
1 | composer.*
2 | vendor/
3 | .idea/
4 | .vagrant/
5 | *.log
6 | *.pcap
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | # zabbix-agent + php + composer which allow connect to clickhouse server
2 | FROM composer AS composer
3 | FROM php:7.3-cli-stretch
4 |
5 | ENV DOCKERIZE_VERSION v0.6.1
6 | RUN curl -o dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz -sL https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
7 | && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
8 | && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
9 |
10 | ENV ZBX_AGENT_VERSION=3.4
11 | ENV ZBX_AGENT_DISTRO=stretch
12 | RUN curl -o zabbix-release_${ZBX_AGENT_VERSION}-1+${ZBX_AGENT_DISTRO}_all.deb -sL https://repo.zabbix.com/zabbix/${ZBX_AGENT_VERSION}/debian/pool/main/z/zabbix-release/zabbix-release_${ZBX_AGENT_VERSION}-1+${ZBX_AGENT_DISTRO}_all.deb \
13 | && apt-get update \
14 | && apt-get install --no-install-recommends -y apt-transport-https ca-certificates software-properties-common curl unzip git libxml2-utils gnupg2 default-mysql-client inetutils-telnet inetutils-ping iproute2 less tcpdump dirmngr\
15 | && dpkg -i zabbix-release_${ZBX_AGENT_VERSION}-1+${ZBX_AGENT_DISTRO}_all.deb \
16 | && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E0C56BD4 \
17 | && add-apt-repository "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" \
18 | && apt-get update \
19 | && apt-get install --no-install-recommends -y zabbix-agent/stretch \
20 | && apt-get install --no-install-recommends -y clickhouse-client \
21 | && rm -rf zabbix-release_${ZBX_AGENT_VERSION}-1+${ZBX_AGENT_DISTRO}_all.deb \
22 | && apt-get clean && apt-get auto-remove \
23 | && rm -rf /var/lib/apt/lists/*
24 |
25 | ENV ZBX_SERVER=zabbix
26 | ENV ZBX_API_URL=http://zabbix/api_jsonrpc.php
27 | ENV ZBX_API_USER=Admin
28 | ENV ZBX_API_PASS=zabbix
29 | ENV ZBX_HTTP_AUTH_UZER=""
30 | ENV ZBX_HTTP_AUTH_PASS=""
31 | ENV CLICKHOUSE_SERVER=clickhouse
32 | ENV ZBX_TEMPLATES=/etc/zabbix/templates/zbx_clickhouse_template.xml
33 |
34 | RUN mkdir -p /var/run/zabbix
35 | RUN mkdir -p /etc/zabbix/php-zabbix-api
36 | WORKDIR /etc/zabbix/php-zabbix-api
37 | COPY --from=composer /usr/bin/composer /usr/bin/composer
38 | RUN composer require confirm-it-solutions/php-zabbix-api
39 | COPY import_zabbix_clickhouse_template.php ./
40 |
41 | RUN echo "Server=${ZBX_SERVER}" > /etc/zabbix/zabbix_agentd.conf
42 | RUN echo "ServerActive=${ZBX_SERVER}" >> /etc/zabbix/zabbix_agentd.conf
43 | RUN echo "Hostname=zabbix-agent" >> /etc/zabbix/zabbix_agentd.conf
44 | RUN echo "DebugLevel=3" >> /etc/zabbix/zabbix_agentd.conf
45 | RUN echo "AllowRoot=1" >> /etc/zabbix/zabbix_agentd.conf
46 | RUN echo "LogFile=/var/log/zabbix_agentd.log" >> /etc/zabbix/zabbix_agentd.conf
47 | RUN echo "Include=/etc/zabbix/zabbix_agentd.d/*.conf" >> /etc/zabbix/zabbix_agentd.conf
48 |
49 | CMD dockerize -timeout 120s -wait tcp://${ZBX_SERVER}:10051 -wait http://${CLICKHOUSE_SERVER}:8123/ping -- bash -xc "php -f /etc/zabbix/php-zabbix-api/import_zabbix_clickhouse_template.php && zabbix_agentd -f -c /etc/zabbix/zabbix_agentd.conf"
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Altinity
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Zabbix template for ClickHouse
2 | Required Zabbix Server version - 3.4+
3 | For zabbix 5.0+ please use [official Zabbix ClickHouse integration used http_agent](https://www.zabbix.com/integrations/clickhouse)
4 |
5 | How to set up server with Zabbix agent:
6 | * Ensure `xmllint` is installed
7 | - for Debian\Ubuntu `apt-get install -y libxml2-utils`
8 | - for CentOS / Fedora `yum install -y libxml2`
9 | - for OpenSUSE `yum install -y libxml2-tools`
10 | * Ensure `clickhouse-client` is installed and allow access to monitored ClickHouse server
11 | - https://clickhouse.tech/docs/en/getting_started/install/
12 | * Clone this repo.
13 | * Edit `/etc/zabbix/zabbix_agentd.conf`. Add the following line:
14 | ```bash
15 | UserParameter=ch_params[*],bash /PATH/TO/zbx_clickhouse_monitor.sh "$1" "HOST_WHERE_CH_IS_RUNNING" "ADDITIONAL CLICKHOUSE-CLIENT PARAMS"
16 | ```
17 | where:
18 | * `/PATH/TO/zbx_clickhouse_monitor.sh` depends on where you've cloned this repo.
19 | * `HOST_WHERE_CH_IS_RUNNING` is optional parameter, in case none specified `localhost` would be used
20 | * `ADDITIONAL CLICKHOUSE-CLIENT PARAMS` is optional string appended to any clickhouse-client call. Useful if authorization or ssl required
21 |
22 | And finally
23 | * Import `zbx_clickhouse_template.xml` in zabbix (**zabbix -> Configuration -> Templates -> Import**).
24 |
25 | 
26 | 
27 | 
28 | 
29 | 
30 | 
31 |
--------------------------------------------------------------------------------
/Vagrantfile:
--------------------------------------------------------------------------------
1 | # -*- mode: ruby -*-
2 | # vi: set ft=ruby :
3 | Vagrant.configure(2) do |config|
4 | config.vm.box = "ubuntu/bionic64"
5 | config.vm.box_check_update = false
6 |
7 | config.hostmanager.enabled = true
8 | config.hostmanager.manage_host = true
9 | config.hostmanager.ignore_private_ip = false
10 | config.hostmanager.include_offline = false
11 |
12 | if Vagrant.has_plugin?("vagrant-vbguest")
13 | config.vbguest.auto_update = false
14 | end
15 |
16 | config.vm.define :clickhouse_zabbix do |clickhouse_zabbix|
17 | clickhouse_zabbix.vm.network "private_network", ip: "172.16.2.2", nic_type: "virtio"
18 | clickhouse_zabbix.vm.host_name = "local-altinity-clickhouse-zabbix"
19 | clickhouse_zabbix.hostmanager.aliases = ["clickhouse-zabbix.local"]
20 | end
21 |
22 | config.vm.provider "virtualbox" do |vb|
23 | vb.gui = false
24 | vb.memory = "2048"
25 | end
26 |
27 | config.vm.provision "shell", inline: <<-SHELL
28 | set -xeuo pipefail
29 |
30 | apt-get update
31 | apt-get install --no-install-recommends -y apt-transport-https ca-certificates software-properties-common curl
32 | apt-get install --no-install-recommends -y htop ethtool mc curl wget jq socat git mysql-client
33 |
34 | # yq
35 | apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
36 | add-apt-repository ppa:rmescandon/yq
37 | apt-get install --no-install-recommends -y yq
38 |
39 | # clickhouse
40 | apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E0C56BD4
41 | add-apt-repository "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
42 | apt-get install --no-install-recommends -y clickhouse-client
43 |
44 | # docker
45 | apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8D81803C0EBFCD88
46 | add-apt-repository "deb https://download.docker.com/linux/ubuntu bionic edge"
47 | apt-get install --no-install-recommends -y docker-ce
48 |
49 | # docker compose
50 | apt-get install --no-install-recommends -y python3-pip
51 | python3 -m pip install -U pip
52 | rm -rf /usr/bin/pip3
53 | pip3 install -U setuptools
54 | pip3 install -U docker-compose
55 | cd /vagrant
56 | docker-compose pull
57 | docker-compose build
58 | docker-compose up -d
59 | SHELL
60 | end
--------------------------------------------------------------------------------
/docker-compose.yaml:
--------------------------------------------------------------------------------
1 | version: '3'
2 | services:
3 | zabbix:
4 | image: zabbix/zabbix-appliance:ubuntu-3.4-latest
5 | ports:
6 | - 80:80
7 | networks:
8 | main:
9 | aliases:
10 | - zabbix
11 | clickhouse:
12 | image: yandex/clickhouse-server:latest
13 | ports:
14 | - 8123:8123
15 | - 9000:9000
16 | - 33306:33306
17 | volumes:
18 | - clickhouse_data:/var/lib/clickhouse
19 | - ./zbx_clickhouse_config.xml:/etc/clickhouse-server/config.xml
20 | networks:
21 | main:
22 | aliases:
23 | - clickhouse
24 | zabbix-agent:
25 | build:
26 | dockerfile: Dockerfile
27 | context: ./
28 | volumes:
29 | - clickhouse_data:/var/lib/clickhouse
30 | - ./zbx_clickhouse_config.xml:/etc/clickhouse-server/config.xml
31 | - ./zbx_clickhouse_monitor.sh:/etc/zabbix/scripts/zbx_clickhouse_monitor.sh
32 | - ./zbx_clickhouse_template.xml:/etc/zabbix/templates/zbx_clickhouse_template.xml
33 | - ./zbx_clickhouse_agent.example.conf:/etc/zabbix/zabbix_agentd.d/zbx_clickhouse_agent.conf
34 | - ./import_zabbix_clickhouse_template.php:/etc/zabbix/php-zabbix-api/import_zabbix_clickhouse_template.php
35 | networks:
36 | main:
37 | aliases:
38 | - zabbix-agent
39 | depends_on:
40 | - zabbix
41 | - clickhouse
42 |
43 | networks:
44 | main:
45 |
46 | volumes:
47 | clickhouse_data:
--------------------------------------------------------------------------------
/img/dashboard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Altinity/clickhouse-zabbix-template/197455b63195156d3a8adc98b91b090b578acc25/img/dashboard.png
--------------------------------------------------------------------------------
/img/image01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Altinity/clickhouse-zabbix-template/197455b63195156d3a8adc98b91b090b578acc25/img/image01.png
--------------------------------------------------------------------------------
/img/image02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Altinity/clickhouse-zabbix-template/197455b63195156d3a8adc98b91b090b578acc25/img/image02.png
--------------------------------------------------------------------------------
/img/image03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Altinity/clickhouse-zabbix-template/197455b63195156d3a8adc98b91b090b578acc25/img/image03.png
--------------------------------------------------------------------------------
/img/image04.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Altinity/clickhouse-zabbix-template/197455b63195156d3a8adc98b91b090b578acc25/img/image04.png
--------------------------------------------------------------------------------
/img/image05.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Altinity/clickhouse-zabbix-template/197455b63195156d3a8adc98b91b090b578acc25/img/image05.png
--------------------------------------------------------------------------------
/import_zabbix_clickhouse_template.php:
--------------------------------------------------------------------------------
1 | configurationImport([
22 | 'format'=>'xml',
23 | 'rules'=>[
24 | 'applications'=>[
25 | 'createMissing'=>true,
26 | ],
27 | 'discoveryRules'=>[
28 | 'createMissing'=>true,
29 | 'updateExisting'=>true,
30 | ],
31 | 'groups'=>[
32 | 'createMissing'=>true,
33 | ],
34 | 'graphs'=>[
35 | 'createMissing'=>true,
36 | 'updateExisting'=>true,
37 | ],
38 | 'items'=>[
39 | 'createMissing'=>true,
40 | 'updateExisting'=>true,
41 | ],
42 | 'screens'=>[
43 | 'createMissing'=>true,
44 | 'updateExisting'=>true,
45 | ],
46 | 'templateLinkage'=>[
47 | 'createMissing'=>true,
48 | ],
49 | 'templates'=>[
50 | 'createMissing'=>true,
51 | 'updateExisting'=>true,
52 | ],
53 | 'templateScreens'=>[
54 | 'createMissing'=>true,
55 | 'updateExisting'=>true,
56 | ],
57 | 'triggers'=>[
58 | 'createMissing'=>true,
59 | 'updateExisting'=>true,
60 | ],
61 | 'valueMaps'=>[
62 | 'createMissing'=>true,
63 | 'updateExisting'=>true,
64 | ],
65 | ],
66 | 'source'=>file_get_contents($template),
67 | ]);
68 | echo "$template put to $url OK\n";
69 | }
70 |
--------------------------------------------------------------------------------
/zbx_clickhouse_agent.example.conf:
--------------------------------------------------------------------------------
1 | UserParameter=ch_params[*],bash /etc/zabbix/scripts/zbx_clickhouse_monitor.sh "$1" "${CLICKHOUSE_SERVER}" --user default --connect_timeout 5 --receive_timeout 5
2 |
--------------------------------------------------------------------------------
/zbx_clickhouse_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
9 |
10 |
18 |
19 |
23 |
24 |
25 |
26 |
27 | trace
28 | /var/log/clickhouse-server/clickhouse-server.log
29 | /var/log/clickhouse-server/clickhouse-server.err.log
30 | 1000M
31 | 10
32 |
33 |
34 |
35 | 8123
36 | 9000
37 | 33306
38 |
39 |
43 |
44 |
45 |
46 |
47 |
48 | /etc/clickhouse-server/server.crt
49 | /etc/clickhouse-server/server.key
50 |
51 | /etc/clickhouse-server/dhparam.pem
52 | none
53 | true
54 | true
55 | sslv2,sslv3
56 | true
57 |
58 |
59 |
60 | true
61 | true
62 | sslv2,sslv3
63 | true
64 |
65 |
66 |
67 | RejectCertificateHandler
68 |
69 |
70 |
71 |
72 |
73 |
76 |
77 |
78 | 9009
79 |
80 |
84 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | 4096
107 | 3
108 |
109 |
110 | 100
111 |
112 |
114 |
115 |
116 |
121 | 8589934592
122 |
123 |
127 | 5368709120
128 |
129 |
130 |
131 | /var/lib/clickhouse/
132 |
133 |
134 | /var/lib/clickhouse/tmp/
135 |
136 |
137 | /var/lib/clickhouse/user_files/
138 |
139 |
140 | users.xml
141 |
142 |
143 | default
144 |
145 |
146 |
147 |
148 |
149 | default
150 |
151 |
163 |
164 |
165 |
168 |
169 |
170 |
174 | false
175 |
176 |
179 |
180 |
181 |
182 |
183 |
184 | localhost
185 | 9000
186 |
187 |
188 |
189 |
190 |
191 |
192 | localhost
193 | 9000
194 |
195 |
196 |
197 |
198 | localhost
199 | 9000
200 |
201 |
202 |
203 |
204 |
205 |
206 | 127.0.0.1
207 | 9000
208 |
209 |
210 |
211 |
212 | 127.0.0.2
213 | 9000
214 |
215 |
216 |
217 |
218 |
219 |
220 | localhost
221 | 9440
222 | 1
223 |
224 |
225 |
226 |
227 |
228 |
229 | localhost
230 | 9000
231 |
232 |
233 |
234 |
235 | localhost
236 | 1
237 |
238 |
239 |
240 |
241 |
242 |
243 |
247 |
248 |
253 |
254 |
255 |
256 |
261 |
262 |
263 |
264 |
265 | 3600
266 |
267 |
268 |
269 | 3600
270 |
271 |
272 | 60
273 |
274 |
275 |
283 |
310 |
311 |
312 |
319 |
329 |
330 |
331 |
332 |
336 | system
337 |
338 |
346 | toYYYYMM(event_date)
347 |
348 | 7500
349 |
350 |
351 |
353 |
354 | system
355 |
356 |
357 | toYYYYMM(event_date)
358 | 7500
359 |
360 |
361 |
363 |
364 | system
365 |
366 | toYYYYMM(event_date)
367 | 7500
368 |
369 |
370 |
373 |
374 | system
375 |
376 | 7500
377 |
378 |
379 |
387 |
388 |
391 |
392 | system
393 |
394 | 7500
395 | 1000
396 |
397 |
398 |
401 |
402 |
403 |
404 |
405 |
406 |
407 |
408 |
409 |
412 | *_dictionary.xml
413 |
414 |
417 |
418 |
430 |
431 |
432 |
434 |
435 |
436 | /clickhouse/task_queue/ddl
437 |
438 |
439 |
440 |
441 |
442 |
443 |
448 |
449 |
456 |
457 |
458 |
459 |
460 |
461 |
462 | click_cost
463 | any
464 |
465 | 0
466 | 3600
467 |
468 |
469 | 86400
470 | 60
471 |
472 |
473 |
474 | max
475 |
476 | 0
477 | 60
478 |
479 |
480 | 3600
481 | 300
482 |
483 |
484 | 86400
485 | 3600
486 |
487 |
488 |
489 |
490 |
493 | /var/lib/clickhouse/format_schemas/
494 |
495 |
496 |
508 |
509 |
510 |
511 |
512 |
--------------------------------------------------------------------------------
/zbx_clickhouse_monitor.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Yandex ClickHouse Zabbix template
4 | #
5 | # Copyright (C) Ivinco Ltd
6 | # Copyright (C) Altinity Ltd
7 |
8 |
9 | # Default host where ClickHouse is expected to be available
10 | # You may want to change this for your installation
11 | CH_HOST="${2:-localhost}"
12 |
13 | ##
14 | ## Write usage info
15 | ##
16 | function usage()
17 | {
18 | echo "Usage: $(basename "$0") Command [ClickHouse Host to Connect] [Additional ClickHouse-Client flags]"
19 | }
20 |
21 | # Command to execute
22 | ITEM=$1
23 | if [ -z "$ITEM" ]; then
24 | echo "Provide command to run"
25 | usage
26 | exit 1
27 | fi
28 |
29 | # Collect additional parameters if available. Get last argument if args count > 2.
30 | # IMPORTANT Middle agruments are skipped for simplicity
31 | if [ $# -gt 2 ]; then
32 | ADD_FLAGS="${*:3}"
33 | else
34 | ADD_FLAGS=""
35 | fi
36 |
37 | # Ensure xmllint is available
38 | if ! command -v xmllint >/dev/null 2>&1; then
39 | echo "Looks like xmllint is not available. Please install it."
40 | exit 1
41 | fi
42 |
43 | # Extract ClickHouse data directory
44 | # Usually it is /var/lib/clickhouse
45 | CH_PATH="$(xmllint --xpath 'string(/yandex/path)' /etc/clickhouse-server/config.xml)"
46 | if [ "$?" -ne 0 ]; then
47 | echo "Something went wrong with parsing ClickHouse config. Is xmllint installed? Is ClickHouse config available?"
48 | exit 1
49 | fi
50 |
51 | ##
52 | ## Run ClickHouse monitoring query
53 | ##
54 | function run_ch_query()
55 | {
56 | # Table where to look into
57 | TABLE=$1
58 | # Column where to look into
59 | COLUMN=$2
60 | # Metric name to fetch
61 | METRIC=$3
62 | # System DB to look into
63 | DATABASE="system"
64 |
65 | SQL="SELECT value FROM ${DATABASE}.${TABLE} WHERE $COLUMN = '$METRIC'"
66 | clickhouse-client -h "$CH_HOST" -d "$DATABASE" -q "$SQL" $ADD_FLAGS
67 | }
68 |
69 | ##
70 | ## Fetch metric by name from ClickHouse
71 | ##
72 | function run_ch_metric_command()
73 | {
74 | # $1 - metric name to fetch
75 | run_ch_query 'metrics' 'metric' $1
76 | }
77 |
78 | ##
79 | ## Fetch asynchronous metric by name from ClickHouse
80 | ##
81 | function run_ch_async_metric_command()
82 | {
83 | # $1 - metric name to fetch
84 | run_ch_query 'asynchronous_metrics' 'metric' $1
85 | }
86 |
87 | ##
88 | ## Fetch event by name from ClickHouse
89 | ##
90 | function run_ch_event_command()
91 | {
92 | # $1 - metric name to fetch
93 | run_ch_query 'events' 'event' $1
94 | }
95 |
96 | ##
97 | ## Fetch processes info from ClickHouse
98 | ##
99 | function run_ch_process_command()
100 | {
101 | DATABASE="system"
102 | SQL="SELECT elapsed FROM processes"
103 | clickhouse-client -h "$CH_HOST" -d "$DATABASE" -q "$SQL" $ADD_FLAGS
104 | }
105 |
106 | ##
107 | ## Fetch event by name from ClickHouse
108 | ##
109 | function run_ch_event_command_zeropad()
110 | {
111 | # $1 - metric name to fetch
112 | res=$(run_ch_query 'events' 'event' $1)
113 | [ -n "$res" ] || res=0
114 | echo "$res"
115 | }
116 |
117 | case "$ITEM" in
118 | DiskUsage)
119 | clickhouse client -h "$CH_HOST" -q 'SELECT total_space,free_space FROM system.disks;' $ADD_FLAGS| awk '{printf($1 - $2)}'
120 | ;;
121 |
122 | Revision)
123 | grep Revision "$CH_PATH/status" | awk '{print $2}'
124 | ;;
125 |
126 | LongestRunningQuery)
127 | run_ch_process_command | sort | tail -1
128 | ;;
129 |
130 | DelayedInserts | \
131 | HTTPConnection | \
132 | MemoryTracking | \
133 | MemoryTrackingInBackgroundProcessingPool | \
134 | MemoryTrackingInBackgroundMoveProcessingPool | \
135 | MemoryTrackingInBackgroundSchedulePool | \
136 | MemoryTrackingForMerges | \
137 | Query | \
138 | TCPConnection | \
139 | MySQLConnection | \
140 | ReadonlyReplica | \
141 | Merge | \
142 | DistributedSend | \
143 | DistributedFilesToInsert | \
144 | Read | \
145 | Write | \
146 | ZooKeeperWatch )
147 | run_ch_metric_command "$ITEM"
148 | ;;
149 |
150 | MaxPartCountForPartition| \
151 | ReplicasMaxAbsoluteDelay| \
152 | ReplicasSumQueueSize | \
153 | Uptime )
154 | run_ch_async_metric_command "$ITEM"
155 | ;;
156 |
157 | InsertedBytes | \
158 | InsertedRows | \
159 | InsertQuery | \
160 | MergedRows | \
161 | MergedUncompressedBytes | \
162 | ReadCompressedBytes | \
163 | ReplicaPartialShutdown | \
164 | ZooKeeperUserExceptions | \
165 | ZooKeeperHardwareExceptions | \
166 | ZooKeeperOtherExceptions | \
167 | ZooKeeperInit | \
168 | NetworkErrors | \
169 | DNSError | \
170 | DistributedConnectionFailAtAll | \
171 | DistributedConnectionFailTry | \
172 | SelectQuery )
173 | run_ch_event_command "$ITEM"
174 | ;;
175 |
176 | SelectedParts)
177 | run_ch_event_command_zeropad "$ITEM"
178 | ;;
179 |
180 | *)
181 | echo "Unknown argument '$ITEM'. Please check command to run"
182 | exit 1
183 | ;;
184 | esac
185 |
--------------------------------------------------------------------------------
/zbx_clickhouse_template.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 3.4
4 | 2020-05-20T05:55:39Z
5 |
6 |
7 | Clickhouse servers
8 |
9 |
10 |
11 |
12 | Clickhouse
13 | Clickhouse
14 |
15 |
16 |
17 | Clickhouse servers
18 |
19 |
20 |
21 |
22 | Clickhouse
23 |
24 |
25 |
26 | -
27 | delayed insert queries
28 | 0
29 |
30 |
31 | ch_params[DelayedInserts]
32 | 30s
33 | 90d
34 | 365d
35 | 0
36 | 3
37 |
38 |
39 |
40 |
41 | 0
42 | 0
43 |
44 | 0
45 |
46 |
47 |
48 | 0
49 |
50 |
51 |
52 |
53 |
54 |
55 | 0
56 |
57 |
58 | Clickhouse
59 |
60 |
61 |
62 |
63 |
64 |
65 | 9
66 |
67 |
68 |
69 |
70 |
71 |
72 | -
73 | data directory size
74 | 0
75 |
76 |
77 | ch_params[DiskUsage]
78 | 30s
79 | 90d
80 | 365d
81 | 0
82 | 3
83 |
84 | B
85 |
86 |
87 | 0
88 | 0
89 |
90 | 0
91 |
92 |
93 |
94 | 0
95 |
96 |
97 |
98 |
99 |
100 |
101 | 0
102 |
103 |
104 | Clickhouse
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 | -
114 | distributed connection fail after all retries finished
115 | 0
116 |
117 |
118 | ch_params[DistributedConnectionFailAtAll]
119 | 30s
120 | 90d
121 | 365d
122 | 0
123 | 3
124 |
125 |
126 |
127 |
128 | 0
129 | 0
130 |
131 | 0
132 |
133 |
134 |
135 | 0
136 |
137 |
138 |
139 |
140 |
141 |
142 | 0
143 |
144 |
145 | Clickhouse
146 |
147 |
148 |
149 |
150 |
151 |
152 | 9
153 |
154 |
155 |
156 |
157 |
158 |
159 | -
160 | distributed connection fail with retry
161 | 0
162 |
163 |
164 | ch_params[DistributedConnectionFailTry]
165 | 30s
166 | 90d
167 | 365d
168 | 0
169 | 3
170 |
171 |
172 |
173 |
174 | 0
175 | 0
176 |
177 | 0
178 |
179 |
180 |
181 | 0
182 |
183 |
184 |
185 |
186 |
187 |
188 | 0
189 |
190 |
191 | Clickhouse
192 |
193 |
194 |
195 |
196 |
197 |
198 | 9
199 |
200 |
201 |
202 |
203 |
204 |
205 | -
206 | distributed pending files
207 | 0
208 |
209 |
210 | ch_params[DistributedFilesToInsert]
211 | 30s
212 | 90d
213 | 365d
214 | 0
215 | 3
216 |
217 |
218 |
219 |
220 | 0
221 | 0
222 |
223 | 0
224 |
225 |
226 |
227 | 0
228 |
229 |
230 |
231 |
232 |
233 | Number of pending files to process for asynchronous insertion into Distributed tables. Number of files for every shard is summed.
234 | 0
235 |
236 |
237 | Clickhouse
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 | -
247 | distributed connections
248 | 0
249 |
250 |
251 | ch_params[DistributedSend]
252 | 30s
253 | 90d
254 | 365d
255 | 0
256 | 3
257 |
258 |
259 |
260 |
261 | 0
262 | 0
263 |
264 | 0
265 |
266 |
267 |
268 | 0
269 |
270 |
271 |
272 |
273 |
274 |
275 | 0
276 |
277 |
278 | Clickhouse
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 | -
288 | dns errors available from 20.3
289 | 0
290 |
291 |
292 | ch_params[DNSError]
293 | 30s
294 | 90d
295 | 365d
296 | 0
297 | 3
298 |
299 |
300 |
301 |
302 | 0
303 | 0
304 |
305 | 0
306 |
307 |
308 |
309 | 0
310 |
311 |
312 |
313 |
314 |
315 |
316 | 0
317 |
318 |
319 | Clickhouse
320 |
321 |
322 |
323 |
324 |
325 |
326 | 9
327 |
328 |
329 |
330 |
331 |
332 |
333 | -
334 | current HTTP connections
335 | 0
336 |
337 |
338 | ch_params[HTTPConnection]
339 | 30s
340 | 90d
341 | 365d
342 | 0
343 | 3
344 |
345 |
346 |
347 |
348 | 0
349 | 0
350 |
351 | 0
352 |
353 |
354 |
355 | 0
356 |
357 |
358 |
359 |
360 |
361 |
362 | 0
363 |
364 |
365 | Clickhouse
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 |
374 | -
375 | inserted bytes per second
376 | 0
377 |
378 |
379 | ch_params[InsertedBytes]
380 | 30s
381 | 90d
382 | 365d
383 | 0
384 | 3
385 |
386 | B
387 |
388 |
389 | 0
390 | 0
391 |
392 | 0
393 |
394 |
395 |
396 | 0
397 |
398 |
399 |
400 |
401 |
402 |
403 | 0
404 |
405 |
406 | Clickhouse
407 |
408 |
409 |
410 |
411 |
412 |
413 | 10
414 |
415 |
416 |
417 |
418 |
419 |
420 | -
421 | inserted rows per second
422 | 0
423 |
424 |
425 | ch_params[InsertedRows]
426 | 30s
427 | 90d
428 | 365d
429 | 0
430 | 3
431 |
432 |
433 |
434 |
435 | 0
436 | 0
437 |
438 | 0
439 |
440 |
441 |
442 | 0
443 |
444 |
445 |
446 |
447 |
448 |
449 | 0
450 |
451 |
452 | Clickhouse
453 |
454 |
455 |
456 |
457 |
458 |
459 | 10
460 |
461 |
462 |
463 |
464 |
465 |
466 | -
467 | processed INSERT queries
468 | 0
469 |
470 |
471 | ch_params[InsertQuery]
472 | 30s
473 | 90d
474 | 365d
475 | 0
476 | 3
477 |
478 |
479 |
480 |
481 | 0
482 | 0
483 |
484 | 0
485 |
486 |
487 |
488 | 0
489 |
490 |
491 |
492 |
493 |
494 |
495 | 0
496 |
497 |
498 | Clickhouse
499 |
500 |
501 |
502 |
503 |
504 |
505 | 9
506 |
507 |
508 |
509 |
510 |
511 |
512 | -
513 | the longest currently running query time
514 | 0
515 |
516 |
517 | ch_params[LongestRunningQuery]
518 | 30s
519 | 90d
520 | 365d
521 | 0
522 | 0
523 |
524 | s
525 |
526 |
527 | 0
528 | 0
529 |
530 | 0
531 |
532 |
533 |
534 | 0
535 |
536 |
537 |
538 |
539 |
540 |
541 | 0
542 |
543 |
544 | Clickhouse
545 |
546 |
547 |
548 |
549 |
550 |
551 |
552 |
553 | -
554 | max count of parts per partition across all tables
555 | 0
556 |
557 |
558 | ch_params[MaxPartCountForPartition]
559 | 30s
560 | 90d
561 | 365d
562 | 0
563 | 3
564 |
565 |
566 |
567 |
568 | 0
569 | 0
570 |
571 | 0
572 |
573 |
574 |
575 | 0
576 |
577 |
578 |
579 |
580 |
581 |
582 | 0
583 |
584 |
585 | Clickhouse
586 |
587 |
588 |
589 |
590 |
591 |
592 |
593 |
594 | -
595 | memory for background merges
596 | 0
597 |
598 |
599 | ch_params[MemoryTrackingForMerges]
600 | 30s
601 | 90d
602 | 365d
603 | 0
604 | 3
605 |
606 | B
607 |
608 |
609 | 0
610 | 0
611 |
612 | 0
613 |
614 |
615 |
616 | 0
617 |
618 |
619 |
620 |
621 |
622 | Total amount of memory (bytes) allocated for background merges. Included in MemoryTrackingInBackgroundProcessingPool. Note that this value may include a drift when the memory was allocated in a context of background processing pool and freed in other context or vice-versa. This happens naturally due to caches for tables indexes and doesn't indicate memory leaks.
623 | 0
624 |
625 |
626 | Clickhouse
627 |
628 |
629 |
630 |
631 |
632 |
633 |
634 |
635 | -
636 | memory for backround moves
637 | 0
638 |
639 |
640 | ch_params[MemoryTrackingInBackgroundMoveProcessingPool]
641 | 30s
642 | 90d
643 | 365d
644 | 0
645 | 3
646 |
647 | B
648 |
649 |
650 | 0
651 | 0
652 |
653 | 0
654 |
655 |
656 |
657 | 0
658 |
659 |
660 |
661 |
662 |
663 | Total amount of memory (bytes) allocated in background processing pool (that is dedicated for backround moves). Note that this value may include a drift when the memory was allocated in a context of background processing pool and freed in other context or vice-versa. This happens naturally due to caches for tables indexes and doesn't indicate memory leaks.
664 | 0
665 |
666 |
667 | Clickhouse
668 |
669 |
670 |
671 |
672 |
673 |
674 |
675 |
676 | -
677 | memory for background merges, mutations and fetches.
678 | 0
679 |
680 |
681 | ch_params[MemoryTrackingInBackgroundProcessingPool]
682 | 30s
683 | 90d
684 | 365d
685 | 0
686 | 3
687 |
688 | B
689 |
690 |
691 | 0
692 | 0
693 |
694 | 0
695 |
696 |
697 |
698 | 0
699 |
700 |
701 |
702 |
703 |
704 | Total amount of memory (bytes) allocated in background processing pool (that is dedicated for backround merges, mutations and fetches). Note that this value may include a drift when the memory was allocated in a context of background processing pool and freed in other context or vice-versa. This happens naturally due to caches for tables indexes and doesn't indicate memory leaks.
705 | 0
706 |
707 |
708 | Clickhouse
709 |
710 |
711 |
712 |
713 |
714 |
715 |
716 |
717 | -
718 | memory for bookkeeping tasks of Replicated tables.
719 | 0
720 |
721 |
722 | ch_params[MemoryTrackingInBackgroundSchedulePool]
723 | 30s
724 | 90d
725 | 365d
726 | 0
727 | 3
728 |
729 | B
730 |
731 |
732 | 0
733 | 0
734 |
735 | 0
736 |
737 |
738 |
739 | 0
740 |
741 |
742 |
743 |
744 |
745 | Total amount of memory (bytes) allocated in background schedule pool (that is dedicated for bookkeeping tasks of Replicated tables).
746 | 0
747 |
748 |
749 | Clickhouse
750 |
751 |
752 |
753 |
754 |
755 |
756 |
757 |
758 | -
759 | memory used by queries
760 | 0
761 |
762 |
763 | ch_params[MemoryTracking]
764 | 30s
765 | 90d
766 | 365d
767 | 0
768 | 3
769 |
770 | B
771 |
772 |
773 | 0
774 | 0
775 |
776 | 0
777 |
778 |
779 |
780 | 0
781 |
782 |
783 |
784 |
785 |
786 |
787 | 0
788 |
789 |
790 | Clickhouse
791 |
792 |
793 |
794 |
795 |
796 |
797 |
798 |
799 | -
800 | merged rows per second
801 | 0
802 |
803 |
804 | ch_params[MergedRows]
805 | 30s
806 | 90d
807 | 365d
808 | 0
809 | 3
810 |
811 |
812 |
813 |
814 | 0
815 | 0
816 |
817 | 0
818 |
819 |
820 |
821 | 0
822 |
823 |
824 |
825 |
826 |
827 |
828 | 0
829 |
830 |
831 | Clickhouse
832 |
833 |
834 |
835 |
836 |
837 |
838 | 10
839 |
840 |
841 |
842 |
843 |
844 |
845 | -
846 | merged uncompressed bytes per second
847 | 0
848 |
849 |
850 | ch_params[MergedUncompressedBytes]
851 | 30s
852 | 90d
853 | 365d
854 | 0
855 | 3
856 |
857 | B
858 |
859 |
860 | 0
861 | 0
862 |
863 | 0
864 |
865 |
866 |
867 | 0
868 |
869 |
870 |
871 |
872 |
873 |
874 | 0
875 |
876 |
877 | Clickhouse
878 |
879 |
880 |
881 |
882 |
883 |
884 | 10
885 |
886 |
887 |
888 |
889 |
890 |
891 | -
892 | current MySQL connections
893 | 0
894 |
895 |
896 | ch_params[MySQLConnection]
897 | 30s
898 | 90d
899 | 365d
900 | 0
901 | 3
902 |
903 |
904 |
905 |
906 | 0
907 | 0
908 |
909 | 0
910 |
911 |
912 |
913 | 0
914 |
915 |
916 |
917 |
918 |
919 |
920 | 0
921 |
922 |
923 | Clickhouse
924 |
925 |
926 |
927 |
928 |
929 |
930 |
931 |
932 | -
933 | network errors, i.e. DNS resolve
934 | 0
935 |
936 |
937 | ch_params[NetworkErrors]
938 | 30s
939 | 90d
940 | 365d
941 | 0
942 | 3
943 |
944 |
945 |
946 |
947 | 0
948 | 0
949 |
950 | 0
951 |
952 |
953 |
954 | 0
955 |
956 |
957 |
958 |
959 |
960 |
961 | 0
962 |
963 |
964 | Clickhouse
965 |
966 |
967 |
968 |
969 |
970 |
971 | 9
972 |
973 |
974 |
975 |
976 |
977 |
978 | -
979 | current running queries
980 | 0
981 |
982 |
983 | ch_params[Query]
984 | 30s
985 | 90d
986 | 365d
987 | 0
988 | 3
989 |
990 |
991 |
992 |
993 | 0
994 | 0
995 |
996 | 0
997 |
998 |
999 |
1000 | 0
1001 |
1002 |
1003 |
1004 |
1005 |
1006 |
1007 | 0
1008 |
1009 |
1010 | Clickhouse
1011 |
1012 |
1013 |
1014 |
1015 |
1016 |
1017 |
1018 |
1019 | -
1020 | read bytes per second
1021 | 0
1022 |
1023 |
1024 | ch_params[ReadCompressedBytes]
1025 | 30s
1026 | 90d
1027 | 365d
1028 | 0
1029 | 3
1030 |
1031 | B
1032 |
1033 |
1034 | 0
1035 | 0
1036 |
1037 | 0
1038 |
1039 |
1040 |
1041 | 0
1042 |
1043 |
1044 |
1045 |
1046 |
1047 |
1048 | 0
1049 |
1050 |
1051 | Clickhouse
1052 |
1053 |
1054 |
1055 |
1056 |
1057 |
1058 | 10
1059 |
1060 |
1061 |
1062 |
1063 |
1064 |
1065 | -
1066 | Read-Only Replicas
1067 | 0
1068 |
1069 |
1070 | ch_params[ReadonlyReplica]
1071 | 30s
1072 | 90d
1073 | 365d
1074 | 0
1075 | 3
1076 |
1077 |
1078 |
1079 |
1080 | 0
1081 | 0
1082 |
1083 | 0
1084 |
1085 |
1086 |
1087 | 0
1088 |
1089 |
1090 |
1091 |
1092 |
1093 |
1094 | 0
1095 |
1096 |
1097 | Clickhouse
1098 |
1099 |
1100 |
1101 |
1102 |
1103 |
1104 |
1105 |
1106 | -
1107 | read, pread, io_getevents, etc. syscalls in fly
1108 | 0
1109 |
1110 |
1111 | ch_params[Read]
1112 | 30s
1113 | 90d
1114 | 365d
1115 | 0
1116 | 3
1117 |
1118 |
1119 |
1120 |
1121 | 0
1122 | 0
1123 |
1124 | 0
1125 |
1126 |
1127 |
1128 | 0
1129 |
1130 |
1131 |
1132 |
1133 |
1134 |
1135 | 0
1136 |
1137 |
1138 | Clickhouse
1139 |
1140 |
1141 |
1142 |
1143 |
1144 |
1145 |
1146 |
1147 | -
1148 | replica partial shutdown
1149 | 0
1150 |
1151 |
1152 | ch_params[ReplicaPartialShutdown]
1153 | 30s
1154 | 90d
1155 | 365d
1156 | 0
1157 | 3
1158 |
1159 |
1160 |
1161 |
1162 | 0
1163 | 0
1164 |
1165 | 0
1166 |
1167 |
1168 |
1169 | 0
1170 |
1171 |
1172 |
1173 |
1174 |
1175 | how many times ReplicatedMergreTree table yield in state when Zookeeper session is expired
1176 | 0
1177 |
1178 |
1179 | Clickhouse
1180 |
1181 |
1182 |
1183 |
1184 |
1185 |
1186 | 9
1187 |
1188 |
1189 |
1190 |
1191 |
1192 |
1193 | -
1194 | replication lag across all tables
1195 | 0
1196 |
1197 |
1198 | ch_params[ReplicasMaxAbsoluteDelay]
1199 | 30s
1200 | 90d
1201 | 365d
1202 | 0
1203 | 3
1204 |
1205 | s
1206 |
1207 |
1208 | 0
1209 | 0
1210 |
1211 | 0
1212 |
1213 |
1214 |
1215 | 0
1216 |
1217 |
1218 |
1219 |
1220 |
1221 |
1222 | 0
1223 |
1224 |
1225 | Clickhouse
1226 |
1227 |
1228 |
1229 |
1230 |
1231 |
1232 |
1233 |
1234 | -
1235 | replication tasks in queue
1236 | 0
1237 |
1238 |
1239 | ch_params[ReplicasSumQueueSize]
1240 | 30s
1241 | 90d
1242 | 365d
1243 | 0
1244 | 3
1245 |
1246 |
1247 |
1248 |
1249 | 0
1250 | 0
1251 |
1252 | 0
1253 |
1254 |
1255 |
1256 | 0
1257 |
1258 |
1259 |
1260 |
1261 |
1262 |
1263 | 0
1264 |
1265 |
1266 | Clickhouse
1267 |
1268 |
1269 |
1270 |
1271 |
1272 |
1273 |
1274 |
1275 | -
1276 | revision
1277 | 0
1278 |
1279 |
1280 | ch_params[Revision]
1281 | 30s
1282 | 90d
1283 | 365d
1284 | 0
1285 | 3
1286 |
1287 |
1288 |
1289 |
1290 | 0
1291 | 0
1292 |
1293 | 0
1294 |
1295 |
1296 |
1297 | 0
1298 |
1299 |
1300 |
1301 |
1302 |
1303 |
1304 | 0
1305 |
1306 |
1307 | Clickhouse
1308 |
1309 |
1310 |
1311 |
1312 |
1313 |
1314 |
1315 |
1316 | -
1317 | parts read from disk per second
1318 | 0
1319 |
1320 |
1321 | ch_params[SelectedParts]
1322 | 30s
1323 | 90d
1324 | 365d
1325 | 0
1326 | 3
1327 |
1328 |
1329 |
1330 |
1331 | 0
1332 | 0
1333 |
1334 | 0
1335 |
1336 |
1337 |
1338 | 0
1339 |
1340 |
1341 |
1342 |
1343 |
1344 |
1345 | 0
1346 |
1347 |
1348 | Clickhouse
1349 |
1350 |
1351 |
1352 |
1353 |
1354 |
1355 | 10
1356 |
1357 |
1358 |
1359 |
1360 |
1361 |
1362 | -
1363 | processed SELECT queries
1364 | 0
1365 |
1366 |
1367 | ch_params[SelectQuery]
1368 | 30s
1369 | 90d
1370 | 365d
1371 | 0
1372 | 3
1373 |
1374 |
1375 |
1376 |
1377 | 0
1378 | 0
1379 |
1380 | 0
1381 |
1382 |
1383 |
1384 | 0
1385 |
1386 |
1387 |
1388 |
1389 |
1390 |
1391 | 0
1392 |
1393 |
1394 | Clickhouse
1395 |
1396 |
1397 |
1398 |
1399 |
1400 |
1401 | 9
1402 |
1403 |
1404 |
1405 |
1406 |
1407 |
1408 | -
1409 | current TCP connections
1410 | 0
1411 |
1412 |
1413 | ch_params[TCPConnection]
1414 | 30s
1415 | 90d
1416 | 365d
1417 | 0
1418 | 3
1419 |
1420 |
1421 |
1422 |
1423 | 0
1424 | 0
1425 |
1426 | 0
1427 |
1428 |
1429 |
1430 | 0
1431 |
1432 |
1433 |
1434 |
1435 |
1436 |
1437 | 0
1438 |
1439 |
1440 | Clickhouse
1441 |
1442 |
1443 |
1444 |
1445 |
1446 |
1447 |
1448 |
1449 | -
1450 | clickhouse-server uptime
1451 | 0
1452 |
1453 |
1454 | ch_params[Uptime]
1455 | 30s
1456 | 90d
1457 | 365d
1458 | 0
1459 | 3
1460 |
1461 | s
1462 |
1463 |
1464 | 0
1465 | 0
1466 |
1467 | 0
1468 |
1469 |
1470 |
1471 | 0
1472 |
1473 |
1474 |
1475 |
1476 |
1477 |
1478 | 0
1479 |
1480 |
1481 | Clickhouse
1482 |
1483 |
1484 |
1485 |
1486 |
1487 |
1488 |
1489 |
1490 | -
1491 | write, pwrite, io_getevents, etc. syscalls in fly
1492 | 0
1493 |
1494 |
1495 | ch_params[Write]
1496 | 30s
1497 | 90d
1498 | 365d
1499 | 0
1500 | 3
1501 |
1502 |
1503 |
1504 |
1505 | 0
1506 | 0
1507 |
1508 | 0
1509 |
1510 |
1511 |
1512 | 0
1513 |
1514 |
1515 |
1516 |
1517 |
1518 |
1519 | 0
1520 |
1521 |
1522 | Clickhouse
1523 |
1524 |
1525 |
1526 |
1527 |
1528 |
1529 |
1530 |
1531 | -
1532 | Hardware exceptions in communication with ZooKeeper server
1533 | 0
1534 |
1535 |
1536 | ch_params[ZooKeeperHardwareExceptions]
1537 | 30s
1538 | 90d
1539 | 365d
1540 | 0
1541 | 3
1542 |
1543 |
1544 |
1545 |
1546 | 0
1547 | 0
1548 |
1549 | 0
1550 |
1551 |
1552 |
1553 | 0
1554 |
1555 |
1556 |
1557 |
1558 |
1559 |
1560 | 0
1561 |
1562 |
1563 | Clickhouse
1564 |
1565 |
1566 |
1567 |
1568 |
1569 |
1570 | 9
1571 |
1572 |
1573 |
1574 |
1575 |
1576 |
1577 | -
1578 | Other exceptions in communication with ZooKeeper server
1579 | 0
1580 |
1581 |
1582 | ch_params[ZooKeeperOtherExceptions]
1583 | 30s
1584 | 90d
1585 | 365d
1586 | 0
1587 | 3
1588 |
1589 |
1590 |
1591 |
1592 | 0
1593 | 0
1594 |
1595 | 0
1596 |
1597 |
1598 |
1599 | 0
1600 |
1601 |
1602 |
1603 |
1604 |
1605 |
1606 | 0
1607 |
1608 |
1609 | Clickhouse
1610 |
1611 |
1612 |
1613 |
1614 |
1615 |
1616 | 9
1617 |
1618 |
1619 |
1620 |
1621 |
1622 |
1623 | -
1624 | User exceptions in communication with ZooKeeper server
1625 | 0
1626 |
1627 |
1628 | ch_params[ZooKeeperUserExceptions]
1629 | 30s
1630 | 90d
1631 | 365d
1632 | 0
1633 | 3
1634 |
1635 |
1636 |
1637 |
1638 | 0
1639 | 0
1640 |
1641 | 0
1642 |
1643 |
1644 |
1645 | 0
1646 |
1647 |
1648 |
1649 |
1650 |
1651 |
1652 | 0
1653 |
1654 |
1655 | Clickhouse
1656 |
1657 |
1658 |
1659 |
1660 |
1661 |
1662 | 9
1663 |
1664 |
1665 |
1666 |
1667 |
1668 |
1669 | -
1670 | number of watches in zookeeper
1671 | 0
1672 |
1673 |
1674 | ch_params[ZooKeeperWatch]
1675 | 30s
1676 | 90d
1677 | 365d
1678 | 0
1679 | 3
1680 |
1681 |
1682 |
1683 |
1684 | 0
1685 | 0
1686 |
1687 | 0
1688 |
1689 |
1690 |
1691 | 0
1692 |
1693 |
1694 |
1695 |
1696 |
1697 |
1698 | 0
1699 |
1700 |
1701 | Clickhouse
1702 |
1703 |
1704 |
1705 |
1706 |
1707 |
1708 |
1709 |
1710 |
1711 |
1712 |
1713 |
1714 |
1715 | {$MAX_CONCURENT_QUERIES}
1716 | 100
1717 |
1718 |
1719 | {$MAX_DELAYED_FILES_TO_DISTRIBUTED_INSERT}
1720 | 50
1721 |
1722 |
1723 | {$MAX_HTTP_CONNECTIONS}
1724 | 100
1725 |
1726 |
1727 | {$MAX_MYSQL_CONNECTIONS}
1728 | 100
1729 |
1730 |
1731 | {$MAX_PARTS_PER_PARTITION}
1732 | 300
1733 |
1734 |
1735 | {$MAX_QUERY_TIME}
1736 | 600
1737 |
1738 |
1739 | {$MAX_REPLICA_DELAY_DISTRIBUTED_QUERIES}
1740 | 300
1741 |
1742 |
1743 | {$MAX_TCP_CONNECTIONS}
1744 | 1024
1745 |
1746 |
1747 | {$MIN_INSERTED_ROWS_PER_QUERY}
1748 | 1000
1749 |
1750 |
1751 |
1752 |
1753 |
1754 | Clickhouse metrics
1755 | 2
1756 | 5
1757 |
1758 |
1759 | 0
1760 | 450
1761 | 100
1762 | 0
1763 | 0
1764 | 1
1765 | 1
1766 | 0
1767 | 0
1768 | 0
1769 |
1770 |
1771 | 0
1772 | 0
1773 |
1774 | Concurrent running queries
1775 | Clickhouse
1776 |
1777 | 3
1778 |
1779 |
1780 |
1781 | 0
1782 | 450
1783 | 100
1784 | 1
1785 | 0
1786 | 1
1787 | 1
1788 | 0
1789 | 0
1790 | 0
1791 |
1792 |
1793 | 0
1794 | 0
1795 |
1796 | Write / Merge bytes/sec
1797 | Clickhouse
1798 |
1799 | 3
1800 |
1801 |
1802 |
1803 | 0
1804 | 450
1805 | 100
1806 | 0
1807 | 1
1808 | 1
1809 | 1
1810 | 0
1811 | 0
1812 | 0
1813 |
1814 |
1815 | 0
1816 | 0
1817 |
1818 | Finished Queries
1819 | Clickhouse
1820 |
1821 | 3
1822 |
1823 |
1824 |
1825 | 0
1826 | 450
1827 | 100
1828 | 1
1829 | 1
1830 | 1
1831 | 1
1832 | 0
1833 | 0
1834 | 0
1835 |
1836 |
1837 | 0
1838 | 0
1839 |
1840 | Insert / Merge rows/sec
1841 | Clickhouse
1842 |
1843 | 3
1844 |
1845 |
1846 |
1847 | 0
1848 | 500
1849 | 100
1850 | 0
1851 | 2
1852 | 1
1853 | 1
1854 | 0
1855 | 0
1856 | 0
1857 |
1858 |
1859 | 0
1860 | 0
1861 |
1862 | Memory Usage
1863 | Clickhouse
1864 |
1865 | 3
1866 |
1867 |
1868 |
1869 | 0
1870 | 500
1871 | 100
1872 | 1
1873 | 2
1874 | 1
1875 | 1
1876 | 0
1877 | 0
1878 | 0
1879 |
1880 |
1881 | 0
1882 | 0
1883 |
1884 | Database size
1885 | Clickhouse
1886 |
1887 | 3
1888 |
1889 |
1890 |
1891 | 0
1892 | 450
1893 | 100
1894 | 0
1895 | 3
1896 | 1
1897 | 1
1898 | 0
1899 | 0
1900 | 0
1901 |
1902 |
1903 | 0
1904 | 0
1905 |
1906 | Connections
1907 | Clickhouse
1908 |
1909 | 3
1910 |
1911 |
1912 |
1913 | 0
1914 | 450
1915 | 100
1916 | 1
1917 | 3
1918 | 1
1919 | 1
1920 | 0
1921 | 0
1922 | 0
1923 |
1924 |
1925 | 0
1926 | 0
1927 |
1928 | Distributed
1929 | Clickhouse
1930 |
1931 | 3
1932 |
1933 |
1934 |
1935 | 0
1936 | 450
1937 | 100
1938 | 0
1939 | 4
1940 | 1
1941 | 1
1942 | 0
1943 | 0
1944 | 0
1945 |
1946 |
1947 | 0
1948 | 0
1949 |
1950 | Replication
1951 | Clickhouse
1952 |
1953 | 3
1954 |
1955 |
1956 |
1957 | 0
1958 | 450
1959 | 100
1960 | 1
1961 | 4
1962 | 1
1963 | 1
1964 | 0
1965 | 0
1966 | 0
1967 |
1968 |
1969 | 0
1970 | 0
1971 |
1972 | Zookeeper
1973 | Clickhouse
1974 |
1975 | 3
1976 |
1977 |
1978 |
1979 |
1980 |
1981 |
1982 |
1983 |
1984 |
1985 | {Clickhouse:ch_params[Uptime].nodata(3m)}
1986 | 0
1987 |
1988 | {HOST.HOST} clickhouse-server monitoring have no data, possible clickhouse-server is down, check `systemd status clickhouse-server` and check zbx_clickhouse_monitor.sh and `systemd status zabbix-agent`
1989 | 0
1990 |
1991 |
1992 | 0
1993 | 4
1994 |
1995 | 0
1996 | 1
1997 |
1998 |
1999 |
2000 |
2001 | {Clickhouse:ch_params[Uptime].last()} <= 600
2002 | 0
2003 |
2004 | {HOST.HOST} clickhouse-server recently restarted
2005 | 0
2006 |
2007 |
2008 | 0
2009 | 2
2010 |
2011 | 0
2012 | 1
2013 |
2014 |
2015 |
2016 |
2017 | {Clickhouse:ch_params[DNSError].last()}>0 or {Clickhouse:ch_params[NetworkErrors].last()}>0
2018 | 0
2019 |
2020 | {HOST.HOST} clickhouse DNS errors occurred
2021 | 0
2022 |
2023 |
2024 | 0
2025 | 2
2026 | Please check DNS settings and remote_servers part of /etc/clickhouse-server/
2027 |
2028 | https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server-settings-remote-servers
2029 |
2030 | https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server-settings-disable-internal-dns-cache
2031 |
2032 | https://clickhouse.tech/docs/en/query_language/system/#query_language-system-drop-dns-cache
2033 | 0
2034 | 1
2035 |
2036 |
2037 |
2038 |
2039 | {Clickhouse:ch_params[Revision].change()}=1
2040 | 0
2041 |
2042 | {HOST.HOST} clickhouse version changed
2043 | 0
2044 |
2045 |
2046 | 0
2047 | 2
2048 |
2049 | 0
2050 | 0
2051 |
2052 |
2053 |
2054 |
2055 | {Clickhouse:ch_params[DistributedConnectionFailAtAll].last()}>=0
2056 | or
2057 | {Clickhouse:ch_params[DistributedConnectionFailTry].last()}>=0
2058 | or
2059 | {Clickhouse:ch_params[DistributedFilesToInsert].last()}>={$MAX_DELAYED_FILES_TO_DISTRIBUTED_INSERT}
2060 | 0
2061 |
2062 | {HOST.HOST} distributed connection exceptions occurred
2063 | 0
2064 |
2065 | https://clickhouse.tech/docs/en/operations/table_engines/distributed/
2066 | 0
2067 | 3
2068 | please check communications between Clickhouse servers and <remote_servers> in config.xml
2069 |
2070 |
2071 | https://clickhouse.tech/docs/en/operations/table_engines/distributed/
2072 |
2073 | https://clickhouse.tech/docs/en/sql-reference/statements/system/#query-language-system-distributed
2074 |
2075 | https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server-settings-remote-servers
2076 |
2077 |
2078 | When you insert data to distributed table.
2079 | Data is written to target *MergreTree tables asynchronously. When inserted in the table, the data block is just written to the local file system. The data is sent to the remote servers in the background as soon as possible. The period for sending data is managed by the distributed_directory_monitor_sleep_time_ms and distributed_directory_monitor_max_sleep_time_ms settings. The Distributed engine sends each file with inserted data separately, but you can enable batch sending of files with the distributed_directory_monitor_batch_inserts setting.
2080 | 0
2081 | 0
2082 |
2083 |
2084 |
2085 |
2086 | {Clickhouse:ch_params[DelayedInserts].last()} > 0
2087 | 0
2088 |
2089 | {HOST.HOST} have INSERT queries that are throttled due to high number of active data parts for partition in a MergeTree, please decrease INSERT frequency
2090 | 0
2091 |
2092 | https://clickhouse.tech/docs/en/development/architecture/#merge-tree
2093 | 0
2094 | 5
2095 | INSERT queries that are throttled due to high number of active data parts for partition in a MergeTree table.
2096 | 0
2097 | 0
2098 |
2099 |
2100 |
2101 |
2102 | {Clickhouse:ch_params[LongestRunningQuery].last()} >= {$MAX_QUERY_TIME}
2103 | 0
2104 |
2105 | {HOST.HOST} have queries which running more than {$MAX_QUERY_TIME} sec
2106 | 0
2107 |
2108 |
2109 | 0
2110 | 2
2111 |
2112 | 0
2113 | 1
2114 |
2115 |
2116 |
2117 |
2118 | {Clickhouse:ch_params[ReadonlyReplica].last()} > 0
2119 | 0
2120 |
2121 | {HOST.HOST} have read-only replicated tables, check Zookeeper state
2122 | 0
2123 |
2124 | https://clickhouse.tech/docs/en/operations/table_engines/replication/#recovery-after-failures
2125 | 0
2126 | 5
2127 | Number of Replicated tables that are currently in readonly state due to re-initialization after ZooKeeper session loss or due to startup without ZooKeeper configured.
2128 | 0
2129 | 0
2130 |
2131 |
2132 |
2133 |
2134 | {Clickhouse:ch_params[ReplicasMaxAbsoluteDelay].last(3m)} >= {$MAX_REPLICA_DELAY_DISTRIBUTED_QUERIES}
2135 | 0
2136 |
2137 | {HOST.HOST} have replication lag more {$MAX_REPLICA_DELAY_DISTRIBUTED_QUERIES} sec
2138 | 0
2139 |
2140 | https://clickhouse.tech/docs/en/operations/settings/settings/#settings-max_replica_delay_for_distributed_queries
2141 | 0
2142 | 4
2143 | When replica have too much lag, it can be skipped from Distributed SELECT Queries without errors and you will have wrong query results
2144 |
2145 | Check disks and networks on monitored ClickHouse servers
2146 | 0
2147 | 1
2148 |
2149 |
2150 |
2151 |
2152 | {Clickhouse:ch_params[HTTPConnection].last()} >= {$MAX_HTTP_CONNECTIONS}
2153 | 0
2154 |
2155 | {HOST.HOST} HTTP connections >= {$MAX_HTTP_CONNECTIONS}
2156 | 0
2157 |
2158 | https://clickhouse.tech/docs/en/operations/server_settings/settings/#max-concurrent-queries
2159 | 0
2160 | 2
2161 | The clickhouse is adapted to run not a very large number of parallel requests, not every HTTP connection means a running sql request, but a large number of open tcp connections can cause a spike in sudden sql requests, resulting in performance degradation.
2162 | 0
2163 | 0
2164 |
2165 |
2166 |
2167 |
2168 | {Clickhouse:ch_params[MaxPartCountForPartition].last()} >= {$MAX_PARTS_PER_PARTITION} * 0.9
2169 | 0
2170 |
2171 | {HOST.HOST} MergeTree parts 90% of {$MAX_PARTS_PER_PARTITION}, please decrease INSERT queries frequency
2172 | 0
2173 |
2174 |
2175 | 0
2176 | 4
2177 | Clickhouse MergeTree table engine split each INSERT query to partitions (PARTITION BY expression) and add one or more PARTS per INSERT inside each partition, after that background merge process run, and when you have too much unmerged parts inside partition, SELECT queries performance can significate degrade, so clickhouse try delay insert, or abort it
2178 | 0
2179 | 0
2180 |
2181 |
2182 |
2183 |
2184 | {Clickhouse:ch_params[MySQLConnection].last()} >= {$MAX_MYSQL_CONNECTIONS}
2185 | 0
2186 |
2187 | {HOST.HOST} MySQL connections >= {$MAX_MYSQL_CONNECTIONS}
2188 | 0
2189 |
2190 | https://clickhouse.tech/docs/en/operations/server_settings/settings/#max-concurrent-queries
2191 | 0
2192 | 2
2193 | The clickhouse is adapted to run not a very large number of parallel requests, not every MySQL connection means a running sql request, but a large number of open tcp connections can cause a spike in sudden sql requests, resulting in performance degradation.
2194 | 0
2195 | 0
2196 |
2197 |
2198 |
2199 |
2200 | {Clickhouse:ch_params[InsertQuery].last()}>0
2201 | and
2202 | ( {Clickhouse:ch_params[InsertedRows].last()} / {Clickhouse:ch_params[InsertQuery].last()} ) <= {$MIN_INSERTED_ROWS_PER_QUERY}
2203 | 0
2204 |
2205 | {HOST.HOST} please increase inserted rows per INSERT query
2206 | 0
2207 |
2208 | https://clickhouse.tech/docs/en/introduction/performance/#performance-when-inserting-data
2209 | 0
2210 | 4
2211 | Clickhouse team recommends inserting data in packets of at least 1000 rows or no more than a single request per second.
2212 |
2213 | Please use Buffer table
2214 | https://clickhouse.tech/docs/en/operations/table_engines/buffer/
2215 | or
2216 | https://github.com/nikepan/clickhouse-bulk
2217 | or
2218 | https://github.com/VKCOM/kittenhouse
2219 |
2220 | 0
2221 | 0
2222 |
2223 |
2224 |
2225 |
2226 | {Clickhouse:ch_params[Query].last(3m)} >= 0.9 * {$MAX_CONCURRENT_QUERIES}
2227 | 0
2228 |
2229 | {HOST.HOST} running queries 90% of {$MAX_CONCURRENT_QUERIES}
2230 | 0
2231 |
2232 | https://clickhouse.tech/docs/en/operations/server_settings/settings/#max-concurrent-queries
2233 | 0
2234 | 4
2235 | Each concurrent SELECT query use memory in JOINs use CPU for running aggregation function and can read lot of data from disk when scan parts in partitions and utilize disk IO.
2236 |
2237 | Each concurrent INSERT query, allocate around 1MB per each column in an inserted table and can utilize disk IO.
2238 |
2239 | Look at following documentation parts
2240 | https://clickhouse.tech/docs/en/operations/settings/query_complexity/
2241 | https://clickhouse.tech/docs/en/operations/quotas/
2242 | 0
2243 | 1
2244 |
2245 |
2246 |
2247 |
2248 | {Clickhouse:ch_params[TCPConnection].last()} >= {$MAX_TCP_CONNECTIONS}
2249 | 0
2250 |
2251 | {HOST.HOST} TCP connections >= {$MAX_TCP_CONNECTIONS}
2252 | 0
2253 |
2254 | https://clickhouse.tech/docs/en/operations/server_settings/settings/#max-connections
2255 | 0
2256 | 2
2257 | The clickhouse is adapted to run not a very large number of parallel requests, not every tcp connection means a running sql request, but a large number of open tcp connections can cause a spike in sudden sql requests, resulting in performance degradation.
2258 | 0
2259 | 0
2260 |
2261 |
2262 |
2263 |
2264 |
2265 |
2266 | Concurrent running queries
2267 | 600
2268 | 200
2269 | 0.0000
2270 | 100.0000
2271 | 0
2272 | 1
2273 | 0
2274 | 1
2275 | 0
2276 | 0.0000
2277 | 0.0000
2278 | 1
2279 | 0
2280 | 0
2281 | 0
2282 |
2283 |
2284 | 0
2285 | 0
2286 | DDDD00
2287 | 0
2288 | 4
2289 | 0
2290 | -
2291 | Clickhouse
2292 | ch_params[Write]
2293 |
2294 |
2295 |
2296 | 1
2297 | 0
2298 | 00BB00
2299 | 0
2300 | 4
2301 | 0
2302 | -
2303 | Clickhouse
2304 | ch_params[Read]
2305 |
2306 |
2307 |
2308 | 2
2309 | 0
2310 | BB0000
2311 | 0
2312 | 4
2313 | 0
2314 | -
2315 | Clickhouse
2316 | ch_params[Query]
2317 |
2318 |
2319 |
2320 | 3
2321 | 0
2322 | A54F10
2323 | 1
2324 | 2
2325 | 0
2326 | -
2327 | Clickhouse
2328 | ch_params[LongestRunningQuery]
2329 |
2330 |
2331 |
2332 |
2333 |
2334 | Connections
2335 | 600
2336 | 200
2337 | 0.0000
2338 | 100.0000
2339 | 1
2340 | 1
2341 | 0
2342 | 1
2343 | 0
2344 | 0.0000
2345 | 0.0000
2346 | 1
2347 | 0
2348 | 0
2349 | 0
2350 |
2351 |
2352 | 0
2353 | 0
2354 | 1A7C11
2355 | 0
2356 | 2
2357 | 0
2358 | -
2359 | Clickhouse
2360 | ch_params[TCPConnection]
2361 |
2362 |
2363 |
2364 | 1
2365 | 0
2366 | F63100
2367 | 0
2368 | 2
2369 | 0
2370 | -
2371 | Clickhouse
2372 | ch_params[HTTPConnection]
2373 |
2374 |
2375 |
2376 | 2
2377 | 0
2378 | CCCC00
2379 | 0
2380 | 2
2381 | 0
2382 | -
2383 | Clickhouse
2384 | ch_params[MySQLConnection]
2385 |
2386 |
2387 |
2388 | 3
2389 | 0
2390 | A54F10
2391 | 0
2392 | 2
2393 | 0
2394 | -
2395 | Clickhouse
2396 | ch_params[DistributedSend]
2397 |
2398 |
2399 |
2400 |
2401 |
2402 | Database size
2403 | 600
2404 | 200
2405 | 0.0000
2406 | 100.0000
2407 | 0
2408 | 1
2409 | 0
2410 | 1
2411 | 0
2412 | 0.0000
2413 | 0.0000
2414 | 1
2415 | 0
2416 | 0
2417 | 0
2418 |
2419 |
2420 | 0
2421 | 0
2422 | AA0000
2423 | 0
2424 | 2
2425 | 0
2426 | -
2427 | Clickhouse
2428 | ch_params[DiskUsage]
2429 |
2430 |
2431 |
2432 |
2433 |
2434 | Distributed
2435 | 900
2436 | 200
2437 | 0.0000
2438 | 100.0000
2439 | 1
2440 | 1
2441 | 0
2442 | 1
2443 | 0
2444 | 0.0000
2445 | 0.0000
2446 | 1
2447 | 0
2448 | 0
2449 | 0
2450 |
2451 |
2452 | 0
2453 | 0
2454 | CC0000
2455 | 0
2456 | 2
2457 | 0
2458 | -
2459 | Clickhouse
2460 | ch_params[DistributedConnectionFailAtAll]
2461 |
2462 |
2463 |
2464 | 1
2465 | 0
2466 | CCCC00
2467 | 0
2468 | 2
2469 | 0
2470 | -
2471 | Clickhouse
2472 | ch_params[DistributedConnectionFailTry]
2473 |
2474 |
2475 |
2476 | 2
2477 | 0
2478 | 00BB00
2479 | 1
2480 | 2
2481 | 0
2482 | -
2483 | Clickhouse
2484 | ch_params[DistributedFilesToInsert]
2485 |
2486 |
2487 |
2488 |
2489 |
2490 | Finished Queries
2491 | 600
2492 | 200
2493 | 0.0000
2494 | 100.0000
2495 | 0
2496 | 1
2497 | 1
2498 | 1
2499 | 0
2500 | 0.0000
2501 | 0.0000
2502 | 1
2503 | 0
2504 | 0
2505 | 0
2506 |
2507 |
2508 | 0
2509 | 0
2510 | 4CAF50
2511 | 0
2512 | 2
2513 | 0
2514 | -
2515 | Clickhouse
2516 | ch_params[SelectQuery]
2517 |
2518 |
2519 |
2520 | 1
2521 | 0
2522 | DDDD00
2523 | 0
2524 | 2
2525 | 0
2526 | -
2527 | Clickhouse
2528 | ch_params[InsertQuery]
2529 |
2530 |
2531 |
2532 |
2533 |
2534 | Insert / Merge rows/sec
2535 | 600
2536 | 200
2537 | 0.0000
2538 | 100.0000
2539 | 0
2540 | 1
2541 | 0
2542 | 1
2543 | 0
2544 | 0.0000
2545 | 0.0000
2546 | 1
2547 | 0
2548 | 0
2549 | 0
2550 |
2551 |
2552 | 0
2553 | 0
2554 | DDDD00
2555 | 0
2556 | 2
2557 | 0
2558 | -
2559 | Clickhouse
2560 | ch_params[InsertedRows]
2561 |
2562 |
2563 |
2564 | 1
2565 | 0
2566 | CC0000
2567 | 0
2568 | 2
2569 | 0
2570 | -
2571 | Clickhouse
2572 | ch_params[MergedRows]
2573 |
2574 |
2575 |
2576 |
2577 |
2578 | Memory Usage
2579 | 600
2580 | 200
2581 | 0.0000
2582 | 100.0000
2583 | 0
2584 | 1
2585 | 0
2586 | 1
2587 | 0
2588 | 0.0000
2589 | 0.0000
2590 | 1
2591 | 0
2592 | 0
2593 | 0
2594 |
2595 |
2596 | 0
2597 | 0
2598 | F63100
2599 | 0
2600 | 2
2601 | 0
2602 | -
2603 | Clickhouse
2604 | ch_params[MemoryTracking]
2605 |
2606 |
2607 |
2608 | 1
2609 | 0
2610 | FFFF33
2611 | 0
2612 | 2
2613 | 0
2614 | -
2615 | Clickhouse
2616 | ch_params[MemoryTrackingForMerges]
2617 |
2618 |
2619 |
2620 | 2
2621 | 0
2622 | AAAA00
2623 | 0
2624 | 2
2625 | 0
2626 | -
2627 | Clickhouse
2628 | ch_params[MemoryTrackingInBackgroundProcessingPool]
2629 |
2630 |
2631 |
2632 | 3
2633 | 0
2634 | 000099
2635 | 0
2636 | 2
2637 | 0
2638 | -
2639 | Clickhouse
2640 | ch_params[MemoryTrackingInBackgroundMoveProcessingPool]
2641 |
2642 |
2643 |
2644 | 4
2645 | 0
2646 | 00DDDD
2647 | 0
2648 | 2
2649 | 0
2650 | -
2651 | Clickhouse
2652 | ch_params[MemoryTrackingInBackgroundSchedulePool]
2653 |
2654 |
2655 |
2656 |
2657 |
2658 | Replication
2659 | 600
2660 | 200
2661 | 0.0000
2662 | 100.0000
2663 | 1
2664 | 1
2665 | 0
2666 | 1
2667 | 0
2668 | 0.0000
2669 | 0.0000
2670 | 1
2671 | 0
2672 | 0
2673 | 0
2674 |
2675 |
2676 | 0
2677 | 0
2678 | EE0000
2679 | 0
2680 | 2
2681 | 0
2682 | -
2683 | Clickhouse
2684 | ch_params[ReadonlyReplica]
2685 |
2686 |
2687 |
2688 | 1
2689 | 0
2690 | DDDD00
2691 | 0
2692 | 2
2693 | 0
2694 | -
2695 | Clickhouse
2696 | ch_params[ReplicaPartialShutdown]
2697 |
2698 |
2699 |
2700 | 2
2701 | 0
2702 | 2774A4
2703 | 1
2704 | 2
2705 | 0
2706 | -
2707 | Clickhouse
2708 | ch_params[ReplicasMaxAbsoluteDelay]
2709 |
2710 |
2711 |
2712 | 3
2713 | 0
2714 | A54F10
2715 | 0
2716 | 2
2717 | 0
2718 | -
2719 | Clickhouse
2720 | ch_params[ReplicasSumQueueSize]
2721 |
2722 |
2723 |
2724 |
2725 |
2726 | Write / Merge bytes/sec
2727 | 600
2728 | 200
2729 | 0.0000
2730 | 100.0000
2731 | 0
2732 | 1
2733 | 0
2734 | 1
2735 | 0
2736 | 0.0000
2737 | 0.0000
2738 | 1
2739 | 0
2740 | 0
2741 | 0
2742 |
2743 |
2744 | 0
2745 | 0
2746 | CCCC00
2747 | 0
2748 | 2
2749 | 0
2750 | -
2751 | Clickhouse
2752 | ch_params[InsertedBytes]
2753 |
2754 |
2755 |
2756 | 1
2757 | 0
2758 | BB0000
2759 | 0
2760 | 2
2761 | 0
2762 | -
2763 | Clickhouse
2764 | ch_params[MergedUncompressedBytes]
2765 |
2766 |
2767 |
2768 |
2769 |
2770 | Zookeeper
2771 | 600
2772 | 200
2773 | 0.0000
2774 | 100.0000
2775 | 0
2776 | 1
2777 | 0
2778 | 1
2779 | 0
2780 | 0.0000
2781 | 0.0000
2782 | 1
2783 | 0
2784 | 0
2785 | 0
2786 |
2787 |
2788 | 0
2789 | 0
2790 | FF3333
2791 | 0
2792 | 2
2793 | 0
2794 | -
2795 | Clickhouse
2796 | ch_params[ZooKeeperHardwareExceptions]
2797 |
2798 |
2799 |
2800 | 1
2801 | 0
2802 | 2774A4
2803 | 1
2804 | 2
2805 | 0
2806 | -
2807 | Clickhouse
2808 | ch_params[ZooKeeperWatch]
2809 |
2810 |
2811 |
2812 | 2
2813 | 0
2814 | CC0000
2815 | 0
2816 | 2
2817 | 0
2818 | -
2819 | Clickhouse
2820 | ch_params[ZooKeeperOtherExceptions]
2821 |
2822 |
2823 |
2824 | 3
2825 | 0
2826 | CC0000
2827 | 0
2828 | 2
2829 | 0
2830 | -
2831 | Clickhouse
2832 | ch_params[ZooKeeperUserExceptions]
2833 |
2834 |
2835 |
2836 |
2837 |
2838 |
2839 |
--------------------------------------------------------------------------------