Merge branch 'master' of github.com:didi/nightingale
This commit is contained in:
commit
71f9aa0618
|
@ -41,4 +41,6 @@ def main():
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.stdout.flush()
|
||||
main()
|
||||
sys.stdout.flush()
|
||||
|
|
|
@ -99,10 +99,12 @@ func PluginRun(plugin *Plugin) {
|
|||
// exec successfully
|
||||
data := stdout.Bytes()
|
||||
if len(data) == 0 {
|
||||
logger.Debug("stdout of", fpath, "is blank")
|
||||
logger.Debug("stdout of ", fpath, " is blank")
|
||||
return
|
||||
}
|
||||
|
||||
logger.Debug(fpath, " stdout: ", string(data))
|
||||
|
||||
var items []*dataobj.MetricValue
|
||||
err = json.Unmarshal(data, &items)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue