タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

pythonとdstatに関するmapk0yのブックマーク (1)

  • Dstatのプラグインの書き方 - Qiita

    Dstatはメジャーなツールですが、プラグインの書き方についてはあまりドキュメントがなかったので、ここに書いてみようと思います。 Hello, World! dstat_hello_world.pyを作って、(CentOSの場合)/usr/share/dstat/にコピーします class dstat_plugin(dstat): def __init__(self): self.name = 'hello_world' self.type = 'f' self.width = 5 self.scale = 1000 self.vars = ('hello', 'world') #def check(self): # # Check anything def extract(self): self.val['hello'] = 1 self.val['world'] = 10000

    Dstatのプラグインの書き方 - Qiita
  • 1