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
{{#tags}}- {{label}}
{{/tags}}