munin-monitoring / contrib

Contributed stuff for munin (plugins, tools, etc...)

Home Page:http://munin-monitoring.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[RRD ERROR] Unable to graph for docker_ plugin

oukb opened this issue · comments

commented

Hi

Munin can't draw graphics for docker_network plugin(docker_)

munin 2.0.65

Tried with Centos 7 and python36-docker-2.6.1-3.el7.noarch
and Fedora 33 with python3-docker-4.3.1-1.fc33.noarch

2021/01/17 05:45:47 [RRD ERROR] Unable to graph /var/www/html/munin/HOSTNAME/docker_network-day.png : don't understand 'test-container-2-mysql_down,8,'
2021/01/17 05:45:47 [RRD ERROR] rrdtool 'graph' '/var/www/html/munin/HOSTNAME/docker_network-day.png'
'--title'
'Docker containers network usage - by day'
'--start'
'-2000m'
'--base'
'1024'
'-l'
'0'
'--vertical-label'
'bits in (-) / out (+) per second'
'--slope-mode'
'--height'
'175'
'--width'
'400'
'--imgformat'
'PNG'
'--lazy'
'--font'
'DEFAULT:0:DejaVuSans,DejaVu Sans,DejaVu LGC Sans,Bitstream Vera Sans'
'--font'
'LEGEND:7:DejaVuSansMono,DejaVu Sans Mono,DejaVu LGC Sans Mono,Bitstream Vera Sans Mono,monospace'
'--color'
'BACK#F0F0F0'
'--color'
'FRAME#F0F0F0'
'--color'
'CANVAS#FFFFFF'
'--color'
'FONT#666666'
'--color'
'AXIS#CFD6F8'
'--color'
'ARROW#CFD6F8'
'--border'
'0'
'-W'
'Munin 2.0.65'
'DEF:a1b90112b24e1b1b=/var/lib/munin/HOSTNAME-docker_network-test_container_1_mysql_up-d.rrd:42:MAX'
'DEF:i1b90112b24e1b1b=/var/lib/munin/HOSTNAME-docker_network-test_container_1_mysql_up-d.rrd:42:MIN'
'DEF:g1b90112b24e1b1b=/var/lib/munin/HOSTNAME-docker_network-test_container_1_mysql_up-d.rrd:42:AVERAGE'
'DEF:a59161963440bc20=/var/lib/munin/HOSTNAME-docker_network-test_container_1_mysql_down-d.rrd:42:MAX'
'DEF:i59161963440bc20=/var/lib/munin/HOSTNAME-docker_network-test_container_1_mysql_down-d.rrd:42:MIN'
'DEF:g59161963440bc20=/var/lib/munin/HOSTNAME-docker_network-test_container_1_mysql_down-d.rrd:42:AVERAGE'
'DEF:a3e41268fdfd872e=/var/lib/munin/HOSTNAME-docker_network-test_container_2_mysql_up-d.rrd:42:MAX'
'DEF:i3e41268fdfd872e=/var/lib/munin/HOSTNAME-docker_network-test_container_2_mysql_up-d.rrd:42:MIN'
'DEF:g3e41268fdfd872e=/var/lib/munin/HOSTNAME-docker_network-test_container_2_mysql_up-d.rrd:42:AVERAGE'
'DEF:af2cd8086ba643d7=/var/lib/munin/HOSTNAME-docker_network-test_container_2_mysql_down-d.rrd:42:MAX'
'DEF:if2cd8086ba643d7=/var/lib/munin/HOSTNAME-docker_network-test_container_2_mysql_down-d.rrd:42:MIN'
'DEF:gf2cd8086ba643d7=/var/lib/munin/HOSTNAME-docker_network-test_container_2_mysql_down-d.rrd:42:AVERAGE'
'CDEF:a4a1537c151b30ca=test-container-2-mysql_down,8,
'
'CDEF:i4a1537c151b30ca=test-container-2-mysql_down,8,'
'CDEF:g4a1537c151b30ca=test-container-2-mysql_down,8,
'
'CDEF:c4a1537c151b30ca=g4a1537c151b30ca'
'CDEF:acec8c0bcb259b04=test-container-2-mysql_up,8,'
'CDEF:icec8c0bcb259b04=test-container-2-mysql_up,8,
'
'CDEF:gcec8c0bcb259b04=test-container-2-mysql_up,8,'
'CDEF:ccec8c0bcb259b04=gcec8c0bcb259b04'
'COMMENT: '
'COMMENT:Cur (-/+)'
'COMMENT:Min (-/+)'
'COMMENT:Avg (-/+)'
'COMMENT:Max (-/+) \j'
'LINE1:gcec8c0bcb259b04#00CC00:test-container-2-mysql '
'GPRINT:ctest-container-2-mysql_down:LAST:%7.2lf%s/\g'
'GPRINT:ccec8c0bcb259b04:LAST:%7.2lf%s'
'GPRINT:itest-container-2-mysql_down:MIN:%7.2lf%s/\g'
'GPRINT:icec8c0bcb259b04:MIN:%7.2lf%s'
'GPRINT:gtest-container-2-mysql_down:AVERAGE:%7.2lf%s/\g'
'GPRINT:gcec8c0bcb259b04:AVERAGE:%7.2lf%s'
'GPRINT:atest-container-2-mysql_down:MAX:%7.2lf%s/\g'
'GPRINT:acec8c0bcb259b04:MAX:%7.2lf%s\j'
'CDEF:ad99665bcb5f3305=test-container-1-mysql_down,8,
'
'CDEF:id99665bcb5f3305=test-container-1-mysql_down,8,'
'CDEF:gd99665bcb5f3305=test-container-1-mysql_down,8,
'
'CDEF:cd99665bcb5f3305=gd99665bcb5f3305'
'CDEF:a687c916fe3ed4ce=test-container-1-mysql_up,8,'
'CDEF:i687c916fe3ed4ce=test-container-1-mysql_up,8,
'
'CDEF:g687c916fe3ed4ce=test-container-1-mysql_up,8,'
'CDEF:c687c916fe3ed4ce=g687c916fe3ed4ce'
'STACK:g687c916fe3ed4ce#0066B3:test-container-1-mysql '
'GPRINT:ctest-container-1-mysql_down:LAST:%7.2lf%s/\g'
'GPRINT:c687c916fe3ed4ce:LAST:%7.2lf%s'
'GPRINT:itest-container-1-mysql_down:MIN:%7.2lf%s/\g'
'GPRINT:i687c916fe3ed4ce:MIN:%7.2lf%s'
'GPRINT:gtest-container-1-mysql_down:AVERAGE:%7.2lf%s/\g'
'GPRINT:g687c916fe3ed4ce:AVERAGE:%7.2lf%s'
'GPRINT:atest-container-1-mysql_down:MAX:%7.2lf%s/\g'
'GPRINT:a687c916fe3ed4ce:MAX:%7.2lf%s\j'
'CDEF:re_zero=gtest-container-2-mysql_down,UN,0,0,IF'
'CDEF:ngtest-container-2-mysql_down=gtest-container-2-mysql_down,-1,
'
'LINE1:ngtest-container-2-mysql_down#00CC00'
'CDEF:ngtest-container-1-mysql_down=gtest-container-1-mysql_down,-1,*'
'STACK:ngtest-container-1-mysql_down#0066B3'
'LINE1:re_zero#000000'
'CDEF:ipostotal=icec8c0bcb259b04,i687c916fe3ed4ce,ADDNAN'
'CDEF:gpostotal=gcec8c0bcb259b04,g687c916fe3ed4ce,ADDNAN'
'CDEF:apostotal=acec8c0bcb259b04,a687c916fe3ed4ce,ADDNAN'
'CDEF:inegtotal=itest-container-2-mysql_down,itest-container-1-mysql_down,ADDNAN'
'CDEF:gnegtotal=gtest-container-2-mysql_down,gtest-container-1-mysql_down,ADDNAN'
'CDEF:anegtotal=atest-container-2-mysql_down,atest-container-1-mysql_down,ADDNAN'
'LINE1:gpostotal#000000:Total network usage '
'GPRINT:gnegtotal:LAST:%7.2lf%s/\g'
'GPRINT:gpostotal:LAST:%7.2lf%s'
'GPRINT:inegtotal:MIN:%7.2lf%s/\g'
'GPRINT:ipostotal:MIN:%7.2lf%s'
'GPRINT:gnegtotal:AVERAGE:%7.2lf%s/\g'
'GPRINT:gpostotal:AVERAGE:%7.2lf%s'
'GPRINT:anegtotal:MAX:%7.2lf%s/\g'
'GPRINT:apostotal:MAX:%7.2lf%s\j'
'VRULE:1610851525#999999'
'COMMENT:Last update: Sun Jan 17 05:45:25 2021\r'
'--end'
'1610851500'
2021/01/17 05:45:47 [WARNING] Could not draw graph "/var/www/html/munin/HOSTNAME/docker_network-day.png": /var/www/html/munin/HOSTNAME/docker_network-day.png

# munin-run docker_network config
graph_title Docker containers network usage
graph_args --base 1024 -l 0
graph_vlabel bits in (-) / out (+) per ${graph_period}
graph_category virtualization
graph_info This graph shows docker container network usage.
graph_total Total network usage
test-container-1-mysql_down.label test-container-2-mysql_received
test-container-1-mysql_down.type DERIVE
test-container-1-mysql_down.graph no
test-container-1-mysql_down.cdef test-container-2-mysql_down,8,*
test-container-1-mysql_down.min 0
test-container-1-mysql_up.label test-container-2-mysql
test-container-1-mysql_up.draw LINESTACK1
test-container-1-mysql_up.type DERIVE
test-container-1-mysql_up.min 0
test-container-1-mysql_up.negative test-container-2-mysql_down
test-container-1-mysql_up.cdef test-container-2-mysql_up,8,*
test-container-1-mysql_up.info test-container-2-mysql:centos-latest, 2021-01-16T21:32:44.880062727Z
test-container-2-mysql_down.label test-container-1-mysql_received
test-container-2-mysql_down.type DERIVE
test-container-2-mysql_down.graph no
test-container-2-mysql_down.cdef test-container-1-mysql_down,8,*
test-container-2-mysql_down.min 0
test-container-2-mysql_up.label test-container-1-mysql
test-container-2-mysql_up.draw LINESTACK1
test-container-2-mysql_up.type DERIVE
test-container-2-mysql_up.min 0
test-container-2-mysql_up.negative test-container-1-mysql_down
test-container-2-mysql_up.cdef test-container-1-mysql_up,8,*
test-container-2-mysql_up.info test-container-1-mysql:centos-latest, 2021-01-16T21:33:53.763147053Z
# munin-run docker_network
test-container-1-mysql_up.value 158522357
test-container-1-mysql_down.value 307308292
test-container-1-mysql_up.extinfo test-container-2-mysql:centos-latest, 2021-01-16T21:32:44.880062727Z
test-container-2-mysql_up.value 1626
test-container-2-mysql_down.value 1863
test-container-2-mysql_up.extinfo test-container-1-mysql:centos-latest, 2021-01-16T21:33:53.763147053Z
commented

Thanks for the fix @sumpfralle