From an outage log to a percentage
After an incident, the first question from management is usually how much availability the service achieved. This page answers it from two numbers: the length of the period you are reporting on and the total time the service was down within it. It returns the uptime in seconds and the availability as a percentage. It is the reverse of the SLA downtime page, which starts from a target and gives a budget. Use this page to check whether a period met a target, to report a monthly figure or to compare the reliability of two systems. Because the result is a plain ratio, it works for a single server, for a whole product or for a network link, as long as the window and the downtime refer to the same thing.
Availability from window and downtime
Uptime = window − downtime, and availability = 100 × uptime / window. The defaults are a window of 100,000 seconds with 100 seconds of downtime. The uptime is 99,900 seconds, and the availability is 99.9 percent. Both inputs are in seconds. To convert a duration, multiply minutes by 60, hours by 3,600 and days by 86,400. Downtime must not exceed the window, and the sum of separate outages is the downtime input. If outages overlap in time, count the overlapping period once, or the downtime will be overstated. Many monitoring tools list every alert separately, so merge alerts that describe the same event before adding the minutes.
A month with one short outage
A 30-day month has 2,592,000 seconds. If the service was down for 30 minutes, which is 1,800 seconds, uptime is 2,590,200 seconds and availability is about 99.9306 percent. That meets a 99.9 percent target, whose budget for the month is 2,592 seconds, with 792 seconds to spare. A single outage of 45 minutes would use 2,700 seconds, which is above the budget, and availability would be about 99.896 percent. A 15-minute difference decides between meeting and missing the target. This closeness to the line is common, and it is why a post-incident review looks carefully at exactly when the outage began and ended.
A full year with a multi-hour incident
A year of 365 days has 31,536,000 seconds. An outage of 4 hours and 12 minutes lasts 15,120 seconds. The uptime is 31,520,880 seconds and the availability is about 99.952 percent. That is below a 99.99 percent target, whose annual budget is only 3,153.6 seconds, or 52.56 minutes, and it is within a 99.9 percent target. Reporting over a long window smooths a single event, which is useful for annual reviews but hides short-term pain, so many teams report both monthly and yearly figures. Customers, however, tend to remember the single bad afternoon more than the yearly average, so the shorter window often matches how they judge the service. When you quote an annual number, state the window, because a figure like 99.95 percent is not meaningful without it.
A week and a short window
A short window makes the percentage more sensitive. In a week of 604,800 seconds, a single outage of 90 minutes, or 5,400 seconds, leaves 599,400 seconds of uptime and an availability of about 99.107 percent. The same outage in a 30-day window would give 99.79 percent. When you compare numbers, be sure that they refer to windows of the same length. A service quoted at 99.9 percent per month and one quoted at 99.9 percent per year make very different promises about how long a single outage can be.
What to include as downtime
The page does not decide which events count. The window should contain only the time the service was supposed to be available, and the downtime should contain the time it failed to deliver. Planned maintenance, outages in a customer's own network and periods outside the support schedule may be excluded by the policy that applies. Write the rule before measuring. Partial failures need a decision as well: a service that answers but with errors for 20 percent of requests can be counted as down, as degraded, or as a fraction of an outage, depending on the agreement. When maintenance is excluded, the same incident can give a higher availability figure than if it were counted, so report which convention you used. A fractional approach, where a half-working service counts as half an outage, is simple to compute with this page, but it needs to be written into the policy to be accepted.
Measuring downtime reliably
Downtime is often measured by probes that check the service every minute from several locations. A probe that runs every 60 seconds cannot see an outage shorter than that, and it rounds the length of others up or down by up to a probe interval. Using several locations helps separate a real outage from a network problem near the probe. Compare monitoring data with server logs after an incident. A consistent method matters more than perfect accuracy, since changing the method partway through a year makes figures hard to compare. Recording the probe interval and the locations alongside the percentage makes later review much easier.
Combining several services
A product that depends on several services in series has lower availability than any one of them. Two services at 99.9 percent each give about 99.8 percent together, because the downtime of both adds. For this page, a combined figure comes from the union of the outage periods, which you add up and enter once. If one outage affected only a part of the users, the figure for the whole product is better described by a request-based measure, which the error budget page on this site supports. The request-based view weights busy periods more heavily, which is often closer to what users experience.
What time-based availability does not capture
The page calculates time-based availability for the exact window you supply. The user decides which time is eligible and which outages are excluded. It does not define an availability policy, estimate partial outages or compute contract refunds. The treatment of availability targets follows the service level objectives chapter of Google's SRE book. Percentages are exact for the inputs given, but they are only as reliable as the measurement of the downtime. Rounding for reports is up to you, and for high targets it is wise to show enough decimals, because 99.9 and 99.95 are quite different promises.