ganglia监控安装部署

安装ganglia监控

yum install epel-release

主节点:

yum -y install ganglia-gmetad

yum -y install ganglia-web

所有节点:

yum -y install ganglia-gmond

 

主节点上配置:

vi /etc/ganglia/gmetad.conf

data_source "my cluster" FlinkMaster FlinkNode1 FlinkNode2

vi /etc/httpd/conf.d/ganglia.conf

<Location /ganglia>

  Order deny,allow

  Allow from all

  # Require local

  # Require ip 10.1.2.3

  # Require host example.org

</Location>

vi /etc/httpd/conf/httpd.conf

<Directory />

    #AllowOverride none

    #Require all denied

    Options FollowSymLinks

    AllowOverride None

    Order deny,allow

    allow from all

</Directory>

所有节点配置:

vi /etc/ganglia/gmond.conf

cluster {

  name = " my cluster "

  owner = "unspecified"

  latlong = "unspecified"

  url = "unspecified"

}

启动服务:

主节点:

service gmetad restart

service gmond  start

service httpd  restart

chkconfig gmetad on

chkconfig gmond on

其他节点:

service gmond  restart

chkconfig gmond on

最后通过网址访问:http://service_ip/ganglia

posted @ 2018-02-23 14:09  weidafei  阅读(145)  评论(0编辑  收藏  举报