# Get Server downtime value

**URL:** <https://community.influxdata.com/t/get-server-downtime-value/3821>\
**Category:** Telegraf\
**Tags:** influxdb, grafana\
**Created:** [January 30, 2018, 3:48am UTC](https://community.influxdata.com/t/get-server-downtime-value/3821 "2018-01-30T03:48:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bibhu\_Biswal](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/bibhu_biswal/32/1923_2.png) [@Bibhu\_Biswal](https://community.influxdata.com/u/Bibhu_Biswal)\
**Post date:** [January 30, 2018, 3:48am UTC](https://community.influxdata.com/t/get-server-downtime-value/3821/1 "2018-01-30T03:48:13Z")

</div>

My influxdb has system status as value i.e UP or DOWN. At any given point of time how can i get the total downtime. I need to plot the total downtime in grafana  
For example at 16:00 the total downtime is 1 hr 30 minutes  
Time Status  
10:00 UP  
11:30 DOWN  
12:00 UP  
14:00 DOWN  
15:00 UP

---

<div class="post-metadata">

**Author:** ![katy](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/katy/32/855_2.png) [@katy](https://community.influxdata.com/u/katy)\
**Post date:** [January 31, 2018, 11:47pm UTC](https://community.influxdata.com/t/get-server-downtime-value/3821/2 "2018-01-31T23:47:41Z")

</div>

There’s an [elapsed](https://docs.influxdata.com/influxdb/v0.13/query_language/functions/#elapsed) function that might help you do the calculations.
