# Datadog Metric Output Plugin

**URL:** <https://discuss.elastic.co/t/datadog-metric-output-plugin/120181>\
**Category:** Logstash\
**Created:** [February 16, 2018, 1:38pm UTC](https://discuss.elastic.co/t/datadog-metric-output-plugin/120181 "2018-02-16T13:38:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtorre](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@vtorre](https://discuss.elastic.co/u/vtorre)\
**Post date:** [February 16, 2018, 1:38pm UTC](https://discuss.elastic.co/t/datadog-metric-output-plugin/120181/1 "2018-02-16T13:38:42Z")

</div>

Hi, I'm trying to parse log files with losgash and create metrics in Datadog.

I want to create "counter" or "count" Datadog metric types increasing by one for each log line parsed.

```auto
output {
  datadog_metrics {
    api_key => "xxxx"
    metric_name => "request"
    metric_type => counter
    metric_value => 1
  }
}

```

I realized Datadog API doens't support "counter" metric type but Datadog Metric output plugin seems to allow it.

 ![39](https://us1.discourse-cdn.com/elastic/original/3X/2/f/2fae0cb3552d08d9621d38fec9069117f0a54ac9.png)

> **[Metrics](https://docs.datadoghq.com/developers/metrics/)**
>
> Datadog, the leading service for cloud-scale monitoring.

So Datadog are understanding that value is gauge instead of counter but Logstash Datadog Metric plugin allow send "gauges" via API [1]

Does anyone know if I have some errors? Do you know how to send "counter" metric to Datadog? Is there other way to make this pipeline better?

[1] [https://docs.datadoghq.com/developers/metrics/](https://docs.datadoghq.com/developers/metrics/)

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 16, 2018, 1:39pm UTC](https://discuss.elastic.co/t/datadog-metric-output-plugin/120181/2 "2018-03-16T13:39:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
