# Success failed rate calculation based on true false values

**URL:** <https://community.grafana.com/t/success-failed-rate-calculation-based-on-true-false-values/12036>\
**Category:** Grafana\
**Created:** [November 15, 2018, 9:42am UTC](https://community.grafana.com/t/success-failed-rate-calculation-based-on-true-false-values/12036 "2018-11-15T09:42:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![badb0y](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@badb0y](https://community.grafana.com/u/badb0y)\
**Post date:** [November 15, 2018, 9:42am UTC](https://community.grafana.com/t/success-failed-rate-calculation-based-on-true-false-values/12036/1 "2018-11-15T09:42:48Z")

</div>

Hi,

 ![Capture](https://us1.discourse-cdn.com/grafana/original/2X/0/05d2d2f8b824c19a1f3b510de2edf1ec00d58534.jpeg)

I want to show somehow the success/failed rate of the spawning results.  
I have 1 and 0 values, 1 is if it is successfully spawned, 0 if it is failed. How can I calculate the success and failed rate, so summarize the 1s and 0s, and divide the success / all. Singlestat wil be the final so I want the graph and single stat.

I forgot to mention that I’m using collectd graphite and the job is running from cron, the values are reported every 18-19 minutes.
