Failing to pass data point to influxdb

influxdb
telegraf
#1

I just setup influxdb using the ocker container behind a nginx reverse proxy without TLS:

# insecure, do not use like this!
server {

	listen 8086;
	listen [::]:8086;
        server_name influx.some.where;
		
        location / {
			proxy_pass http://influx;
			proxy_redirect off;
			proxy_http_version 1.1;
			proxy_max_temp_file_size 10m;
			proxy_connect_timeout 20;
			proxy_send_timeout 20;
			proxy_read_timeout 20;
			proxy_set_header   Host		$host;
			proxy_set_header X-Real-IP $remote_addr;
			proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
			proxy_set_header X-Forwarded-Proto $scheme;
			proxy_set_header X-Original-For $proxy_add_x_forwarded_for;
			proxy_set_header X-Original-Proto $scheme;
			proxy_cache_bypass $http_upgrade;
        }

}

Using telegraf on Fedora I see tons of those messages every time an update is supposed to be pushed to influx db.

2018-10-22T19:34:32Z I! Starting Telegraf 1.8.1
2018-10-22T19:34:32Z I! Loaded inputs: inputs.disk inputs.diskio inputs.kernel inputs.mem inputs.processes inputs.swap inputs.system inputs.cpu
2018-10-22T19:34:32Z I! Loaded aggregators: 
2018-10-22T19:34:32Z I! Loaded processors: 
2018-10-22T19:34:32Z I! Loaded outputs: influxdb
2018-10-22T19:34:32Z I! Tags enabled: host=testmachine location=munich machine=testmachine
2018-10-22T19:34:32Z I! Agent Config: Interval:10s, Quiet:false, Hostname:"testmachine", Flush Interval:10s 

// snip, same logs as below

018-10-22T19:28:30Z E! [outputs.influxdb]: when writing to [http://influx.some.where:8086]: received error partial write: unable to parse 'system,host=testmachine,location=munich,machine=testmachine uptime=263449u 1540236500000000000': invalid number
unable to parse 'mem,host=testmachine,location=munich,machine=testmachine huge_page_size=2097152u,low_free=0u,used_percent=15.60372348266035,dirty=999424u,high_total=0u,committed_as=19502366720u,swap_cached=45056u,write_back=0u,available=14928732160u,used=2623262720u,inactive=5470769152u,free=571228160u,high_free=0u,write_back_tmp=0u,mapped=226246656u,vmalloc_chunk=0u,vmalloc_used=0u,total=16811773952u,buffered=6684672u,commit_limit=26641666048u,swap_free=18232373248u,huge_pages_free=0u,low_total=0u,page_tables=24461312u,shared=3010560u,vmalloc_total=35184372087808u,wired=0u,slab=1844985856u,available_percent=88.79926771929988,swap_total=18235781120u,cached=13610598400u,active=8651350016u,huge_pages_total=0u 1540236500000000000': invalid number dropped=0; discarding points
#2

I think you don’t have support for uint values in InfluxDB, but it is enabled in Telegraf. This option is not enabled in the official InfluxDB packages and is a compile time flag, you will either need to compile InfluxDB with this setting enabled, or set influx_uint_support = false in Telegraf.

1 Like