Articles Comments

ちからの備忘録的日記 » Archive

Munin で Varnish の見える化

Munin で Varnish の見える化

「Varnish のパフォーマンスチューニングについて」の記事で、以下の内容を監視する必要があり、監視するツールとして、Munin をご紹介しました。 キャッシュのヒット率 キャッシュされるリクエストの割合 スレッド数の推移 さっそく Munin を試してみました。 最近、ubuntu での検証作業多いので、ubuntu で試してみました。 Muninのインストール # apt-get install munin -y 以上! ubuntu 楽すぎて、死にそうですw。 Munin の設定 特になし! varnish の上記監視項目をモニタリングするのに、Munin のプラグインが必要なのですが、ubuntu のパッケージの場合、すでにパッケージが含まれていました。ちなみに、varnish 以外にどんなプラグインが入っているかをご紹介。 $ dpkg -L munin-node | grep plugins /etc/munin/plugins /usr/share/munin/plugins /usr/share/munin/plugins/amavis /usr/share/munin/plugins/apache_accesses /usr/share/munin/plugins/apache_processes /usr/share/munin/plugins/apache_volume /usr/share/munin/plugins/apc_envunit_ /usr/share/munin/plugins/bind9 /usr/share/munin/plugins/bind9_rndc /usr/share/munin/plugins/courier_mta_mailqueue /usr/share/munin/plugins/courier_mta_mailstats /usr/share/munin/plugins/courier_mta_mailvolume /usr/share/munin/plugins/cupsys_pages /usr/share/munin/plugins/df /usr/share/munin/plugins/df_inode /usr/share/munin/plugins/digitemp_ /usr/share/munin/plugins/exim_mailqueue /usr/share/munin/plugins/exim_mailstats /usr/share/munin/plugins/fail2ban /usr/share/munin/plugins/freeradius_acct /usr/share/munin/plugins/freeradius_auth /usr/share/munin/plugins/freeradius_proxy_acct /usr/share/munin/plugins/freeradius_proxy_auth /usr/share/munin/plugins/hddtemp_smartctl /usr/share/munin/plugins/http_loadtime /usr/share/munin/plugins/ifx_concurrent_sessions_ /usr/share/munin/plugins/ircu /usr/share/munin/plugins/jmx_ /usr/share/munin/plugins/loggrep /usr/share/munin/plugins/lpstat /usr/share/munin/plugins/multiping /usr/share/munin/plugins/multips /usr/share/munin/plugins/multips_memory /usr/share/munin/plugins/munin_stats /usr/share/munin/plugins/munin_update /usr/share/munin/plugins/mysql_ /usr/share/munin/plugins/mysql_bytes /usr/share/munin/plugins/mysql_innodb /usr/share/munin/plugins/mysql_isam_space_ /usr/share/munin/plugins/mysql_queries /usr/share/munin/plugins/mysql_slowqueries /usr/share/munin/plugins/mysql_threads /usr/share/munin/plugins/netstat /usr/share/munin/plugins/nginx_request /usr/share/munin/plugins/nginx_status /usr/share/munin/plugins/ntp_ /usr/share/munin/plugins/ntp_kernel_err /usr/share/munin/plugins/ntp_kernel_pll_freq /usr/share/munin/plugins/ntp_kernel_pll_off /usr/share/munin/plugins/ntp_offset /usr/share/munin/plugins/ntp_states /usr/share/munin/plugins/nvidia_ /usr/share/munin/plugins/ping_ /usr/share/munin/plugins/postfix_mailqueue /usr/share/munin/plugins/postfix_mailstats /usr/share/munin/plugins/postfix_mailvolume /usr/share/munin/plugins/postgres_bgwriter /usr/share/munin/plugins/postgres_cache_ /usr/share/munin/plugins/postgres_checkpoints /usr/share/munin/plugins/postgres_connections_ /usr/share/munin/plugins/postgres_connections_db /usr/share/munin/plugins/postgres_locks_ /usr/share/munin/plugins/postgres_querylength_ /usr/share/munin/plugins/postgres_scans_ /usr/share/munin/plugins/postgres_size_ /usr/share/munin/plugins/postgres_transactions_ /usr/share/munin/plugins/postgres_tuples_ /usr/share/munin/plugins/postgres_users /usr/share/munin/plugins/postgres_xlog /usr/share/munin/plugins/processes /usr/share/munin/plugins/proxy_plugin /usr/share/munin/plugins/ps_ /usr/share/munin/plugins/psu_ /usr/share/munin/plugins/qmailqstat /usr/share/munin/plugins/sendmail_mailqueue /usr/share/munin/plugins/sendmail_mailstats /usr/share/munin/plugins/sendmail_mailtraffic /usr/share/munin/plugins/slapd_ /usr/share/munin/plugins/slapd_bdb_cache_ /usr/share/munin/plugins/slony_lag_ /usr/share/munin/plugins/smart_ /usr/share/munin/plugins/snmp__cpuload /usr/share/munin/plugins/snmp__df /usr/share/munin/plugins/snmp__fc_if_ /usr/share/munin/plugins/snmp__fc_if_err_ /usr/share/munin/plugins/snmp__if_ /usr/share/munin/plugins/snmp__if_err_ /usr/share/munin/plugins/snmp__if_multi /usr/share/munin/plugins/snmp__load /usr/share/munin/plugins/snmp__memory /usr/share/munin/plugins/snmp__netapp_diskusage_ /usr/share/munin/plugins/snmp__netapp_inodeusage_ /usr/share/munin/plugins/snmp__netstat /usr/share/munin/plugins/snmp__print_pages /usr/share/munin/plugins/snmp__print_supplies /usr/share/munin/plugins/snmp__processes /usr/share/munin/plugins/snmp__rdp_users /usr/share/munin/plugins/snmp__sensors_fsc_bx_fan /usr/share/munin/plugins/snmp__sensors_fsc_bx_temp /usr/share/munin/plugins/snmp__sensors_fsc_fan /usr/share/munin/plugins/snmp__sensors_fsc_temp /usr/share/munin/plugins/snmp__sensors_mbm_fan /usr/share/munin/plugins/snmp__sensors_mbm_temp /usr/share/munin/plugins/snmp__sensors_mbm_volt /usr/share/munin/plugins/snmp__swap /usr/share/munin/plugins/snmp__uptime /usr/share/munin/plugins/snmp__users /usr/share/munin/plugins/snmp__winload /usr/share/munin/plugins/snmp__winmem /usr/share/munin/plugins/snort_alerts /usr/share/munin/plugins/snort_bytes_pkt /usr/share/munin/plugins/snort_drop_rate /usr/share/munin/plugins/snort_pattern_match /usr/share/munin/plugins/snort_pkts /usr/share/munin/plugins/snort_traffic /usr/share/munin/plugins/squeezebox_ /usr/share/munin/plugins/squid_cache /usr/share/munin/plugins/squid_icp /usr/share/munin/plugins/squid_objectsize /usr/share/munin/plugins/squid_requests /usr/share/munin/plugins/squid_traffic /usr/share/munin/plugins/sybase_space /usr/share/munin/plugins/tomcat_ /usr/share/munin/plugins/tomcat_access /usr/share/munin/plugins/tomcat_jvm /usr/share/munin/plugins/tomcat_threads /usr/share/munin/plugins/tomcat_volume /usr/share/munin/plugins/users /usr/share/munin/plugins/varnish_ /usr/share/munin/plugins/vmstat /usr/share/munin/plugins/zimbra_ /usr/share/munin/plugins/acpi /usr/share/munin/plugins/apt /usr/share/munin/plugins/apt_all /usr/share/munin/plugins/bonding_err_ /usr/share/munin/plugins/cps_ /usr/share/munin/plugins/buddyinfo /usr/share/munin/plugins/cpu /usr/share/munin/plugins/cpuspeed /usr/share/munin/plugins/df_abs /usr/share/munin/plugins/diskstat_ /usr/share/munin/plugins/diskstats /usr/share/munin/plugins/entropy /usr/share/munin/plugins/forks /usr/share/munin/plugins/fw_conntrack /usr/share/munin/plugins/fw_forwarded_local /usr/share/munin/plugins/fw_packets /usr/share/munin/plugins/if_ /usr/share/munin/plugins/if_err_ /usr/share/munin/plugins/interrupts /usr/share/munin/plugins/iostat /usr/share/munin/plugins/iostat_ios /usr/share/munin/plugins/ip_ /usr/share/munin/plugins/ipmi_ /usr/share/munin/plugins/irqstats /usr/share/munin/plugins/load /usr/share/munin/plugins/memory /usr/share/munin/plugins/nfs4_client /usr/share/munin/plugins/nfs_client /usr/share/munin/plugins/nfsd /usr/share/munin/plugins/nfsd4 /usr/share/munin/plugins/open_files /usr/share/munin/plugins/open_inodes /usr/share/munin/plugins/port_ /usr/share/munin/plugins/proc_pri /usr/share/munin/plugins/quota_usage_ /usr/share/munin/plugins/selinux_avcstat /usr/share/munin/plugins/sensors_ /usr/share/munin/plugins/swap /usr/share/munin/plugins/tcp /usr/share/munin/plugins/threads /usr/share/munin/plugins/uptime /usr/share/munin/plugins/vlan_ /usr/share/munin/plugins/vlan_inetuse_ /usr/share/munin/plugins/vlan_linkuse_ /usr/share/munin/plugins/vserver_cpu_ /usr/share/munin/plugins/vserver_loadavg /usr/share/munin/plugins/vserver_resources /usr/share/munin/plugins/yum Munin の確認 数分で、データが計測されますので、以下のURLで確認。 http://localhost/munin インストール直後は、計測データが収集されていないため、確認することができません。データが収集されると、以下にデータが保存されますので、下記ディレクトリにファイルが生成されてから確認してください。 /var/cache/munin/www Munin サンプル … Read entire article »

Filed under: cache