Grafana Prometheus Nginx Часть1
# vi /etc/yum.repos.d/grafana.repo [grafana] name=grafana baseurl=https://packages.grafana.com/enterprise/rpm repo_gpgcheck=1 enabled=1 gpgcheck=1 gpgkey=https://packages.grafana.com/gpg.key sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt # yum install grafana-enterprise -y yum install -y yum-utils yum-config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo yum repolist -v yum -y install docker-ce docker-ce-cli containerd.io --allowerasing RHEL # yum install -y git make gcc autoconf wget pcre-devel zlib-devel # cd /usr/local/src/ # nginx -v nginx version: nginx/1.14.1 # wget http://nginx.org/download/nginx-1.14.1.tar.gz # git clone git://github.com/vozlt/nginx-module-vts.git # tar xvfz nginx-1.14.1.tar.gz # cd ./nginx-1.14.1 # ./configure --with-compat --add-dynamic-module=../nginx-module-vts/ # make modules # cp objs/ngx_http_vhost_traffic_status_module.so /usr/share/nginx/modules/ # vi /etc/nginx/nginx.conf (сверху) load_module modules/ngx_http_vhost_traffic_status_module.so; ---------------------------------------------------------------------------------------------------------- Ubuntu apt install git make gcc autoconf wget libpcre3-dev libpcre++-dev zlib1g-dev libxml2-dev libxslt-dev libgd-dev libgeoip-dev -y http { vhost_traffic_status_zone; ... location /status { vhost_traffic_status on; vhost_traffic_status_display; vhost_traffic_status_display_format html; }
# vi /etc/yum.repos.d/grafana.repo [grafana] name=grafana baseurl=https://packages.grafana.com/enterprise/rpm repo_gpgcheck=1 enabled=1 gpgcheck=1 gpgkey=https://packages.grafana.com/gpg.key sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt # yum install grafana-enterprise -y yum install -y yum-utils yum-config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo yum repolist -v yum -y install docker-ce docker-ce-cli containerd.io --allowerasing RHEL # yum install -y git make gcc autoconf wget pcre-devel zlib-devel # cd /usr/local/src/ # nginx -v nginx version: nginx/1.14.1 # wget http://nginx.org/download/nginx-1.14.1.tar.gz # git clone git://github.com/vozlt/nginx-module-vts.git # tar xvfz nginx-1.14.1.tar.gz # cd ./nginx-1.14.1 # ./configure --with-compat --add-dynamic-module=../nginx-module-vts/ # make modules # cp objs/ngx_http_vhost_traffic_status_module.so /usr/share/nginx/modules/ # vi /etc/nginx/nginx.conf (сверху) load_module modules/ngx_http_vhost_traffic_status_module.so; ---------------------------------------------------------------------------------------------------------- Ubuntu apt install git make gcc autoconf wget libpcre3-dev libpcre++-dev zlib1g-dev libxml2-dev libxslt-dev libgd-dev libgeoip-dev -y http { vhost_traffic_status_zone; ... location /status { vhost_traffic_status on; vhost_traffic_status_display; vhost_traffic_status_display_format html; }
