{"id":30047557,"url":"https://github.com/tmax-cloud/install-vm-exporter","last_synced_at":"2025-08-07T09:56:23.438Z","repository":{"id":54662162,"uuid":"336162637","full_name":"tmax-cloud/install-vm-exporter","owner":"tmax-cloud","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-05T04:54:34.000Z","size":15772,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T10:10:09.362Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmax-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-05T04:23:57.000Z","updated_at":"2021-02-05T04:54:18.000Z","dependencies_parsed_at":"2022-08-13T23:10:35.573Z","dependency_job_id":null,"html_url":"https://github.com/tmax-cloud/install-vm-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tmax-cloud/install-vm-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmax-cloud%2Finstall-vm-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmax-cloud%2Finstall-vm-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmax-cloud%2Finstall-vm-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmax-cloud%2Finstall-vm-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmax-cloud","download_url":"https://codeload.github.com/tmax-cloud/install-vm-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmax-cloud%2Finstall-vm-exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269236777,"owners_count":24383241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-07T09:56:19.206Z","updated_at":"2025-08-07T09:56:23.420Z","avatar_url":"https://github.com/tmax-cloud.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VM Exporter 설치 가이드\n\n## 구성 요소 및 버전\n* VM Exporter (vm-exporter:v2.0.0-3)\n\n## Prerequisites\nKubernetes, KubeVirt, Prometheus가 설치되어 있어야 합니다.\n\n## 폐쇄망 설치 가이드\n폐쇄망에서 설치를 진행해야 하는 경우에도 추가 작업은 필요하지 않습니다.\n\n## Install Steps\n1. [Linux VM 내 Exporter 설치](#step-1-linux-vm-내-exporter-설치)\n2. [Windows VM 내 Exporter 설치](#step-2-windows-vm-내-exporter-설치)\n3. [Kubernetes 설정](#step-3-kubernetes-설정)\n\n## Step 1. Linux VM 내 Exporter 설치\n* 목적 : `Linux VM의 모니터링을 위한 VM Exporter 설치 및 설정`\n* 생성 순서 :\n  * \"vm_exporter\" (binary executable) 파일 실행\n    * Process로서 실행해야 함\n    * Service 등을 통해 background process 형태로 설치하는 것을 권장\n  * Open port 9226 (TCP inbound)\n  * Memory Limit 설정 (Optional)\n    * Cgroups를 통해 Memory Limit을 25MB로 설정\n    * Example (run commands as \u003cb\u003eroot\u003c/b\u003e):\n    ```bash\n    mkdir /dev/cgroups\n    mount -t cgroup -omemory memory /dev/cgroups\n    mkdir /dev/cgroups/vm-exporter\n    echo 25000000 \u003e /dev/cgroups/vm-exporter/memory.limit_in_bytes\n    pidof vm_exporter \u003e /dev/cgroups/vm-exporter/tasks\n    ```\n* 비고 : \n  * 모니터링 하고자 하는 모든 Linux VM 내에서 실행\n\n## Step 2. Windows VM 내 Exporter 설치\n* 목적 : `Windows VM의 모니터링을 위한 VM Exporter 설치 및 설정`\n* 생성 순서 : \n  * \"vm_exporter.exe\" (binary executable) 파일 실행\n    * Process로서 실행해야 함\n    * 작업 스케줄러(Windows Task Scheduler) 등을 통해 background process 형태로 설치하는 것을 권장\n  * Open port 9226 (TCP inbound)\n* 비고 : \n  * 모니터링 하고자 하는 모든 Windows VM 내에서 실행\n\n## Step 3. Kubernetes 설정\n* 목적 : `Prometheus - VM Exporter 연동`\n* 생성 순서 : \n  * 다음 명령어를 실행하여 Service와 ServiceMonitor 생성\n  ```bash\n  kubectl create -f vm-exporter.yaml\n  ```\n    * VM이 default namespace가 아닌 다른 namespace에 존재하는 경우, VM이 있는 모든 namespace에 대해 아래 명령어 실행\n    ```bash\n    cat vm-exporter.yaml | sed \"s/default/[name of namespace]/g\" | kubectl create -f -\n    ```\n* 비고 : \n  * 모든 명령어는 Kubernetes Master Node에서 관련 permission이 있는 계정으로 실행\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmax-cloud%2Finstall-vm-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmax-cloud%2Finstall-vm-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmax-cloud%2Finstall-vm-exporter/lists"}