Can we access Librato dashboard from AWS lambda

50 views Asked by At

I am currently logging something into Librato metrics in my c# code as below:

// need to install librato4net nuget package
MetricsPublisher.Current.Increment("metricsName"); 

Now, I want to create a lambda function on Amazon Web service which will periodically do the same thing. But I am not able to figure out how to reference librato in the lambda function. Is it even possible?

1

There are 1 answers

1
Nik On

Just to clarify, I assume you mean "post metrics from Lambda" and not "access dashboard from Lambda" correct?

Librato at it's core is designed for custom metrics. As long as you have access to the Interwebs you can POST values to our RESTful API. So there's always the option of hitting the API with a simple HTTP POST if you can deal with the additional overhead (direct synchronous call to API using a language binding or REST client) or if you want to make an async call you could call another Lambda that logs the metric and then takes care of POSTing to Librato.