반응형
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
- 쿠버네티스
- httpd실행
- 초간단파이썬
- container
- 도커
- WEB
- Kubernetes
- aws #engineer
- java
- Vagrant
- variable
- DOIK
- namespace
- k8s
- ioredirection
- docker
- Strimzi
- RSS
- 컨테이너
- linux
- devops #engineer
- Engineer
- python
- 파이썬
- nginx
- multivm
- mongodb operator
- devops #jenkins
- springboot
- bash
Archives
- Today
- Total
샤인의 IT (막 적는) 메모장
[NodeExporter] node-exporter 사용 포트 변경 본문
반응형
데몬 서비스로 올라가거나 파드로 올라가는 경우
해당 실행 명령어 수정 ( --web-listen-address 플래그를 지정한다)
재시작하게 되면 Service와 Endpoint도 변경한 Port를 수정한다.
#node-exporter는 daemon으로 가동되어 해당 데몬 서비스에 설정값 변경하여 재시작
cat > /etc/systemd/system/node_exporter.service << EOF
[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target
[Service]
Environment="NODE_EXPORTER_ARGS=--web.listen-address=\":9101\""
User=user
Group=usergroup
Type=simple
ExecStart=/usr/bin/node_exporter $NODE_EXPORTER_ARGS
[Install]
WantedBy=default.target
EOF
systemctl daemon-reload && systemctl restart node_exporter
#Node-Exporter 서비스 및 엔드포인트 변경 작업
#Service
spec:
port:
- name: metric
port: 9101
protocal: TCP
targetPort: 9101
#Endpoint
subsets:
ports:
- name: metric
port: 9101
protocol: TCP반응형
'Open Source' 카테고리의 다른 글
| [Apache] WEB 설정(httpd.conf) 파일 정리 (0) | 2021.12.30 |
|---|---|
| [Nginx Ingress Controller] 서버 헤더 정보 설정 (0) | 2021.12.30 |
| [Nginx] WEB 서버 정리 (0) | 2021.12.30 |
| [EFK] Kubernetes에 올라간 ElasticSearch log4j 취약점 해결 (0) | 2021.12.30 |
Comments