This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
giganet:sflow [2021/08/02 14:36] rb [Задействованные приложения] |
giganet:sflow [2021/08/03 13:28] (current) rb |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Схема мониторинга sflow статистики ====== | ||
- | |||
- | ===== Задействованные сервера ===== | ||
- | |||
- | * **goflow **- сервер на котором крутится kafka и goflow2 приложение по сбору статистики | ||
- | * **clickhouse **- сервер с базой данных clickhouse, хранение и обработка статистики | ||
- | ===== Задействованные приложения ===== | ||
- | |||
- | * **goflow2** | ||
- | * **kafka** | ||
- | * [[: | ||
- | |||
- | |||
===== Общая схема мониторинга ===== | ===== Общая схема мониторинга ===== | ||
Line 38: | Line 25: | ||
</ | </ | ||
- | |||
==== goflow2 ==== | ==== goflow2 ==== | ||
Line 74: | Line 60: | ||
< | < | ||
- | |||
[Unit] | [Unit] | ||
Requires=network.target remote-fs.target | Requires=network.target remote-fs.target | ||
Line 94: | Line 79: | ||
< | < | ||
- | |||
[Unit] | [Unit] | ||
Requires=zookeeper.service | Requires=zookeeper.service | ||
Line 129: | Line 113: | ||
</ | </ | ||
- | |||
==== clickhouse ==== | ==== clickhouse ==== | ||
Line 137: | Line 120: | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||
- | https:// | + | [[https:// |
- | https:// | + | [[https:// |
=== таблица kafka === | === таблица kafka === | ||
Line 304: | Line 287: | ||
PARTITION BY toYYYYMMDD(Date) | PARTITION BY toYYYYMMDD(Date) | ||
ORDER BY Datetime | ORDER BY Datetime | ||
- | TTL Date + toIntervalDay(7) | + | TTL Date |
SETTINGS index_granularity = 8192 | SETTINGS index_granularity = 8192 | ||