title: Ð ÐµÐ°Ð»Ð¸Ð·Ð°ÑÐ¸Ñ Ð¼ÐµÑ Ð°Ð½Ð¸Ð·Ð¼Ð° Ð»Ð¾Ð³Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð´Ð»Ñ ÑÑÑÑÐ¾Ð¹ÑÑÐ² âÐ¸Ð½ÑÐµÑÐ½ÐµÑÐ° Ð²ÐµÑÐµÐ¹â Ð² ÐºÐ¾Ð½ÑÐµÐ¹Ð½ÐµÑÐ¸Ð·Ð¸ÑÐ¾Ð²Ð°Ð½Ð½Ð¾Ð¼ Ð¾ÐºÑÑÐ¶ÐµÐ½Ð¸Ð¸ Ð½Ð° Ð±Ð°Ð·Ðµ Kubernetes
title: Ð²ÑÐ¿ÑÑÐºÐ½Ð°Ñ ÐºÐ²Ð°Ð»Ð¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¾Ð½Ð½Ð°Ñ ÑÐ°Ð±Ð¾ÑÐ° Ð±Ð°ÐºÐ°Ð»Ð°Ð²ÑÐ°
titleType: Subtitle
title: Implementation of a logging mechanism for IoT devices in a containerized environment based on Kubernetes
Creators: name: ÐÑÐ¾ÑÐ¸Ð½, Ð¯ÑÐ¾ÑÐ»Ð°Ð²
Publisher: name: Ð¡Ð°Ð½ÐºÑ-ÐÐµÑÐµÑÐ±ÑÑÐ³ÑÐºÐ¸Ð¹ Ð¿Ð¾Ð»Ð¸ÑÐµÑÐ½Ð¸ÑÐµÑÐºÐ¸Ð¹ ÑÐ½Ð¸Ð²ÐµÑÑÐ¸ÑÐµÑ ÐÐµÑÑÐ° ÐÐµÐ»Ð¸ÐºÐ¾Ð³Ð¾
Year: 2021
Subjects: Ð¸Ð½ÑÐµÑÐ½ÐµÑ Ð²ÐµÑÐµÐ¹
Ð»Ð¾Ð³Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ðµ
kubernetes
Ð½Ð°ÑÐ¸Ð²Ð½ÑÐµ Ð¾Ð±Ð»Ð°ÑÐ½ÑÐµ ÑÐµÑ Ð½Ð¾Ð»Ð¾Ð³Ð¸Ð¸
elasticsearch
timescaledb
influxdb
fluentd
fluent bit
logstash
telegraf
grafana
chronograf
kibana
vernemq
devops
ÐÐÐ¥
iot
logging
cloud native
housing and communal services

description: Ð ÑÐ¾Ð²ÑÐµÐ¼ÐµÐ½Ð½Ð¾Ð¼ Ð¼Ð¸ÑÐµ ÑÑÑÐµÐ¼Ð¸ÑÐµÐ»ÑÐ½ÑÐ¼Ð¸ ÑÐ°Ð³Ð°Ð¼Ð¸ Ð½Ð°Ð±Ð¸ÑÐ°ÑÑ Ð¿Ð¾Ð¿ÑÐ»ÑÑÐ½Ð¾ÑÑÑ ÑÑÑÑÐ¾Ð¹ÑÑÐ²Ð° âÐ¸Ð½ÑÐµÑÐ½ÐµÑÐ° Ð²ÐµÑÐµÐ¹â, ÐºÐ¾ÑÐ¾ÑÑÐµ ÑÐ¿Ð¾ÑÐ¾Ð±Ð½Ñ Ð²ÑÐ¿Ð¾Ð»Ð½ÑÑÑ Ð´ÐµÐ¹ÑÑÐ²Ð¸Ñ Ð¸ ÑÐµÑÐ°ÑÑ Ð¾Ð¿ÑÐµÐ´ÐµÐ»ÐµÐ½Ð½ÑÐµ Ð¿Ð¾Ð²ÑÐµÐ´Ð½ÐµÐ²Ð½ÑÐµ Ð·Ð°Ð´Ð°ÑÐ¸ Ð±ÐµÐ· ÑÑÐ°ÑÑÐ¸Ñ ÑÐµÐ»Ð¾Ð²ÐµÐºÐ°. ÐÐ¾, ÐºÐ°Ðº Ð¸ Ð»ÑÐ±Ð¾Ð¹ ÑÐµÑÐ½Ð¸ÐºÐµ, ÑÑÑÑÐ¾Ð¹ÑÑÐ²Ð°Ð¼ âÐ¸Ð½ÑÐµÑÐ½ÐµÑÐ° Ð²ÐµÑÐµÐ¹â ÑÐ²Ð¾Ð¹ÑÑÐ²ÐµÐ½Ð½Ð¾ Ð²ÑÑÐ¾Ð´Ð¸ÑÑ Ð¸Ð· ÑÑÑÐ¾Ñ Ð²ÑÐ»ÐµÐ´ÑÑÐ²Ð¸Ðµ Ð¼Ð½Ð¾Ð¶ÐµÑÑÐ²Ð° ÑÐ°Ð·Ð»Ð¸ÑÐ½ÑÑ ÑÐ°ÐºÑÐ¾ÑÐ¾Ð². ÐÐ°Ð½Ð½Ð°Ñ ÑÐ°Ð±Ð¾ÑÐ° Ð¿Ð¾ÑÐ²ÑÑÐµÐ½Ð° ÑÐµÐ°Ð»Ð¸Ð·Ð°ÑÐ¸Ð¸ Ð¼ÐµÑÐ°Ð½Ð¸Ð·Ð¼Ð° Ð»Ð¾Ð³Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð´Ð»Ñ ÑÑÑÑÐ¾Ð¹ÑÑÐ² âÐ¸Ð½ÑÐµÑÐ½ÐµÑÐ° Ð²ÐµÑÐµÐ¹â Ð² Ð¼Ð½Ð¾Ð³Ð¾ÐºÐ²Ð°ÑÑÐ¸ÑÐ½Ð¾Ð¼ Ð´Ð¾Ð¼Ðµ. ÐÐ»Ð°Ð³Ð¾Ð´Ð°ÑÑ Ð²ÐµÐ´ÐµÐ½Ð¸Ñ ÐµÐ´Ð¸Ð½Ð¾Ð³Ð¾ Ð¶ÑÑÐ½Ð°Ð»Ð° ÑÐ¾Ð±ÑÑÐ¸Ð¹ Ð´Ð»Ñ Ð²ÑÐµÑ ÑÐºÐ·ÐµÐ¼Ð¿Ð»ÑÑÐ¾Ð² ÑÑÑÑÐ¾Ð¹ÑÑÐ² Ð² Ð´Ð¾Ð¼Ðµ, ÑÐ°Ð·ÑÐ°Ð±Ð¾ÑÐ°Ð½Ð½ÑÐ¹ Ð¿ÑÐ¾ÐµÐºÑ ÑÐ¿Ð¾ÑÐ¾Ð±ÐµÐ½ Ð¿Ð¾Ð²ÑÑÐ¸ÑÑ ÐºÐ°ÑÐµÑÑÐ²Ð¾ ÑÐµÐ¼Ð¾Ð½ÑÐ° ÑÑÑÑÐ¾Ð¹ÑÑÐ² Ð¸ ÑÐ½Ð¸Ð·Ð¸ÑÑ Ð²ÑÐµÐ¼Ñ, Ð½ÐµÐ¾Ð±ÑÐ¾Ð´Ð¸Ð¼Ð¾Ðµ Ð½Ð° Ð¸Ñ Ð¿Ð¾ÑÐ¸Ð½ÐºÑ. ÐÐ»Ñ ÑÐµÐ°Ð»Ð¸Ð·Ð°ÑÐ¸Ð¸ Ð¿ÑÐ¾ÐµÐºÑÐ° Ð¸ÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð»Ð¸ÑÑ ÑÐ»ÐµÐ´ÑÑÑÐ¸Ðµ Ð¿ÑÐ¾Ð´ÑÐºÑÑ Ð¸ Ð¸Ð½ÑÑÑÑÐ¼ÐµÐ½ÑÑ ÑÐ°Ð·ÑÐ°Ð±Ð¾ÑÐºÐ¸: Python Ð´Ð»Ñ Ð½Ð°Ð¿Ð¸ÑÐ°Ð½Ð¸Ñ Ð»Ð¾Ð³Ð¸ÐºÐ¸ ÑÑÑÑÐ¾Ð¹ÑÑÐ² âÐ¸Ð½ÑÐµÑÐ½ÐµÑÐ° Ð²ÐµÑÐµÐ¹â, Fluent Bit Ð´Ð»Ñ ÑÐ±Ð¾ÑÐ° Ð´Ð°Ð½Ð½ÑÐ¹ Ñ ÑÑÑÑÐ¾Ð¹ÑÑÐ², Fluentd Ð´Ð»Ñ Ð°Ð³ÑÐµÐ³Ð°ÑÐ¸Ð¸ Ð»Ð¾Ð³Ð¾Ð² Ð¸ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ ÑÐ¾ÑÐºÐ¸ Ð¾ÑÐºÐ°Ð·Ð¾ÑÑÑÐ¾Ð¹ÑÐ¸Ð²Ð¾ÑÑÐ¸, InfluxDB Ð´Ð»Ñ Ð´Ð¾Ð»Ð³Ð¾Ð²ÑÐµÐ¼ÐµÐ½Ð½Ð¾Ð³Ð¾ ÑÑÐ°Ð½ÐµÐ½Ð¸Ñ Ð´Ð°Ð½Ð½ÑÑ, Grafana Ð´Ð»Ñ Ð²Ð¸Ð·ÑÐ°Ð»Ð¸Ð·Ð°ÑÐ¸Ð¸ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð½ÑÑ Ð»Ð¾Ð³Ð¾Ð² Ð² Ð²ÐµÐ±-Ð¸Ð½ÑÐµÑÑÐµÐ¹ÑÐµ Ð¸ Kubernetes Ð´Ð»Ñ Ð¿Ð¾Ð²ÑÑÐµÐ½Ð¸Ñ Ð¾ÑÐºÐ°Ð·Ð¾ÑÑÑÐ¾Ð¹ÑÐ¸Ð²Ð¾ÑÑÐ¸ Ð¸ Ð³Ð¸Ð±ÐºÐ¾ÑÑÐ¸ Ð¿ÑÐ¾ÐµÐºÑÐ°. Ð ÑÐµÐ·ÑÐ»ÑÑÐ°ÑÐµ Ð´Ð¸Ð¿Ð»Ð¾Ð¼Ð½Ð¾Ð³Ð¾ Ð¿ÑÐ¾ÐµÐºÑÐ° Ð±ÑÐ» ÑÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½ Ð¼ÐµÑÐ°Ð½Ð¸Ð·Ð¼ Ð»Ð¾Ð³Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð´Ð»Ñ ÑÑÑÑÐ¾Ð¹ÑÑÐ² âÐ¸Ð½ÑÐµÑÐ½ÐµÑÐ° Ð²ÐµÑÐµÐ¹â Ð² Ð¼Ð½Ð¾Ð³Ð¾ÐºÐ²Ð°ÑÑÐ¸ÑÐ½Ð¾Ð¼ Ð´Ð¾Ð¼Ðµ. Ð¢Ð°ÐºÐ¶Ðµ Ð±ÑÐ»Ð¸ ÑÐ°ÑÑÐ¼Ð¾ÑÑÐµÐ½Ñ ÑÑÑÐµÑÑÐ²ÑÑÑÐ¸Ðµ Ð°Ð»ÑÑÐµÑÐ½Ð°ÑÐ¸Ð²Ñ Ð¿ÑÐ¾Ð´ÑÐºÑÐ¾Ð², ÐºÐ¾ÑÐ¾ÑÑÐµ Ð¿Ð¾ÑÐµÐ½ÑÐ¸Ð°Ð»ÑÐ½Ð¾ Ð¼Ð¾Ð³ÑÑ Ð·Ð°Ð¼ÐµÐ½Ð¸ÑÑ Ð½ÐµÐºÐ¾ÑÐ¾ÑÑÐµ ÐºÐ¾Ð¼Ð¿Ð¾Ð½ÐµÐ½ÑÑ Ð¿Ð¾Ð¿ÑÐ»ÑÑÐ½ÑÑ ÑÑÐµÐºÐ¾Ð² Ð´Ð»Ñ Ð»Ð¾Ð³Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ.
description: In the modern world, devices of the "Internet of Things" are rapidly gaining popularity. These devices can perform actions and solving certain daily tasks without human intervention. But, like any technology, devices of the "Internet of Things" tend to fail due to many different factors. This work is devoted to the implementation of a logging mechanism for devices of the "Internet of things" in an apartment building. By maintaining a single event log for all devices in the building, the developed project can improve the quality of device repair and reduce the time required to repair them. To implement the project, the following products and development tools were used: Python for writing the logic of IoT devices, Fluent Bit for collecting data from devices, Fluentd for aggregating logs and creating a fault tolerance point, InfluxDB for long-term data storage, Grafana for visualizing received logs on the web -interface and Kubernetes to increase the fault tolerance and flexibility of the project. As a result of the graduation project, a logging mechanism was implemented for devices of the "Internet of Things" in an apartment building. We also considered existing product alternatives that could potentially replace some of the components of popular logging stacks.