Logstash to datadog_metrics - example needed

datadog_metrics {
api_key => "xx"
metric_name => "unresolved_counts"
metric_value=> "50"
}

i would like to get some examples to how we can send kvp info to datadog.. is api_key is enough??