Skip to content

Simple Docker image for periodically performing a GET against a URL

License

Notifications You must be signed in to change notification settings

as6o/url_heartbeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-heartbeat

This is a simple container that will perform a GET call against a URL and log the response code. It is intended to be used with services that require a heartbeat such as Uptime Robot, etc.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

In order to run this container you'll need docker installed.

Usage

Call https://example.com every 2 minutes with a 5 second timeout:

docker run as6o/url-heartbeat:latest -e URL=https://example.com -e PERIOD=120 -e TIMEOUT=5

Environment Variables

  • URL - The URL that will be called via GET (default: )
  • PERIOD - The period in seconds between calls (default: 60)
  • TIMEOUT - The timeout in seconds for the call (default: 2.0)

Logging

Messages are sent to stdout and errors are sent to stderr.

Find Us

Authors

  • Aaron Siri - Initial work - as6o

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

Simple Docker image for periodically performing a GET against a URL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published