{"id":27125445,"url":"https://github.com/dubit/cloud-watch-mon-cron","last_synced_at":"2025-08-31T10:42:42.058Z","repository":{"id":73194291,"uuid":"157867485","full_name":"dubit/cloud-watch-mon-cron","owner":"dubit","description":"Amazon's Cloud Watch monitoring scripts for ec2 as a cron task in a container.","archived":false,"fork":false,"pushed_at":"2018-11-18T23:09:20.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-03T23:37:14.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/dubit.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-11-16T12:54:38.000Z","updated_at":"2018-11-18T23:09:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"45fa5d22-7ecd-4c4a-8366-fc09dc3b9de0","html_url":"https://github.com/dubit/cloud-watch-mon-cron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dubit/cloud-watch-mon-cron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubit%2Fcloud-watch-mon-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubit%2Fcloud-watch-mon-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubit%2Fcloud-watch-mon-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubit%2Fcloud-watch-mon-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dubit","download_url":"https://codeload.github.com/dubit/cloud-watch-mon-cron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubit%2Fcloud-watch-mon-cron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272971422,"owners_count":25024093,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"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":"2025-04-07T14:53:20.050Z","updated_at":"2025-08-31T10:42:42.043Z","avatar_url":"https://github.com/dubit.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud Watch Monitor Script Docker image\n### `dubit/cloud-watch-mon-cron`\n\nAmazon's Cloud Watch monitoring scripts as a cron task in a container.\n\nThis image wraps [Amazon's cloud watch monitoring scripts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html) and runs the put instance data script on a schedule using cron.\n\nThis means the scripts can be deployed into your container ecosystem in a consistent way, without having to configure the hosts just to get hard disk and memory metrics.\n\nThe version of the monitoring scripts is `1.2.2`\n\n## How to use the image:\n\nThis image needs an IAM user with valid permissions in order to run, by default the cron task will run every 5 minutes\nand will send the following metrics:\n\n- Memory utilized in percentages\n- Disk space utilized in percentages\n\n\u003e `docker run dubit/cloud-watch-mon-cron -e AWS_ACCESS_KEY='xxxxxxxx' -e AWS_SECRET_KEY='xxxxxxx'`\n\nAWS credentials can also be specified in a file, which will need voluming in (note this is due to how the script works not the image, see Amazon's help page for more info)\n\n**awscreds.conf**\n\n```\n    AWSAccessKeyId = my-access-key-id\n    AWSSecretKey = my-secret-access-key\n```\n\n\u003e `docker run dubit/cloud-watch-mon-cron -v 'awscreds.conf:/opt/scripts/awscreds.conf'`\n\n### Changing the CRON schedule\n\nThe cron schedule can be changed using the env var `CRON_SCHEDULE` this value is substitued into the crontab file when the container is booted. The default is every 5 minutes\n\nFor example to run the script once a day:\n\u003e `docker run dubit/cloud-watch-mon-cron -e CRON_SCHEDULE='0 0 * * *' -e AWS_SEC...`\n\n### Script arguments\n\nAmazon's perl scripts can be configured with command line arguments, for ease of use the default arguments run with the `mon-put-instance-data.pl` script are `--mem-util --disk-space-util --disk-path=/`\n\nThe arguments can be overriden by specifiying them in the `MONITOR_ARGUMENTS` env var.\n\nFor example to test what the script will output from the mem util, with increased verbosity:\n\u003e `docker run dubit/cloud-watch-mon-cron -e MONITOR_ARGUMENTS='--mem-util --verify --verbose' -e AWS_SEC...`\n\n## Link to DockerHub:\n\nYou can find this image on Dubit's Docker Hub: \u003chttps://hub.docker.com/r/dubit/cloud-watch-mon-cron/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubit%2Fcloud-watch-mon-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdubit%2Fcloud-watch-mon-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubit%2Fcloud-watch-mon-cron/lists"}