{"id":20648274,"url":"https://github.com/nutanixdev/python-stats","last_synced_at":"2026-05-28T01:02:10.231Z","repository":{"id":110538948,"uuid":"351320723","full_name":"nutanixdev/python-stats","owner":"nutanixdev","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-25T05:36:10.000Z","size":93,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-04-21T12:08:15.244Z","etag":null,"topics":[],"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/nutanixdev.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":"2021-03-25T05:35:53.000Z","updated_at":"2022-09-21T14:29:32.000Z","dependencies_parsed_at":"2023-03-14T16:15:14.055Z","dependency_job_id":null,"html_url":"https://github.com/nutanixdev/python-stats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nutanixdev/python-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fpython-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fpython-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fpython-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fpython-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nutanixdev","download_url":"https://codeload.github.com/nutanixdev/python-stats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fpython-stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33589684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":"2024-11-16T17:07:28.710Z","updated_at":"2026-05-28T01:02:10.218Z","avatar_url":"https://github.com/nutanixdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nutanix Prism VM Stats\n\nThis small demo will demonstrate how to grab a list of available VM stats, then iterate over to generate a point-in-time snapshot of what a VM is doing.\n\n## Usage\n\n- Recommended Python version 3.8 or later.  Testing for this script was done with Python 3.8 on Ubuntu Linux 20.04.\n- Create and activate a virtual environment:\n\n  ```\n  python3.8 -m venv venv\n  . venv/bin/activate\n  ```\n\n- Install the script dependencies:\n\n  ```\n  pip3 install -r requirements.txt\n  ```\n\n- Rename `.env.example` to `.env`\n- Edit `.env` to match your environment requirements i.e. Prism Central and Cluster IP address \u0026 credentials\n\n  **Note:** Because this demo uses the v3 and v1 Nutanix Prism APIs, we must submit a request first to Prism Central, then to a specific cluster; the v1 API is **not** supported on Prism Central.\n\n- Edit `config.json` and set `required_metrics` to a quoted, comma-separated list of the metrics you'd like to look for; if you want to display all metrics, leave the `required_metrics` variable empty i.e. `\"\"`\n\n  **Note:** For your convenience, a list of all available VM metrics has been included in `config.json` as `available_metrics`\n\n- Run the script:\n\n  ```\n  python ./stats.py\n  ```\n\n## Additional Info\n\nBy default, this script does not require a verified SSL connection to Prism Element or Prism Central.  If you have configured Prism Element and/or Prism Central with a valid SSL certificate and require SSL certificate verification in your environment, please comment the following line:\n\n```\nurllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)\n```\n\n## Screenshot\n\n![Screenshot of Python VM stats script being run](./screenshot.png?raw=true)\n\n## Disclaimer\n\nPlease see the `.disclaimer` file that is distributed with this repository.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnutanixdev%2Fpython-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnutanixdev%2Fpython-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnutanixdev%2Fpython-stats/lists"}