# Convert string to integer

**URL:** <https://community.grafana.com/t/convert-string-to-integer/13544>\
**Category:** Grafana\
**Created:** [January 15, 2019, 3:35pm UTC](https://community.grafana.com/t/convert-string-to-integer/13544 "2019-01-15T15:35:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![meruem](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/meruem/32/6501_2.png) [@meruem](https://community.grafana.com/u/meruem)\
**Post date:** [January 15, 2019, 3:35pm UTC](https://community.grafana.com/t/convert-string-to-integer/13544/1 "2019-01-15T15:35:04Z")

</div>

Hi,

I use Influxdb database. I want to know if it’s possible to convert specific string to integer in grafana graph.

For exemple I need to know the status of my Apache server. In my influxdb database, we have for exemple “Apache service is working” or “Apache service is inactive”. The first data will return 1 and the last data will return 0. And with that I can make a graph.

How I can obtain this result ?

Regards

---

<div class="post-metadata">

**Author:** ![meruem](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/meruem/32/6501_2.png) [@meruem](https://community.grafana.com/u/meruem)\
**Post date:** [January 21, 2019, 9:09am UTC](https://community.grafana.com/t/convert-string-to-integer/13544/2 "2019-01-21T09:09:42Z")

</div>

Any feature to do that ?
