green-watch
v1.1.1
Published
A cloudwatch agent for AWS Greengrass.
Downloads
7
Maintainers
Readme
green-watch
A cloudwatch agent at the edge for AWS Greengrass.
Current version: 1.1.1
Lead Maintainer: Halim Qarroum
Table of contents
Install
green add npm://green-watch
Features
- Synchronization of metrics between the edge with AWS Cloudwatch on the cloud.
- Works offline, and syncs the metrics to Cloudwatch when Internet connectivity is available.
- Natively accepts the same payload data as AWS Cloudwatch at the edge.
Description
The local Cloudwatch agent for AWS Greengrass is built to receive metrics from third party applications over Expressify in the Cloudwatch native format. Upon reception of these metrics, they will be synced with AWS Cloudwatch on the cloud.
If no Internet connectivity is available, green-watch
will buffer the data in memory until the Internet connectvity is available again.
API
This application exposes an Expressify API which is accessible from any green application locally, but also from the AWS IoT Core service from the cloud remotely. The available API endpoints are documented and described below.
Method | Resource | Return code(s) | Payload required | Description
-------------- | --------------------- | ----------------- | ----------------- | ------------
POST | /metrics
| 200
| Yes | The green-watch
application is able to sync the given metrics with AWS Cloudwatch upon their reception on this route.
GET | /metrics
| 200
| No | This route returns the last buffered metrics currently in memory.
See also
- The green-cli command-line deployment tool.
- The green-sys application for AWS Greengrass.
- The green-connectivity agent.