The DigitalOcean Monitoring API makes it possible to programmatically retrieve metrics as well as configure alert policies based on these metrics.
The Monitoring API can help you gain insight into how your apps are performing and consuming resources.