GithubHelp home page GithubHelp logo

ukhomeoffice / dq-connectivity-tester Goto Github PK

View Code? Open in Web Editor NEW
1.0 17.0 1.0 48 KB

Simple connectivity testing tool for mocking an application to put in infrastructure tests

License: MIT License

Go 21.77% Standard ML 49.06% HCL 8.89% Shell 20.27%
hodq ami mocking infrastructure docker linux

dq-connectivity-tester's Introduction

Connectivity Tester

Docker Repository on Quay GitHub issues GitHub forks GitHub stars GitHub license

Simple app written in golang that can be used to test network connectivity, useful when mocking up an infrastructure

We've packaged it in a few ways to make running it easy and quick to get going:

Usage

It is configured with environment variables for example:

CHECK_self=127.0.0.1:80
CHECK_google=google.com:80
CHECK_googletls=google.com:443
LISTEN_http=0.0.0.0:80
LISTEN_httpagain=0.0.0.0:8088

It serves http on any port you specify to listen on, which returns a simple text result of the checks. If any of the checks fail it will return a 500 so you could write some simple healthcheck thing to assert your whole.

If you use one of the AMIs then you specify this in the Instance User Data

Also if you use the AMI and add a with "Action": "cloudwatch:PutMetricData", then you should see the results reported in AWS CloudWatch

TO DO:

(Pull Requests welcome)

  • Windows AMI build - partial, work in feature/packer-ansible-windows
  • Example Kubernetes config
  • Example Terraform config
  • Mac x64 binary
  • Windows x64 binary
  • Linux x64 binary
  • Docker Image published to quay
  • CI pipeline

dq-connectivity-tester's People

Contributors

chrisns avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

uk-gov-mirror

dq-connectivity-tester's Issues

LISTEN_ff=0.0.0.0:8080 fails

Because it by defaults listens on only 127.0.0.1:8080 no matter what, if you set a global listen on the same port it fails to actually listen on anything but 127.0.0.1:8080

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.