# Telegraf sending float field data, but influx shows '0'

**URL:** <https://community.influxdata.com/t/telegraf-sending-float-field-data-but-influx-shows-0/21520>\
**Category:** Telegraf\
**Tags:** influxdb, telegraf\
**Created:** [September 2, 2021, 1:54pm UTC](https://community.influxdata.com/t/telegraf-sending-float-field-data-but-influx-shows-0/21520 "2021-09-02T13:54:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dayton](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dayton](https://community.influxdata.com/u/Dayton)\
**Post date:** [September 2, 2021, 1:54pm UTC](https://community.influxdata.com/t/telegraf-sending-float-field-data-but-influx-shows-0/21520/1 "2021-09-02T13:54:31Z")

</div>

I have a python script that I’ve been using for years (on older ubuntu systems) with telegraf (1.13.4) and influxdb (1.7.9). Fields sent from the older systems are still populating as expected (the actual value showing) but when data is sent from a newer system (Ubuntu 20, but still telegraf 1.13 sending to the same influxdb host) - the field values are all being reported as ‘0’

Running telegraf in ‘–test’ mode and specifying the input-filter to include my script and I see the correct values (\>0) being gathered and (theoretically) sent to influx. I see no errors in either the telegraf log or the influx log. Any ideas what is happening, and how I can fix it?

> show field keys from nodetool\_status  
> name: nodetool\_status  
> fieldKey fieldType

* * *

down float  
joining float  
leaving float  
normal float  
up float

Ubuntu 16 host (good):

> select hostname,up,down,joinging,leaving,normal from nodetool\_status where “cluster\_name” = ‘LAB1’ and time \>= now() - 10m limit 5  
> name: nodetool\_status  
> tags: host=cdb.lab1  
> time hostname up down joinging leaving normal

* * *

2021-09-02T13:38:05Z cdb.lab1 6 0 0 6  
2021-09-02T13:38:15Z cdb.lab1 6 0 0 6  
2021-09-02T13:38:25Z cdb.lab1 6 0 0 6  
2021-09-02T13:38:35Z cdb.lab1 6 0 0 6  
2021-09-02T13:38:45Z cdb.lab1 6 0 0 6

Ubuntu 20 host(bad):

> select hostname,up,down,joinging,leaving,normal from nodetool\_status where “cluster\_name” = ‘LAB2’ and time \>= now() - 10m limit 5  
> name: nodetool\_status  
> tags: host=cdb.lab2  
> time hostname up down joinging leaving normal

* * *

2021-09-02T13:31:09Z cdb.lab2 0 0 0 0  
2021-09-02T13:31:19Z cdb.lab2 0 0 0 0  
2021-09-02T13:31:29Z cdb.lab2 0 0 0 0  
2021-09-02T13:31:39Z cdb.lab2 0 0 0 0  
2021-09-02T13:31:49Z cdb.lab2 0 0 0 0

:~# telegraf --test --config /etc/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d --input-filter exec

> nodetool\_status,cluster=LAB2,hostname=cdb.lab2 down=0,joining=0,leaving=0,normal=6,up=6 1630590162000000000

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.influxdata.com/u/Pooh)\
**Post date:** [September 2, 2021, 2:09pm UTC](https://community.influxdata.com/t/telegraf-sending-float-field-data-but-influx-shows-0/21520/2 "2021-09-02T14:09:00Z")

</div>

Your command:

# telegraf --test --config /etc/telegraf/telegraf.conf --config-directory

/etc/telegraf/telegraf.d --input-filter exec

Output:

nodetool\_status,cluster=LAB2,hostname=cdb.lab2  
down=0,joining=0,leaving=0,normal=6,up=6 1630590162000000000

That space (where my mail client has split the line) between “cdb.lab2” and  
“down=0” doesn’t look good to me.

Antony.

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.influxdata.com/u/Pooh)\
**Post date:** [September 2, 2021, 2:25pm UTC](https://community.influxdata.com/t/telegraf-sending-float-field-data-but-influx-shows-0/21520/3 "2021-09-02T14:25:03Z")

</div>

No, that comment of mine is rubbish - the space is just the separator between  
tags and fields.

Sorry.

Antony.
