/opt/sensu/embedded/bin/ruby ./metrics-docker-stats.rb -H /var/run/docker.sock -p unix
However, when I add "-n" option, it fails with following message.
...
soichi7.ppa.iu.edu.docker.portal-apache1.memory_stats.stats.total_unevictable 0 1449347656
soichi7.ppa.iu.edu.docker.portal-apache1.memory_stats.stats.unevictable 0 1449347656
soichi7.ppa.iu.edu.docker.portal-apache1.memory_stats.failcnt 0 1449347656
soichi7.ppa.iu.edu.docker.portal-apache1.memory_stats.limit 12431413248 1449347656
Check failed to run: 757: unexpected token at 'no such id: portal-apache1mysql
', ["/opt/sensu/embedded/lib/ruby/2.0.0/json/common.rb:155:in `parse'", "/opt/sensu/embedded/lib/ruby/2.0.0/json/common.rb:155:in `parse'", "./metrics-docker-stats.rb:113:in `block (3 levels) in docker_api'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/protocol.rb:411:in `call_block'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/protocol.rb:402:in `<<'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/protocol.rb:106:in `read'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http/response.rb:284:in `block in read_body_0'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http/response.rb:269:in `inflater'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http/response.rb:274:in `read_body_0'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http/response.rb:201:in `read_body'", "./metrics-docker-stats.rb:112:in `block (2 levels) in docker_api'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:1419:in `block (2 levels) in transport_request'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http/response.rb:162:in `reading_body'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:1418:in `block in transport_request'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:1409:in `catch'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:1409:in `transport_request'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:1382:in `request'", "./metrics-docker-stats.rb:111:in `block in docker_api'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:852:in `start'", "/opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:582:in `start'", "./metrics-docker-stats.rb:109:in `docker_api'", "./metrics-docker-stats.rb:158:in `container_stats'", "./metrics-docker-stats.rb:91:in `block in run'", "./metrics-docker-stats.rb:90:in `each'", "./metrics-docker-stats.rb:90:in `run'", "/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-plugin-1.2.0/lib/sensu-plugin/cli.rb:56:in `block in <class:CLI>'"]