Chronografを使用してsystemdサービスをリアルタイムで監視

すでに今日、OTUSのコース「監視とロギング:Zabbix、Prometheus、ELK」の新しいグループでクラス開始されています。中は来週、誰もがする機会がありますでコースに参加特別価格さて、今、私たちはこのトピックに関する有用な資料の伝統的な翻訳を共有しています


すべてのシステム管理者はsystemdに精通しています。Lennart Poetteringとfreedesktop.orgによって開発されたsystemdは、Linuxサービスを管理するための非常に便利なツールです。最新のソフトウェアのほとんどは、systemdサービスの形式で提供されます。

, - ? , - . 

systemd . , , Slack!

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

"ActiveState" "deactivating"? InfluxDB. , !

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

, systemd , .

3.

systemd :

究極のシステム監視アーキテクチャ
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. .

:

  • Kubernetes Prometheus Thanos

  • Alerta.io




All Articles