replace tsdb with datadog API