도커 사용해서 모니터링 페이지 만들기
dockprom 이용
git clone https://github.com/stefanprodan/dockprom.git
https://github.com/stefanprodan/dockprom
stefanprodan/dockprom
Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager - stefanprodan/dockprom
github.com
Prerequisites:
Docker Engine >= 1.13
Docker Compose >= 1.11
실행 방법
cd dockprom; ADMIN_USER=admin ADMIN_PASSWORD='admin' docker-compose up -d
ADMIN_USER=admin ADMIN_PASSWORD='admin' --→ container들의 ID / PW 설정
예를 들어 grafana 접속하려면 이 내용대로 접속
설정
기본 세팅으로 진행하고 실행하고, 저는 여기서 grafana 설정을 추가했습니다.
로그인 없이 grafana로 접속되고, 관리자는 로그인하면 수정 가능하도록 설정
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_NAME=Main Org.
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
ORG_ROLE 파라미터는 Admin / Editor / Viewer 선택해서 설정
자세한 내용은 아래 링크 클릭
https://grafana.com/docs/grafana/latest/permissions/organization_roles/
Organization Roles
Organization Roles Users can be belong to one or more organizations. A user’s organization membership is tied to a role that defines what the user is allowed to do in that organization. Admin Role Can do everything scoped to the organization. For example:
grafana.com
완성된 모습
리눅스 로그 관리 - Logrotate (0) | 2020.11.03 |
---|---|
fluentd 설치 및 설정 (0) | 2020.04.07 |
fluentd 설치 (CentOS 7) (0) | 2020.01.10 |
fluentd 설정 및 도커화 (CentOS 7) (0) | 2020.01.10 |
Fleunt Bit 설치 및 세팅 (0) | 2020.01.07 |
댓글 영역