add collectd api

add collectd's json http api
remove metricdata
set default ttl

keep 4 hour data default