<p>What you suggest might be the simplest way to collect the data, but you will have to do quite a bit of work to extract the availability over certain periods. </p>

<p>I think it's fair to say that if you want availability, <strong>you need a monitoring system</strong>. This means having an extra service in your catalogue to continuously probe the availability of your microservices over time. Storing them in a time-series database would allow you to make queries to establish <a href="https://en.wikipedia.org/wiki/Availability" rel="nofollow noreferrer">availability</a> over various periods.</p>

<p>There are many tools which could do this for you. A good starting place would be the <a href="https://landscape.cncf.io/category=monitoring&amp;format=card-mode&amp;grouping=category" rel="nofollow noreferrer">CNCF monitoring landscape</a></p>

CC BY-SA 4.0
2022-07-07T07:48:31.890Z
Whoa there are a lot of services! Any of the top 5 consumer website monitoring services should be able to monitor at this granularity below $5 per month. Pingdom, Statuscake, Uptimerobot etc.
jdog
CC BY-SA 4.0
2019-10-20T08:02:52.057Z
2019-10-20T08:02:52.057Z
Bruce Becker
<p>I am deploying a microservices - based application using an orchestrator (Rancher specifically).</p>

<p>During the service upgrade (when new images are being pulled and services re-discover one another), there is a small service outage.</p>

<p>What is the best / recommended way to measure the downtime?</p>

<p>I am performing e.g. a </p>

<pre><code>watch -n1 'wget --spider http://some.endpoint.whoa'
</code></pre>

<p>but I want to time the duration of e.g. <code>502</code> responses.</p>

<microservices><rancher><upgrade><high-availability>
Measure service unavailability during upgrade
pkaramol
# Measure service unavailability during upgrade

(Asked by: username_0 on 2018-02-02)

I am deploying a microservices - based application using an orchestrator (Rancher specifically).
During the service upgrade (when new images are being pulled and services re-discover one another), there is a small service outage.
What is the best / recommended way to measure the downtime?
I am performing e.g. a 
watch -n1 'wget --spider http://some.endpoint.whoa'

but I want to time the duration of e.g. 502 responses.

**Tags:** microservices, rancher, upgrade, high-availability


---

## 1 answers

### Answer by username_1 on 2019-10-20. Score: 1

What you suggest might be the simplest way to collect the data, but you will have to do quite a bit of work to extract the availability over certain periods.

I think it's fair to say that if you want availability, **you need a monitoring system**. This means having an extra service in your catalogue to continuously probe the availability of your microservices over time. Storing them in a time-series database would allow you to make queries to establish [availability](https://en.wikipedia.org/wiki/Availability) over various periods.

There are many tools which could do this for you. A good starting place would be the [CNCF monitoring landscape](https://landscape.cncf.io/category=monitoring&format=card-mode&grouping=category)

> **Comments:**
> **username_2**: Whoa there are a lot of services! Any of the top 5 consumer website monitoring services should be able to monitor at this granularity below $5 per month. Pingdom, Statuscake, Uptimerobot etc.  

---

