{"id":20432454,"url":"https://github.com/mlabouardy/mon-put-instance-data","last_synced_at":"2025-04-12T20:52:37.715Z","repository":{"id":57505134,"uuid":"126374928","full_name":"mlabouardy/mon-put-instance-data","owner":"mlabouardy","description":"Publish Custom CloudWatch Metrics 📈","archived":false,"fork":false,"pushed_at":"2018-09-02T10:15:57.000Z","size":1226,"stargazers_count":20,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T20:52:31.913Z","etag":null,"topics":["aws","cloudwatch","docker","golang","metrics","monitoring","system"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mlabouardy.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}},"created_at":"2018-03-22T17:54:20.000Z","updated_at":"2023-06-04T06:25:56.000Z","dependencies_parsed_at":"2022-09-19T11:12:34.775Z","dependency_job_id":null,"html_url":"https://github.com/mlabouardy/mon-put-instance-data","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabouardy%2Fmon-put-instance-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabouardy%2Fmon-put-instance-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabouardy%2Fmon-put-instance-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabouardy%2Fmon-put-instance-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlabouardy","download_url":"https://codeload.github.com/mlabouardy/mon-put-instance-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631728,"owners_count":21136560,"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":["aws","cloudwatch","docker","golang","metrics","monitoring","system"],"created_at":"2024-11-15T08:15:16.263Z","updated_at":"2025-04-12T20:52:37.688Z","avatar_url":"https://github.com/mlabouardy.png","language":"Go","readme":"[![Docker Stars](https://img.shields.io/docker/pulls/mlabouardy/mon-put-instance-data.svg)](https://hub.docker.com/r/mlabouardy/mon-put-instance-data/) \n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) [![Docker Stars](https://img.shields.io/github/issues/mlabouardy/mon-put-instance-data.svg)](https://github.com/mlabouardy/mon-put-instance-data/issues)  \n\n## Download\n\nBelow are the available downloads for the latest version of CLI (1.0.0). Please download the proper package for your operating system and architecture.\n\n### Linux:\n\n```\nwget https://s3.us-east-1.amazonaws.com/mon-put-instance-data/1.0.0/linux/mon-put-instance-data\n```\n\n### Windows:\n\n```\nwget https://s3.us-east-1.amazonaws.com/mon-put-instance-data/1.0.0/windows/mon-put-instance-data\n```\n\n## How to use\n\n* Setup an IAM Policy:\n\n```\n{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Sid\": \"1\",\n            \"Effect\": \"Allow\",\n            \"Action\": \"cloudwatch:PutMetricData\",\n            \"Resource\": \"*\"\n        }\n    ]\n}\n```\n\n* Start metrics collector:\n\n```\nmon-put-instance-data --memory --swap --disk --network --docker --duration 1\n```\n\n## Docker\n\nUse the official Docker image:\n\n```\ndocker run -d -e AWS_INSTANCE_ID=\"\" -e AWS_ACCESS_KEY_ID=\"\" -e AWS_SECRET_ACCESS_KEY=\"\" --name collector mlabouardy/mon-put-instance-data --memory --swap --interval 1\n```\n\nIf you omit the `AWS_INSTANCE_ID` it'll get the instance id from `http://169.254.169.254/latest/meta-data/instance-id`\n\n## Metrics\n\n* Memory\n    * Memory Utilization (%)\n    * Memory Used (Mb)\n    * Memory Available (Mb)\n* Swap\n    * Swap Utilization (%)\n    * Swap Used (Mb)\n* Disk\n    * Disk Space Utilization (%)\n    * Disk Space Used (Gb)\n    * Disk Space Available (Gb)\n* Network\n    * Bytes In/Out\n    * Packets In/Out\n    * Errors In/Out\n* Docker\n    * Memory Utilization per Container\n    * CPU User/System per Container\n\n## Supported AMI\n\n* Amazon Linux\n* Amazon Linux 2\n* Ubuntu 16.04\n* Microsoft Windows Server\n\n## Tutorial\n\n* [Publish Custom Metrics to AWS CloudWatch](http://www.blog.labouardy.com/publish-custom-metrics-aws-cloudwatch/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlabouardy%2Fmon-put-instance-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlabouardy%2Fmon-put-instance-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlabouardy%2Fmon-put-instance-data/lists"}