{"id":15472577,"url":"https://github.com/nickromano/serverless-ping","last_synced_at":"2025-09-01T08:06:22.928Z","repository":{"id":48685324,"uuid":"117389551","full_name":"nickromano/serverless-ping","owner":"nickromano","description":"Monitoring Service using AWS Lambda","archived":false,"fork":false,"pushed_at":"2022-05-25T21:29:02.000Z","size":1231,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-22T13:54:45.640Z","etag":null,"topics":["alerting","monitoring","ping","python","serverless"],"latest_commit_sha":null,"homepage":"","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/nickromano.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-01-14T00:29:56.000Z","updated_at":"2023-06-13T14:22:03.000Z","dependencies_parsed_at":"2022-08-31T18:12:17.209Z","dependency_job_id":null,"html_url":"https://github.com/nickromano/serverless-ping","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nickromano/serverless-ping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickromano%2Fserverless-ping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickromano%2Fserverless-ping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickromano%2Fserverless-ping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickromano%2Fserverless-ping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickromano","download_url":"https://codeload.github.com/nickromano/serverless-ping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickromano%2Fserverless-ping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273093223,"owners_count":25044436,"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-09-01T02:00:09.058Z","response_time":120,"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":["alerting","monitoring","ping","python","serverless"],"created_at":"2024-10-02T02:40:20.217Z","updated_at":"2025-09-01T08:06:22.905Z","avatar_url":"https://github.com/nickromano.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Ping\n\n[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)\n[![Build Status](https://travis-ci.org/nickromano/serverless-ping.svg?branch=master)](https://travis-ci.org/nickromano/serverless-ping)\n[![Coverage Status](https://coveralls.io/repos/github/nickromano/serverless-ping/badge.svg?branch=master\u0026v2)](https://coveralls.io/github/nickromano/serverless-ping?branch=master)\n\nOnce a minute this lambda function will check to see if your endpoint is up.  If so it will send the response time to Cloudwatch.  A Cloudwatch alarm will then email you when the endpoint is down (`ALARM`) or if the lambda function stops working (`INSUFFICENT RESULTS`).\n\n`Cloudwatch Event (1 minute)` \u003e `AWS Lambda` \u003e `Cloudwatch Data` \u003e `Cloudwatch Alarm` \u003e `SNS Topic` \u003e `SNS Email Subscription`\n\nEstimated Costs: **$0.05/month** *(not including free tier)* [source](https://s3.amazonaws.com/lambda-tools/pricing-calculator.html)\n\n## Setup\n\nInstall the serverless commandline tools\n\n```\nnpm install -g serverless\n```\n\nDeploy this service to AWS (swap out parameters for your needs)\n\n```\nserverless deploy \\\n\t--ping-name=google \\\n\t--ping-host=https://google.com \\\n\t--ping-alarm-email=alertme@gmail.com\n```\n\nThat's it! 🎉\n\n### Cleanup\n\nTo remove all resources created run\n\n```\nserverless remove \\\n\t--ping-name=google \\\n\t--ping-host=https://google.com \\\n\t--ping-alarm-email=alertme@gmail.com\n```\n\n### Additional Options\n\nAlarm namespace - By default the cloudwatch data will be put under the `Serverless/Ping` namespace.  You can override it using `--ping-alarm-namespace`.\n\n```\n--ping-alarm-namespace=MyNamespace/Ping\n```\n\nException Monitoring - Any exceptions thrown in the lambda function will be logged to CloudWatch Logs.  If you would like them also sent to sentry add the DSN as another paramter to the `serverless deploy` command above.\n\n```\n--ping-sentry-dsn=https://*********:*******@sentry.io/*****\n```\n\n## Contributing\n\nInstalling dependencies.  Vendored dependencies are included in the git repo to make it easier for users to deploy this.\n\n```\npip3 install -t vendored/ -r requirements.txt --upgrade\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickromano%2Fserverless-ping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickromano%2Fserverless-ping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickromano%2Fserverless-ping/lists"}