Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prometheus output. plugin net #508

Closed
logicall opened this issue Jan 12, 2016 · 1 comment · Fixed by #523
Closed

prometheus output. plugin net #508

logicall opened this issue Jan 12, 2016 · 1 comment · Fixed by #523

Comments

@logicall
Copy link

Hello!
Today I updated to version 0.10.0 telegraf and appeared errors

 telegraf -config /etc/telegraf/telegraf.conf -debug
2016/01/12 10:29:31 Attempting connection to output: influxdb
2016/01/12 10:29:31 Successfully connected to output: influxdb
2016/01/12 10:29:31 Attempting connection to output: prometheus_client
2016/01/12 10:29:31 Successfully connected to output: prometheus_client
2016/01/12 10:29:31 Starting Telegraf (version 0.10.0)
2016/01/12 10:29:31 Loaded outputs: influxdb prometheus_client
2016/01/12 10:29:31 Loaded plugins: cpu disk diskio mem swap system net
2016/01/12 10:29:31 Tags enabled: host=influxdb
2016/01/12 10:29:31 Agent Config: Interval:10s, Debug:true, Hostname:"influxdb", Flush Interval:10s
> net,host=influxdb,interface=eth0 bytes_recv=58888819978i,bytes_sent=56469914484i,drop_in=10i,drop_out=0i,err_in=0i,err_out=0i,packets_recv=146175636i,packets_sent=130938497i 1452583780000628192
> mem,host=influxdb available=977178624i,available_percent=24.579437133990794,buffered=133017600i,cached=913240064i,free=224870400i,total=3975593984i,used=3750723584i,used_percent=94.343728235202 1452583780001320521
> cpu,cpu=cpu0,host=influxdb time_guest=0,time_guest_nice=0,time_idle=3932102.38,time_iowait=66327.2,time_irq=1.92,time_nice=5.36,time_softirq=148.3,time_steal=54.16,time_system=10221.13,time_user=29946.03 1452583780001289260
> cpu,cpu=cpu1,host=influxdb time_guest=0,time_guest_nice=0,time_idle=3966393.98,time_iowait=40763.19,time_irq=0,time_nice=3.9,time_softirq=111.8,time_steal=32.45,time_system=8766.32,time_user=26562.15 1452583780001289260
> cpu,cpu=cpu2,host=influxdb time_guest=0,time_guest_nice=0,time_idle=3919580.25,time_iowait=68160.53,time_irq=1.4,time_nice=4.4,time_softirq=362.06,time_steal=71.82,time_system=12661.57,time_user=36039.7 1452583780001289260
> cpu,cpu=cpu3,host=influxdb time_guest=0,time_guest_nice=0,time_idle=3984349.56,time_iowait=30287.32,time_irq=0,time_nice=4.98,time_softirq=79.5,time_steal=25.05,time_system=7077.9,time_user=22107.35 1452583780001289260
> cpu,cpu=cpu-total,host=influxdb time_guest=0,time_guest_nice=0,time_idle=15802426.18,time_iowait=205538.25,time_irq=3.33,time_nice=18.65,time_softirq=701.68,time_steal=183.49,time_system=38726.95,time_user=114655.24 1452583780001289260
> net,host=influxdb icmp_inaddrmaskreps=0i,icmp_inaddrmasks=0i,icmp_incsumerrors=0i,icmp_indestunreachs=1335i,icmp_inechoreps=14i,icmp_inechos=13i,icmp_inerrors=151i,icmp_inmsgs=1612i,icmp_inparmprobs=0i,icmp_inredirects=0i,icmp_insrcquenchs=0i,icmp_intimeexcds
=250i,icmp_intimestampreps=0i,icmp_intimestamps=0i,icmp_outaddrmaskreps=0i,icmp_outaddrmasks=0i,icmp_outdestunreachs=1585i,icmp_outechoreps=13i,icmp_outechos=19i,icmp_outerrors=0i,icmp_outmsgs=1617i,icmp_outparmprobs=0i,icmp_outredirects=0i,icmp_outsrcquenchs=0i,icmp_out
timeexcds=0i,icmp_outtimestampreps=0i,icmp_outtimestamps=0i,icmpmsg_intype0=14i,icmpmsg_intype11=250i,icmpmsg_intype3=1335i,icmpmsg_intype8=13i,icmpmsg_outtype0=13i,icmpmsg_outtype3=1585i,icmpmsg_outtype8=19i,ip_defaultttl=64i,ip_forwarding=2i,ip_forwdatagrams=0i,ip_frag
creates=0i,ip_fragfails=0i,ip_fragoks=0i,ip_inaddrerrors=0i,ip_indelivers=146209492i,ip_indiscards=0i,ip_inhdrerrors=0i,ip_inreceives=148728451i,ip_inunknownprotos=0i,ip_outdiscards=0i,ip_outnoroutes=8i,ip_outrequests=138733286i,ip_reasmfails=0i,ip_reasmoks=0i,ip_reasmre
qds=0i,ip_reasmtimeout=0i,tcp_activeopens=1888932i,tcp_attemptfails=391192i,tcp_currestab=27i,tcp_estabresets=16361i,tcp_incsumerrors=0i,tcp_inerrs=142i,tcp_insegs=153536234i,tcp_maxconn=-1i,tcp_outrsts=419613i,tcp_outsegs=165606116i,tcp_passiveopens=1230560i,tcp_retrans
segs=384404i,tcp_rtoalgorithm=1i,tcp_rtomax=120000i,tcp_rtomin=200i,udp_incsumerrors=0i,udp_indatagrams=2683288i,udp_inerrors=0i,udp_noports=31i,udp_outdatagrams=2683117i,udp_rcvbuferrors=0i,udp_sndbuferrors=0i,udplite_incsumerrors=0i,udplite_indatagrams=0i,udplite_inerr
ors=0i,udplite_noports=0i,udplite_outdatagrams=0i,udplite_rcvbuferrors=0i,udplite_sndbuferrors=0i 1452583780001580098
> swap,host=influxdb free=3940491264i,in=58646573056i,out=36361322496i,total=4194299904i,used=253808640i,used_percent=6.051275440698673 1452583780001774948
> disk,fstype=rootfs,host=influxdb,path=/ free=79085268992i,inodes_free=6136441i,inodes_total=6266880i,inodes_used=130439i,total=100905791488i,used=21820522496i 1452583780002024581
> disk,fstype=proc,host=influxdb,path=/proc free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002078822
> disk,fstype=sysfs,host=influxdb,path=/sys free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002101297
> disk,fstype=devtmpfs,host=influxdb,path=/dev free=1977839616i,inodes_free=482512i,inodes_total=482871i,inodes_used=359i,total=1977839616i,used=0i 1452583780002123421
> disk,fstype=securityfs,host=influxdb,path=/sys/kernel/security free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002148207
> disk,fstype=tmpfs,host=influxdb,path=/dev/shm free=1987796992i,inodes_free=485301i,inodes_total=485302i,inodes_used=1i,total=1987796992i,used=0i 1452583780002168833
> disk,fstype=devpts,host=influxdb,path=/dev/pts free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002188948
> disk,fstype=tmpfs,host=influxdb,path=/run free=1796608000i,inodes_free=484856i,inodes_total=485302i,inodes_used=446i,total=1987796992i,used=191188992i 1452583780002210818
> disk,fstype=tmpfs,host=influxdb,path=/sys/fs/cgroup free=1987796992i,inodes_free=485289i,inodes_total=485302i,inodes_used=13i,total=1987796992i,used=0i 1452583780002232038
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/systemd free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002257448
> disk,fstype=pstore,host=influxdb,path=/sys/fs/pstore free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002277735
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/cpuset free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002297546
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/cpu\,cpuacct free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002316512
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/memory free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002337419
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/devices free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002356201
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/freezer free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002375202
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/net_cls free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002421280
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/blkio free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002442033
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/perf_event free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002465658
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/hugetlb free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002492428
> disk,fstype=configfs,host=influxdb,path=/sys/kernel/config free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002510938
> system,host=influxdb load1=0.59,load15=0.1,load5=0.23,uptime=4048189i,uptime_format="46 days, 20:29" 1452583780002518029
> disk,fstype=ext4,host=influxdb,path=/ free=79085268992i,inodes_free=6136441i,inodes_total=6266880i,inodes_used=130439i,total=100905791488i,used=21820522496i 1452583780002529368
> disk,fstype=autofs,host=influxdb,path=/proc/sys/fs/binfmt_misc free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002550064
> disk,fstype=debugfs,host=influxdb,path=/sys/kernel/debug free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002568677
> disk,fstype=mqueue,host=influxdb,path=/dev/mqueue free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002591153
> disk,fstype=hugetlbfs,host=influxdb,path=/dev/hugepages free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002609950
> disk,fstype=xfs,host=influxdb,path=/boot free=337977344i,inodes_free=511657i,inodes_total=512000i,inodes_used=343i,total=520794112i,used=182816768i 1452583780002628417
> disk,fstype=binfmt_misc,host=influxdb,path=/proc/sys/fs/binfmt_misc free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583780002647208
> disk,fstype=tmpfs,host=influxdb,path=/run/user/1000 free=397561856i,inodes_free=485301i,inodes_total=485302i,inodes_used=1i,total=397561856i,used=0i 1452583780002672776
> diskio,host=influxdb,name=sda io_time=199668075i,read_bytes=136866326016i,read_time=33973559i,reads=6346990i,write_bytes=2527220030976i,write_time=1565909244i,writes=313977640i 1452583780010556278
> diskio,host=influxdb,name=sda1 io_time=4584i,read_bytes=18571776i,read_time=1399i,reads=1376i,write_bytes=88108544i,write_time=19488i,writes=1348i 1452583780010604690
> diskio,host=influxdb,name=sda2 io_time=3371244i,read_bytes=58648223744i,read_time=10911514i,reads=2683778i,write_bytes=36361322496i,write_time=182918477i,writes=2726369i 1452583780010646780
> diskio,host=influxdb,name=sda3 io_time=196166658i,read_bytes=78198494208i,read_time=23060502i,reads=3661638i,write_bytes=2490770599936i,write_time=1381616713i,writes=307319798i 1452583780010676801
> diskio,host=influxdb,name=dm-0 io_time=197289961i,read_bytes=78197924864i,read_time=24353985i,reads=3727119i,write_bytes=2490770644992i,write_time=1534896599i,writes=323813668i 1452583780010697497
2016/01/12 10:29:40 Gathered metrics, (10s interval), from 7 inputs in 10.405752ms
> net,host=influxdb,interface=eth0 bytes_recv=58888967840i,bytes_sent=56470141103i,drop_in=10i,drop_out=0i,err_in=0i,err_out=0i,packets_recv=146175962i,packets_sent=130939009i 1452583790000845689
> cpu,cpu=cpu0,host=influxdb time_guest=0,time_guest_nice=0,time_idle=3932112.22,time_iowait=66327.22,time_irq=1.92,time_nice=5.36,time_softirq=148.3,time_steal=54.16,time_system=10221.17,time_user=29946.11,usage_guest=0,usage_guest_nice=0,usage_idle=98.5971943
8753393,usage_iowait=0.20040080163505686,usage_irq=0,usage_nice=0,usage_softirq=0,usage_steal=0,usage_system=0.4008016031972083,usage_user=0.8016032063944166 1452583790000843005
> cpu,cpu=cpu1,host=influxdb time_guest=0,time_guest_nice=0,time_idle=3966403.86,time_iowait=40763.19,time_irq=0,time_nice=3.9,time_softirq=111.8,time_steal=32.45,time_system=8766.36,time_user=26562.2,usage_guest=0,usage_guest_nice=0,usage_idle=99.0972918770978
7,usage_iowait=0,usage_irq=0,usage_nice=0,usage_softirq=0,usage_steal=0,usage_system=0.4012036108517486,usage_user=0.5015045135464411 1452583790000843005
> swap,host=influxdb free=3940491264i,in=58646573056i,out=36361322496i,total=4194299904i,used=253808640i,used_percent=6.051275440698673 1452583790000953776
> mem,host=influxdb available=975990784i,available_percent=24.54955883140807,buffered=133025792i,cached=913268736i,free=223645696i,total=3975593984i,used=3751948288i,used_percent=94.37453379545109 1452583790000996343
> cpu,cpu=cpu2,host=influxdb time_guest=0,time_guest_nice=0,time_idle=3919590.08,time_iowait=68160.55,time_irq=1.4,time_nice=4.4,time_softirq=362.06,time_steal=71.82,time_system=12661.61,time_user=36039.78,usage_guest=0,usage_guest_nice=0,usage_idle=98.59578736
080734,usage_iowait=0.2006018054529942,usage_irq=0,usage_nice=0,usage_softirq=0,usage_steal=0,usage_system=0.40120361083300987,usage_user=0.8024072216660197 1452583790000843005
> cpu,cpu=cpu3,host=influxdb time_guest=0,time_guest_nice=0,time_idle=3984359.48,time_iowait=30287.32,time_irq=0,time_nice=4.98,time_softirq=79.5,time_steal=25.05,time_system=7077.93,time_user=22107.39,usage_guest=0,usage_guest_nice=0,usage_idle=99.299299300960
37,usage_iowait=0,usage_irq=0,usage_nice=0,usage_softirq=0,usage_steal=0,usage_system=0.30030030031413407,usage_user=0.40040040041884545 1452583790000843005
> cpu,cpu=cpu-total,host=influxdb time_guest=0,time_guest_nice=0,time_idle=15802465.65,time_iowait=205538.3,time_irq=3.33,time_nice=18.65,time_softirq=701.68,time_steal=183.5,time_system=38727.09,time_user=114655.49,usage_guest=0,usage_guest_nice=0,usage_idle=9
8.8727454882329,usage_iowait=0.1252505009672315,usage_irq=0,usage_nice=0,usage_softirq=0,usage_steal=0.025050100199255947,usage_system=0.35070140278844414,usage_user=0.6262525049819683 1452583790000843005
> disk,fstype=rootfs,host=influxdb,path=/ free=79085244416i,inodes_free=6136440i,inodes_total=6266880i,inodes_used=130440i,total=100905791488i,used=21820547072i 1452583790001730066
> net,host=influxdb icmp_inaddrmaskreps=0i,icmp_inaddrmasks=0i,icmp_incsumerrors=0i,icmp_indestunreachs=1335i,icmp_inechoreps=14i,icmp_inechos=13i,icmp_inerrors=151i,icmp_inmsgs=1612i,icmp_inparmprobs=0i,icmp_inredirects=0i,icmp_insrcquenchs=0i,icmp_intimeexcds
=250i,icmp_intimestampreps=0i,icmp_intimestamps=0i,icmp_outaddrmaskreps=0i,icmp_outaddrmasks=0i,icmp_outdestunreachs=1585i,icmp_outechoreps=13i,icmp_outechos=19i,icmp_outerrors=0i,icmp_outmsgs=1617i,icmp_outparmprobs=0i,icmp_outredirects=0i,icmp_outsrcquenchs=0i,icmp_out
timeexcds=0i,icmp_outtimestampreps=0i,icmp_outtimestamps=0i,icmpmsg_intype0=14i,icmpmsg_intype11=250i,icmpmsg_intype3=1335i,icmpmsg_intype8=13i,icmpmsg_outtype0=13i,icmpmsg_outtype3=1585i,icmpmsg_outtype8=19i,ip_defaultttl=64i,ip_forwarding=2i,ip_forwdatagrams=0i,ip_frag
creates=0i,ip_fragfails=0i,ip_fragoks=0i,ip_inaddrerrors=0i,ip_indelivers=146209885i,ip_indiscards=0i,ip_inhdrerrors=0i,ip_inreceives=148728853i,ip_inunknownprotos=0i,ip_outdiscards=0i,ip_outnoroutes=8i,ip_outrequests=138733879i,ip_reasmfails=0i,ip_reasmoks=0i,ip_reasmre
qds=0i,ip_reasmtimeout=0i,tcp_activeopens=1888941i,tcp_attemptfails=391192i,tcp_currestab=27i,tcp_estabresets=16362i,tcp_incsumerrors=0i,tcp_inerrs=142i,tcp_insegs=153536641i,tcp_maxconn=-1i,tcp_outrsts=419614i,tcp_outsegs=165606793i,tcp_passiveopens=1230568i,tcp_retrans
segs=384404i,tcp_rtoalgorithm=1i,tcp_rtomax=120000i,tcp_rtomin=200i,udp_incsumerrors=0i,udp_indatagrams=2683294i,udp_inerrors=0i,udp_noports=31i,udp_outdatagrams=2683123i,udp_rcvbuferrors=0i,udp_sndbuferrors=0i,udplite_incsumerrors=0i,udplite_indatagrams=0i,udplite_inerr
ors=0i,udplite_noports=0i,udplite_outdatagrams=0i,udplite_rcvbuferrors=0i,udplite_sndbuferrors=0i 1452583790001624810
> disk,fstype=proc,host=influxdb,path=/proc free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790001799198
> disk,fstype=sysfs,host=influxdb,path=/sys free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790001823204
> disk,fstype=devtmpfs,host=influxdb,path=/dev free=1977839616i,inodes_free=482512i,inodes_total=482871i,inodes_used=359i,total=1977839616i,used=0i 1452583790001854931
> disk,fstype=securityfs,host=influxdb,path=/sys/kernel/security free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790001878500
> disk,fstype=tmpfs,host=influxdb,path=/dev/shm free=1987796992i,inodes_free=485301i,inodes_total=485302i,inodes_used=1i,total=1987796992i,used=0i 1452583790001898846
> disk,fstype=devpts,host=influxdb,path=/dev/pts free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790001919204
> disk,fstype=tmpfs,host=influxdb,path=/run free=1796608000i,inodes_free=484856i,inodes_total=485302i,inodes_used=446i,total=1987796992i,used=191188992i 1452583790001941390
> disk,fstype=tmpfs,host=influxdb,path=/sys/fs/cgroup free=1987796992i,inodes_free=485289i,inodes_total=485302i,inodes_used=13i,total=1987796992i,used=0i 1452583790001972307
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/systemd free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790001992392
> disk,fstype=pstore,host=influxdb,path=/sys/fs/pstore free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790002012895
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/cpuset free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790002032440
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/cpu\,cpuacct free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790002064951
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/memory free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790002092031
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/devices free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790002111627
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/freezer free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790002139825
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/net_cls free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790002160653
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/blkio free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790003234147
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/perf_event free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790003295701
> disk,fstype=cgroup,host=influxdb,path=/sys/fs/cgroup/hugetlb free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790003341848
> disk,fstype=configfs,host=influxdb,path=/sys/kernel/config free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790003385920
> disk,fstype=ext4,host=influxdb,path=/ free=79085244416i,inodes_free=6136440i,inodes_total=6266880i,inodes_used=130440i,total=100905791488i,used=21820547072i 1452583790003428889
> disk,fstype=autofs,host=influxdb,path=/proc/sys/fs/binfmt_misc free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790003496790
> disk,fstype=debugfs,host=influxdb,path=/sys/kernel/debug free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790003544167
> disk,fstype=mqueue,host=influxdb,path=/dev/mqueue free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790003587174
> disk,fstype=hugetlbfs,host=influxdb,path=/dev/hugepages free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790003643113
> disk,fstype=xfs,host=influxdb,path=/boot free=337977344i,inodes_free=511657i,inodes_total=512000i,inodes_used=343i,total=520794112i,used=182816768i 1452583790003727539
> disk,fstype=binfmt_misc,host=influxdb,path=/proc/sys/fs/binfmt_misc free=0i,inodes_free=0i,inodes_total=0i,inodes_used=0i,total=0i,used=0i 1452583790003780790
> disk,fstype=tmpfs,host=influxdb,path=/run/user/1000 free=397561856i,inodes_free=485301i,inodes_total=485302i,inodes_used=1i,total=397561856i,used=0i 1452583790003830214
> system,host=influxdb load1=0.64,load15=0.11,load5=0.25,uptime=4048199i,uptime_format="46 days, 20:29" 1452583790006205397
> diskio,host=influxdb,name=sda3 io_time=196166725i,read_bytes=78198494208i,read_time=23060502i,reads=3661638i,write_bytes=2490771279872i,write_time=1381617492i,writes=307319886i 1452583790012939947
> diskio,host=influxdb,name=dm-0 io_time=197290031i,read_bytes=78197924864i,read_time=24353985i,reads=3727119i,write_bytes=2490771324928i,write_time=1534897442i,writes=323813781i 1452583790012991775
> diskio,host=influxdb,name=sda io_time=199668144i,read_bytes=136866326016i,read_time=33973559i,reads=6346990i,write_bytes=2527220710912i,write_time=1565910025i,writes=313977733i 1452583790013018132
> diskio,host=influxdb,name=sda1 io_time=4584i,read_bytes=18571776i,read_time=1399i,reads=1376i,write_bytes=88108544i,write_time=19488i,writes=1348i 1452583790013041026
> diskio,host=influxdb,name=sda2 io_time=3371244i,read_bytes=58648223744i,read_time=10911514i,reads=2683778i,write_bytes=36361322496i,write_time=182918477i,writes=2726369i 1452583790013067116
2016/01/12 10:29:50 Gathered metrics, (10s interval), from 7 inputs in 12.571595ms
2016/01/12 10:29:50 ERROR Getting metric in Prometheus output, key: net, labels: map[host:influxdb],err: inconsistent label cardinality
2016/01/12 10:29:50 ERROR Getting metric in Prometheus output, key: net, labels: map[host:influxdb],err: inconsistent label cardinality
2016/01/12 10:29:50 ERROR Getting metric in Prometheus output, key: net, labels: map[host:influxdb],err: inconsistent label cardinality
2016/01/12 10:29:50 ERROR Getting metric in Prometheus output, key: net, labels: map[host:influxdb],err: inconsistent label cardinality
....
2016/01/12 10:29:50 ERROR Getting metric in Prometheus output, key: net, labels: map[host:influxdb],err: inconsistent label cardinality
2016/01/12 10:29:50 Prometheus output, unsupported type. key: system, type: string
2016/01/12 10:29:50 Flushed 88 metrics to output prometheus_client in 5.845571ms
2016/01/12 10:29:50 Flushed 88 metrics to output influxdb in 55.118533ms

Here is my config

[agent]
    interval = "10s"
    round_interval = true
    flush_interval = "10s"
    flush_jitter = "0s"
    debug = false
    hostname = ""

[[outputs.influxdb]]
    urls = ["http://localhost:8086"]
    database = "telegraf"
    precision = "s"

[[outputs.prometheus_client]]
    listen = "127.0.0.1:9126"

[[inputs.cpu]]
    percpu = true
    totalcpu = true

[[inputs.disk]]

[[inputs.diskio]]

[[inputs.mem]]

[[inputs.swap]]

[[inputs.system]]

[[inputs.net]]

@sparrc
Copy link
Contributor

sparrc commented Jan 12, 2016

@logicall Thanks for the report, we might need to rename the net protocol stats. The problem is the second net metric that doesn't have the interface stat. This is fine for InfluxDB but not for prometheus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants