{"id":15583500,"url":"https://github.com/osiegmar/cloudwatch-mon-scripts-python","last_synced_at":"2025-04-07T19:13:53.655Z","repository":{"id":25358788,"uuid":"28786568","full_name":"osiegmar/cloudwatch-mon-scripts-python","owner":"osiegmar","description":"Linux monitoring scripts for CloudWatch","archived":false,"fork":false,"pushed_at":"2020-12-19T14:38:43.000Z","size":86,"stargazers_count":76,"open_issues_count":2,"forks_count":69,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-07T01:38:23.410Z","etag":null,"topics":["amazon-cloudwatch","boto","linux","linux-monitoring-scripts","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osiegmar.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":"2015-01-04T21:27:08.000Z","updated_at":"2022-09-04T06:14:21.000Z","dependencies_parsed_at":"2022-08-06T04:00:10.141Z","dependency_job_id":null,"html_url":"https://github.com/osiegmar/cloudwatch-mon-scripts-python","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osiegmar%2Fcloudwatch-mon-scripts-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osiegmar%2Fcloudwatch-mon-scripts-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osiegmar%2Fcloudwatch-mon-scripts-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osiegmar%2Fcloudwatch-mon-scripts-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osiegmar","download_url":"https://codeload.github.com/osiegmar/cloudwatch-mon-scripts-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713258,"owners_count":20983683,"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":["amazon-cloudwatch","boto","linux","linux-monitoring-scripts","python"],"created_at":"2024-10-02T20:08:45.984Z","updated_at":"2025-04-07T19:13:52.494Z","avatar_url":"https://github.com/osiegmar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"cloudwatch-mon-scripts-python\n=============================\n\n[![PyPI version](https://badge.fury.io/py/cloudwatchmon.svg)](https://badge.fury.io/py/cloudwatchmon)\n\nLinux monitoring scripts for the [AWS CloudWatch Service](https://aws.amazon.com/de/cloudwatch/).\n\nInitially, this project was created, because the\noriginal [AWS monitoring scripts](https://aws.amazon.com/code/8720044071969977)\nlacked support for the eu-central-1 (Frankfurt) region for about 4 months\n(2014-10-23 to 2015-02-25).\n\nNow, this project has a couple of additional features (compared to v1.1.0 of\nthe original AWS monitoring scripts):\n\n- Memory monitoring incl. buffers\n- Load monitoring (overall and per CPU core)\n- Monitoring of disk inode usage\n- Process monitoring\n- Fewer dependencies\n- Simpler installation\n\n\nRequirements\n------------\n\n- Python 2 (\u003e= 2.6) or Python 3 (\u003e= 3.3)\n- Boto \u003e= 2.33.0\n\n\nInstallation\n------------\n\nOptionally create a virtual environment and activate it. Then just run\n`pip install cloudwatchmon`. Install the scripts in `/usr/local/bin` folder.\n\nFor script usage, run:\n\n    mon-put-instance-stats.py --help\n\n\nExamples\n--------\n\nTo perform a simple test run without posting data to Amazon CloudWatch:\n\n    mon-put-instance-stats.py --mem-util --verify --verbose\n\nReport memory and disk space utilization to Amazon CloudWatch:\n\n    mon-put-instance-stats.py --mem-util --disk-space-util --disk-path=/\n\nTo get utilization statistics for the last 12 hours:\n\n    mon-get-instance-stats.py --recent-hours=12\n\n\nConfiguration\n-------------\n\nTo allow an EC2 instance to read and post metric data to Amazon CloudWatch,\nthis IAM policy is required:\n\n```json\n{\n  \"Statement\": [\n    {\n      \"Action\": [\n        \"cloudwatch:ListMetrics\",\n        \"cloudwatch:GetMetricStatistics\",\n        \"cloudwatch:PutMetricData\",\n        \"autoscaling:DescribeAutoScalingInstances\"\n      ],\n      \"Effect\": \"Allow\",\n      \"Resource\": \"*\"\n    }\n  ]\n}\n```\n\nIf the policy is configured via an IAM role that is assigned to the EC2\nserver this script runs on, you're done.\n\nOtherwise you can configure the policy for a user account and export\nthe credentials before running the script:\n\n```sh\nexport AWS_ACCESS_KEY_ID=[Your AWS Access Key ID]\nexport AWS_SECRET_ACCESS_KEY=[Your AWS Secret Access Key]\n```\n\nThird option is to create a _~/.boto_ file with this content:\n\n```\n[Credentials]\naws_access_key_id = Your AWS Access Key ID\naws_secret_access_key = Your AWS Secret Access Key\n```\n\nCopyright\n---------\n\nCopyright 2015 Oliver Siegmar\n\nBased on Perl-Version of CloudWatch Monitoring Scripts for Linux -\nCopyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosiegmar%2Fcloudwatch-mon-scripts-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosiegmar%2Fcloudwatch-mon-scripts-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosiegmar%2Fcloudwatch-mon-scripts-python/lists"}