Überwachung von Systemdiensten in Echtzeit mit Chronograf

Der Unterricht beginnt bereits heute in der neuen Gruppe des Kurses "Monitoring and Logging: Zabbix, Prometheus, ELK" von OTUS . Während der nächsten Woche , hat jeder die Möglichkeit, den Kurs zu einem verbinden Sonderpreis . Nun, im Moment teilen wir die traditionelle Übersetzung von nützlichem Material zu diesem Thema .


Alle Systemadministratoren sind mit systemd vertraut. Systemd wurde von Lennart Poettering und freedesktop.org entwickelt und ist ein sehr praktisches Tool zur Verwaltung von Linux-Diensten. Die meiste moderne Software wird in Form von Systemdiensten bereitgestellt.

, - ? , - . 

systemd . , , Slack!

Dashboard für systemd
systemd

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 

, , .

Systemd Bussignale
systemd

"ActiveState" "deactivating"? InfluxDB. , !

org.freedesktop.systemd : active (), reloading (), inactive (), failed (), activating (), deactivating (). , failed-, . 

, systemd , .

3.

systemd :

Die ultimative Systemd-Überwachungsarchitektur
systemd

. — , dbus-daemon.

D-Bus ( Go!), systemd.   InfluxDB.

InfluxDB Chronograf, .

, Kapacitor ( ) Slack .

! ?

D-Bus Go

, systemd, , :

  1. systemd

  2. InfluxDB

: , Go D-Bus. dbus InfluxDB Go, .

, , , . Github

systemd InfluxDB . , , . .

InfluxDB () ( ), — (failed, active, activating …).

. IQL , . 

: , systemd, "ActiveState", .

, Go, , Chronograf.

4.

InfluxDB, . Chronograf , . 

:

  1. , .

  2. , .

  3. 12 , 12 systemd, .

: , Chronograf, InfluxDB.

,

:

:

 

, . .

, , systemd- . !

, Slack?

5.

Kapacitor ( ), .

Kapacitor, Chronograf .

"Manage Tasks" : (alert rules) (tick scripts). , "Build Alert Rule".

:

- Slack', (.. ). Slack :

6.

, . D-Bus   Golang, , ( ) — .

, .

, , , . , SignalFX Telegraf. .

:




All Articles