4장. Performance Monitoring Suite 설치
4.1. 컬렉션 수집기/Relay 설치
다음 최소 사양을 충족하는 베어 메탈 시스템을 찾습니다.
- 4GB 메모리
- 단일 소켓 Xeon 클래스 CPU
- 500GB의 디스크 공간
- Red Hat Enterprise Linux 7을 설치합니다.
시스템이 Operational Tools 패키지에 액세스할 수 있도록 허용합니다.
시스템을 등록하고 구독하십시오.
# subscription-manager register # subscription-manager list --consumed
OpenStack 서브스크립션이 자동으로 연결되지 않은 경우 수동으로 서브스크립션을 연결하는 설명서를 참조하십시오.
처음 활성화된 리포지토리를 비활성화하고 Operational Tools에 적합한 리포지토리만 활성화합니다.
# subscription-manager repos --disable=* # subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-optional-rpms --enable=rhel-7-server-openstack-8-optools-rpms
참고기본 OpenStack 리포지토리(rhel-7-server-openstack-8-rpms)는 이 노드에서 활성화되지 않아야 합니다. 이 리포지토리에는 Operational Tools 패키지와 호환되지 않을 수 있는 특정 운영 툴 종속 항목의 최신 버전이 포함될 수 있습니다.
시스템에서 방화벽을 열어
Graphite
및Grafana
에 연결할 수 있습니다 :# firewall-cmd --zone=public --add-port=2003/tcp --permanent # firewall-cmd --zone=public --add-port=3030/tcp --permanent # firewall-cmd --reload
완료되면 다음 명령을 실행하여
Graphite
및Grafana
소프트웨어를 설치합니다.# yum install python-carbon graphite-web grafana httpd
액세스를 허용하도록
Grafana
웹 인터페이스를 구성합니다./etc/httpd/conf.d/graphite-web.conf
를 편집하고 다음과 같이Require
행을 수정합니다.... <Directory "/usr/share/graphite/"> <IfModule mod_authz_core.c> # Apache 2.4 Require all granted </IfModule> ...
-
/etc/grafana/grafana.ini
를 편집하고http_port
를3030
으로 변경합니다. Graphite
웹 뒤에 있는 데이터베이스를 동기화합니다. 다음 명령을 실행합니다. 슈퍼유저를 만들려면 메시지가 표시되면no
를 선택합니다.# sudo -u apache /usr/bin/graphite-manage syncdb --noinput
모든
Graphite
및Grafana
서비스를 시작하고 활성화합니다.# systemctl start httpd # systemctl enable httpd # systemctl start carbon-cache # systemctl enable carbon-cache # systemctl start grafana-server # systemctl enable grafana-server
Graphite
인스턴스와 통신하도록Grafana
를 구성합니다.-
http://PERFORMANCE_MONITORING_HOST:3030/
로 이동합니다.Grafana
로그인 페이지가 표시됩니다. -
시스템에 로그인할
admin/admin
의 기본 자격 증명을 입력합니다. -
로그인한 후 화면의 왼쪽 상단에 있는
Grafana
로고를 클릭한 다음 데이터 소스를 선택합니다. 페이지 상단에 새 추가 를 클릭하고 다음 세부 정보를 입력합니다.
이름
Graphite
기본
제공됨 (선택)
유형
Graphite
Url
http://localhost/
액세스
proxy
기본 인증
no (unselected)
- 마지막으로 하단의 추가 버튼을 클릭합니다.
-