Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Service Mesh
- 웹 취약점
- 모의해킹
- docker
- 스크레이핑
- linkerd
- scraping
- CI/CD
- Prometheus
- eks
- gitlab ci
- opentelemetry
- 웹 해킹
- Monitoring
- Kubernetes
- DevOps
- sonarqube
- Grafana
- argocd
- ECR
- Jenkins
- CI
- Resource
- 크롤링
- CD
- Crawling
- helm
- deploy
- gitlab cd
- GitLab
Archives
- Today
- Total
ㅡ.ㅡ
[Monitoring] 도커 컨테이너(호스트) 모니터링 본문
사용 포트
Cadvisor(inbound) : 8888/TCP(Prometheus 접근 허용)
docker-compose 설치
curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null chmod +x /usr/local/bin/docker-compose ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
cadvisor 설치 시 에러 해결을 위한 링크 폴더 생성
mount -o remount,rw '/sys/fs/cgroup' ln -s /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup/cpuacct,cpu
cadvisor 설치 및 실행
cat > /home/refine/cadvisor/docker-compose.yml << EOF version: '3.2' services: cadvisor: image: gcr.io/cadvisor/cadvisor:latest container_name: cadvisor privileged: true ports: - 8888:8080 volumes: - /:/rootfs:ro - /var/run:/var/run:rw - /sys:/sys:ro - /var/lib/docker/:/var/lib/docker:ro restart: unless-stopped EOF docker-compose up -d
prometheus 등록
- job_name: 'cAdvisor' scrape_interval: 5s static_configs: - targets: ['IP:PORT']
GRAFANA DASHBOARD(11600)
'Observabillity' 카테고리의 다른 글
[K8S] Kubernetes Dashboard (0) | 2021.01.30 |
---|---|
[Monitoring] snmp_exporter(fortigate) (0) | 2021.01.23 |
[Monitoring] Grafana (0) | 2021.01.02 |
[Monitoring] WMI_exporter (0) | 2021.01.02 |
[Monitoring] Node_exporter (0) | 2021.01.02 |