{"id":18936029,"url":"https://github.com/ivoronin/vsphere-filesd","last_synced_at":"2026-03-21T00:30:19.170Z","repository":{"id":147691265,"uuid":"264275795","full_name":"ivoronin/vsphere-filesd","owner":"ivoronin","description":"Prometheus file discovery service for VMware vSphere virtual machines","archived":false,"fork":false,"pushed_at":"2020-05-17T18:17:05.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T21:21:50.768Z","etag":null,"topics":["esxi","monitoring","prometheus","vcenter","vmware","vsphere"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/ivoronin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-15T19:01:46.000Z","updated_at":"2024-07-31T20:28:50.000Z","dependencies_parsed_at":"2023-06-27T16:17:45.352Z","dependency_job_id":null,"html_url":"https://github.com/ivoronin/vsphere-filesd","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivoronin%2Fvsphere-filesd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivoronin%2Fvsphere-filesd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivoronin%2Fvsphere-filesd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivoronin%2Fvsphere-filesd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivoronin","download_url":"https://codeload.github.com/ivoronin/vsphere-filesd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239937620,"owners_count":19721481,"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","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":["esxi","monitoring","prometheus","vcenter","vmware","vsphere"],"created_at":"2024-11-08T12:05:27.985Z","updated_at":"2026-03-21T00:30:19.110Z","avatar_url":"https://github.com/ivoronin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vsphere-filesd\nPrometheus file discovery service for VMware vSphere VMs\n\nTested with VMware vCenter 7.0\n\n## Docker\nA Docker container for vsphere-filesd is available from Docker Hub\n```shell\ndocker run -d --name vsphere-filesd \\\n  -e VSPHERE_HOST=vcenter01 \\\n  -e VSPHERE_USER=Administrator@vsphere.local \\\n  -e VSPHERE_PASSWORD=\u003cpassword\u003e \\\n  -e VSPHERE_IGNORE_SSL=1 \\ # default is 0\n  -e DISCOVERY_INTERVAL=600 \\ # default is 300\n  -e INCLUDE_TAGS=\"role:db role:app\" \\ # \"category:tag ...\", by default all vms are included in the output\n  -e OUTPUT_FILENAME=/data/vsphere.json \\ # default is /etc/prometheus/vsphere.json\n  -v /etc/prometheus:/data \\\n  ivoronin/vsphere-filesd:latest\n``` \n\n## Example Prometheus config\n```yaml\nscrape_configs:\n  #\n  # https://github.com/prometheus/node_exporter\n  #\n  - job_name: 'vshere_node'\n    file_sd_configs:\n      - files:\n          - /etc/prometheus/vsphere.json\n    relabel_configs:\n      - source_labels: [guest_family]\n        regex: \"LINUX\"\n        action: keep\n      - source_labels: [__address__]\n        target_label: instance\n      - source_labels: [guest_ip_address]\n        target_label:  __address__\n        replacement:   '${1}:9100'\n    #\n    # https://github.com/martinlindhe/wmi_exporter\n    #\n  - job_name: 'vshere_wmi'\n    file_sd_configs:\n      - files:\n          - /etc/prometheus/vsphere.json\n    relabel_configs:\n      - source_labels: [guest_family]\n        regex: \"WINDOWS\"\n        action: keep\n      - source_labels: [__address__]\n        target_label: instance\n      - source_labels: [guest_ip_address]\n        target_label:  __address__\n        replacement:   '${1}:9182'\n  - job_name: 'vsphere_icmp'\n    metrics_path: /probe\n    params:\n      module: [icmp]\n    file_sd_configs:\n      - files:\n          - /etc/prometheus/vsphere.json\n    relabel_configs:\n      - source_labels: [guest_ip_address]\n        target_label: __param_target\n      - source_labels: [__address__]\n        target_label: instance\n      - target_label: __address__\n        replacement: 'blackbox-exporter:9115'\n```\n\n## Example output\n```json\n[\n    {\n        \"labels\": {\n            \"guest_family\": \"LINUX\",\n            \"guest_host_name\": \"db01\",\n            \"guest_ip_address\": \"10.0.1.66\",\n            \"guest_name\": \"UBUNTU_64\",\n            \"id\": \"vm-6829\",\n            \"tags\": \"role:db,backup:daily\"\n        },\n        \"targets\": [\n            \"db01\"\n        ]\n    },\n    {\n        \"labels\": {\n            \"guest_family\": \"WINDOWS\",\n            \"guest_host_name\": \"app01\",\n            \"guest_ip_address\": \"10.0.1.68\",\n            \"guest_name\": \"WINDOWS_9_SERVER_64\",\n            \"id\": \"vm-7502\",\n            \"tags\": \"role:app\"\n        },\n        \"targets\": [\n            \"app01\"\n        ]\n    }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivoronin%2Fvsphere-filesd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivoronin%2Fvsphere-filesd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivoronin%2Fvsphere-filesd/lists"}