今天,课程已经从OTUS的“监视和记录:Zabbix,Prometheus,ELK”课程的新组开始。在下周,每个人都有机会以特价参加课程。好吧,现在,我们正在共享有关该主题的有用材料的传统翻译。
所有系统管理员都熟悉systemd。systemd由Lennart Poettering和freedesktop.org开发,是用于管理Linux服务的非常方便的工具。大多数现代软件都以系统服务的形式出现。
, - ? , - .
systemd . , , Slack!
1. D-Bus
, , D-Bus ( D-Bus, 2).
D-Bus — , , .
, D-Bus, , . D-Bus, . D-Bus .
, , .
D-Bus , Linux-.
, UPower ( ) thermald ( ), ( ).
D-Bus systemd? Systemd D-Bus org.freedesktop.systemd1. , , systemd- . .
2. D-Bus
Xubuntu 18.04 . dbus-daemon
busctl
.
:
ps aux | grep dbus-daemon
: .
busctl status
.
D-Bus
, systemd , -, systemd.
, systemd . systemd , .
sudo busctl monitor org.freedesktop.systemd1> systemd.output
, , .
"ActiveState" "deactivating"? InfluxDB. , !
org.freedesktop.systemd : active (), reloading (), inactive (), failed (), activating (), deactivating (). , failed-, .
, systemd , .
3.
systemd :
. — , dbus-daemon.
D-Bus ( Go!), systemd. InfluxDB.
InfluxDB Chronograf, .
, Kapacitor ( ) Slack .
! ?
D-Bus Go
, systemd, , :
systemd
InfluxDB
: , Go D-Bus. dbus InfluxDB Go, .
, , , . Github.
systemd InfluxDB . , , . .
InfluxDB () ( ), — (failed, active, activating …).
. IQL , .
: , systemd, "ActiveState", .
, Go, , Chronograf.
4.
InfluxDB, . Chronograf , .
:
, .
, .
12 , 12 systemd, .
,
:
:
, . .
, , systemd- . !
, Slack?
5.
Kapacitor ( ), .
Kapacitor, Chronograf .
"Manage Tasks" : (alert rules) (tick scripts). , "Build Alert Rule".
:
- Slack', (.. ). Slack :
6.
, . D-Bus Golang, , ( ) — .
, .
, , , . , SignalFX Telegraf. .