

# 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.

1.  *Publish them as custom metrics.* Put the values to CloudWatch as custom metrics with the [`PutMetricData`](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html) operation, using a dimension that identifies the Agent Context (and, for ingestion, the connection mapping).

1.  *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](building-and-curating-context.md) and [Curating context](building-and-curating-context.md). For creating and sharing dashboards, see [Using Amazon CloudWatch dashboards](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Dashboards.html) in the *Amazon CloudWatch User Guide*.