Open xiongbenben opened 5 years ago
what version of elasticsearch are you using? IIRC, we only support v2
that is v2,version is V0.27.4
sadly i'm not very familiar with elasticsearch. It looks like it is failing to connect to the host you provided. cAdvisor is just a very simple wrapper around the elastic client library.
+1
./cadvisor -storage_driver=elasticsearch -storage_driver_es_host="http://192.168.63.229:9200" -storage_driver_es_type="stats" -storage_driver_es_index="containers"
Failed to initialize storage driver: failed to create the elasticsearch client - no Elasticsearch node available goroutine 1 [running]: github.com/google/cadvisor/vendor/github.com/golang/glog.stacks(0xc42007df00, 0xc4204801e0, 0xa0, 0xf0) /usr/local/google/home/dashpole/go/src/github.com/google/cadvisor/vendor/github.com/golang/glog/glog.go:769 +0xcf github.com/google/cadvisor/vendor/github.com/golang/glog.(loggingT).output(0x144b1c0, 0xc400000003, 0xc42015e210, 0x116667a, 0xb, 0x7a, 0x0) /usr/local/google/home/dashpole/go/src/github.com/google/cadvisor/vendor/github.com/golang/glog/glog.go:720 +0x345 github.com/google/cadvisor/vendor/github.com/golang/glog.(loggingT).printf(0x144b1c0, 0xc400000003, 0xd437ff, 0x27, 0xc4202c3ea0, 0x1, 0x1) /usr/local/google/home/dashpole/go/src/github.com/google/cadvisor/vendor/github.com/golang/glog/glog.go:655 +0x14c github.com/google/cadvisor/vendor/github.com/golang/glog.Fatalf(0xd437ff, 0x27, 0xc4202c3ea0, 0x1, 0x1) /usr/local/google/home/dashpole/go/src/github.com/google/cadvisor/vendor/github.com/golang/glog/glog.go:1148 +0x67 main.main() /usr/local/google/home/dashpole/go/src/github.com/google/cadvisor/cadvisor.go:122 +0xf1