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 |
Tags
- Jenkins
- Kubernetes
- CI
- opentelemetry
- GitLab
- 모의해킹
- Prometheus
- 스크레이핑
- linkerd
- gitlab cd
- gitlab ci
- Crawling
- Grafana
- helm
- Resource
- Service Mesh
- deploy
- ECR
- sonarqube
- scraping
- 웹 해킹
- CI/CD
- docker
- CD
- Monitoring
- 웹 취약점
- DevOps
- 크롤링
- eks
- argocd
Archives
- Today
- Total
ㅡ.ㅡ
[Monitoring] Node_exporter 본문
node_exporter
리눅스 노드의 리소스를 제공해주는 툴이다.
node_exporter(Inbound) : 9100/TCP (Prometheus 접근 허용)
설치
wget https://github.com/prometheus/node_exporter/releases/download/v1.0.1/node_exporter-1.0.1.linux-amd64.tar.gz tar xvfz node_exporter-1.0.1.linux-amd64.tar.gz cd node_exporter-1.0.1.linux-amd64 mv node_exporter /usr/bin/
서비스 등록
vi /usr/lib/systemd/system/node_exporter.service # -*- mode: conf -*- [Unit] Description=Prometheus exporter for machine metrics, written in Go with pluggable metric collectors. Documentation=https://github.com/prometheus/node_exporter After=network.target [Service] User=root Group=root Type=simple ExecStart=/usr/bin/node_exporter Restart=on-failure RestartSec=5s
재 시작
systemctl daemon-reload systemctl start node_exporter systemctl enable node_exporter
노드 익스포터 등록
sudo vi /etc/prometheus/prometheus.yml - job_name: mynode static_configs: - targets: ['localhost:9100','<ip>:<9100>']
아래 이미지와 같이 http endpoint(ip:9100/metrics)를 통해 메트릭 정보를 제공하는 모습을 확인할 수 있으며 프로메테우스 타겟에도 등록되어 메트릭정보를 수집하고 있는 것을 확인할 수 있다.
'Observabillity' 카테고리의 다른 글
[Monitoring] snmp_exporter(fortigate) (0) | 2021.01.23 |
---|---|
[Monitoring] 도커 컨테이너(호스트) 모니터링 (0) | 2021.01.23 |
[Monitoring] Grafana (0) | 2021.01.02 |
[Monitoring] WMI_exporter (0) | 2021.01.02 |
[Monitoring] Prometheus (0) | 2021.01.02 |