Maintaining service level agreements with external or internal customers often requires measuring uptime percentage. This guide shows you how to achieve this using Datadog Synthetic Monitoring and the SLO widget. It uses
http://example.com/ website as an example.
Create a new Synthetic API test upon
http://example.com/ in the URL field.
Click Test URL to automatically populate assertions about the health of your website:
Tweak those assertions to match your SLI and define your test retry policy, in this example if at least half of the locations fails, even after one retry, then we consider that the site is down;
Optionally - Define a verbose notification message:
Create a new SLO to track your website’s uptime based on your Synthetic test results.
Select Monitor based and enter your Synthetic test name:
Define the target you want to achieve:
Finish your SLO configuration by setting a title and message to give more detail upon your SLO:
Create a new Dashboard to host your SLO widget:
Drag and drop the SLO summary widget on your board.
Select the SLO that you defined just above:
Customize you SLO widget to match your needs:
Finish by entering a descriptive title for your widget and click Done and voila: