ks888 / LambStatus

[Maintenance mode] Serverless Status Page System
https://lambstatus.github.io
Apache License 2.0
1.3k stars 119 forks source link

LambStatus API to post the metric data #44

Closed ks888 closed 6 years ago

ks888 commented 7 years ago

From @ccannell's comment on gitter:

Christopher Cannell @ccannell 05:33 I've deployed LambStatus and now I'm a bit lost on the next step. I'd like to check an HTTP server status regularly. What is the best way to approach that? Is there documentation on the LambStatus API? Should I run a periodic lambda to poll my HTTP server and then post to LambStatus API on changes?

Kishin Yagami @ks888 10:42 Thank you for asking. Since LambStatus has few features for monitoring the service, such as alarm, it's better to post your server's status to your monitoring service at first. Then, integrate the monitoring service with LambStatus. If your monitoring service is CloudWatch, the integration is easy. If not, it is harder because there is no LambStatus API to post the data. LambStatus API to post the data sounds nice. Maybe it's better to support it.

ccannell commented 7 years ago

This could be useful for a couple of reasons.

  1. If you have a Lambda monitoring some resource, you could POST the data directly without outputing to CloudWatch, setting up a metric filter, and then setting up LambStatus to look for the metric.

  2. Save cost. CloudWatch metric filters and logs all cost money.

ks888 commented 7 years ago

Currently working on this issue.

TODO:

ks888 commented 6 years ago

Now API to post the metric data is supported. Will be available after v0.4.0. Docs: https://github.com/ks888/LambStatus/wiki/LambStatus-API-v0