{"id":26299224,"url":"https://github.com/trackit/cloudwatch-instance-count-metrics","last_synced_at":"2026-04-25T11:33:21.485Z","repository":{"id":89793023,"uuid":"120795401","full_name":"trackit/cloudwatch-instance-count-metrics","owner":"trackit","description":"Generates AWS CloudWatch metrics for on-demand and reserved EC2 instance counts.","archived":false,"fork":false,"pushed_at":"2018-02-08T17:43:34.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-11T02:02:06.729Z","etag":null,"topics":["aws-cloudformation","aws-ec2","aws-lambda","cloudwatch","cloudwatch-metrics","ec2","ec2-instance","metrics","metrics-gathering","terraform"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trackit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2018-02-08T17:41:37.000Z","updated_at":"2023-02-15T12:08:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c78331d-f9d3-4d67-8685-09a86f555ed2","html_url":"https://github.com/trackit/cloudwatch-instance-count-metrics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trackit/cloudwatch-instance-count-metrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackit%2Fcloudwatch-instance-count-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackit%2Fcloudwatch-instance-count-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackit%2Fcloudwatch-instance-count-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackit%2Fcloudwatch-instance-count-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trackit","download_url":"https://codeload.github.com/trackit/cloudwatch-instance-count-metrics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackit%2Fcloudwatch-instance-count-metrics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32261115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aws-cloudformation","aws-ec2","aws-lambda","cloudwatch","cloudwatch-metrics","ec2","ec2-instance","metrics","metrics-gathering","terraform"],"created_at":"2025-03-15T06:47:49.889Z","updated_at":"2026-04-25T11:33:21.480Z","avatar_url":"https://github.com/trackit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EC2 Instance count metrics producer\n\nThis repository contains the Terraform configuration and Python code for a\nlambda function which periodically reads the list of all instances and that of\nall reserved instances to produce useful CloudWatch metrics:\n\n* On-demand instance count per type, AZ, tenancy and platform;\n* Reserved instance count per type, AZ, tenancy and platform;\n* Count of on-demand instances benefitting from instance reservations\n  (estimation) per type, AZ, tenancy and platform;\n* Count of reserved instances match by no on-demand instances per type, AZ,\n  tenancy and platform;\n\n## Deployment\n\n### Requirements\n\nIn order to deploy this you need to have AWS credentials configured using any\nof the standard ways supported by the AWS SDKs, and you need to have an up to\ndate version of Terraform installed.\n\n### Process\n\n1. Edit `provider.tf` to set the region you want the metrics to be generated in.\n2. Run `terraform init`\n3. Run `terraform apply`\n4. Metrics should appear soon in CloudWatch under the “Trackit” namespace.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrackit%2Fcloudwatch-instance-count-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrackit%2Fcloudwatch-instance-count-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrackit%2Fcloudwatch-instance-count-metrics/lists"}