View a markdown version of this page

Build your own - AWS Context

Build your own

You can build a dashboard today by reading the statistics that AWS Context reports, publishing them as CloudWatch custom metrics, and charting those metrics. This approach does not depend on a native metric surface.

  1. Read the statistics. AWS Context reports ingestion statistics (pending and failed event counts and the backfill status of each connection mapped to an Agent Context) and Agent Context statistics (node, edge, and open curation-proposal counts). Read them on a schedule — for example, from a scheduled AWS Lambda function.

  2. Publish them as custom metrics. Put the values to CloudWatch as custom metrics with the PutMetricData operation, using a dimension that identifies the Agent Context (and, for ingestion, the connection mapping).

  3. Chart and alarm. Add the custom metrics to a CloudWatch dashboard, grouping them by ingestion, build, and retrieval, and set alarms on them.

For the statistics themselves and where they fit in the build and curation workflow, see Building context and Curating context. For creating and sharing dashboards, see Using Amazon CloudWatch dashboards in the Amazon CloudWatch User Guide.