A little strange story It is an example that you can use it not only for middleware but also for this kind of usage.
blackbird xfs plugin
This plugin gets various information from / proc / fs / xfs / stat
and sends the data to the backend
read/write bytes
read statistics
transaction&log statistics
write statistics
You will be able to take such a graph
The contents of / proc / fs / xfs / stat
are like this
/proc/fs/xfs/stat
extent_alloc 237924 2165708 236223 2146331
abt 0 0 0 0
blk_map 7853715 2395617 465507 235483 252144 10725562 0
bmbt 0 0 0 0
dir 681659 330194 327757 265257
trans 4 3906407 226656
ig 0 145020 0 184316 0 138245 797142
log 15381 529947 883 14762 4527
push_ail 4798418 0 1957554 39739 0 11943 0 334634 0 3197
xstrat 223749 0
rw 3139114 9057686
attr 366943 281834 665204 2
icluster 24257 18636 375003
vnodes 4294689189 0 0 0 278107 278107 278107 0
buf 5725391 21967 5704136 1688 1294 21255 0 28943 5322
abtb2 477443 3347640 23420 23417 0 0 0 0 0 0 0 0 0 0 6300911
abtc2 924783 6545480 462393 462390 0 0 0 0 0 0 0 0 0 0 60569372
bmbt2 479 2767 24 17 0 0 0 0 0 0 0 0 0 0 8
ibt2 851476 7733093 2428 2396 0 0 22874 372 0 0 0 0 0 0 408098
qm 0 0 0 0 0 0 0 0
xpc 8782831616 8104431965 21835555278
debug 0
I think it's information that you don't usually see, but it may be useful to monitor it.
Install
Please install by referring to here
Install xfs plugin
You can either use setup.py or rpm.
git clone https://github.com/Vagrants/blackbird-xfs.git
cd blackbird-xfs
python setup.py install
yum install blackbird-xfs --enablerepo=blackbird
The config is in /etc/blackbird/conf.d/xfs.cfg
, but usually there is nothing to mess with.
ini:/etc/blackbird/conf.d/xfs.cfg
[xfs]
module = 'xfs'
The default monitoring interval is 60 seconds, but if you want to change it
ini:/etc/blackbird/conf.d/xfs.cfg
interval = 30
Please specify as
Reboot blackbird
when you're done
sudo /etc/init.d/blackbird restart
Zabbix Templates can be found in the github repository Please import to Zabbix and apply to the target server
** If the host name on Zabbix and the host name of the server on which blackbird is running are different, you need to set the hostname on /etc/blackbird/conf.d/xfs.cfg
**
Please match with Zabbix
ini:/etc/blackbird/conf.d/xfs.cfg
hostname = your_static_hostname
/ proc / fs / xfs / stat
means, but I'm not very confident.Recommended Posts