sonyxperiadev / lumber-mill

Where logs are cut into lumber
Apache License 2.0
12 stars 6 forks source link

Integrate with datadog API #16

Closed jrask closed 8 years ago

jrask commented 8 years ago

When running as AWS Lambda, there is no running statsd or datadog agent, but we would like to be notified about how things are going.

By implementing datadogs http api this could be really simple. Not-really-thought-through-preudo-code

.doOnNext (
     datadog.increment (
         api_key: 'key',
         metric: 'lumbermill.success'    
    )
)
.doOnError (
     datadog.increment (
         api_key: 'key',
         metric: 'lumbermill.error'    
    )
)

We could also handle specific values from contents

.doOnNext (
     datadog.increment (
         api_key: 'key',
         metric: 'api.statuscode.{backend_status_code}'    
    )
)
jrask commented 8 years ago

Will add this again when suitable.