Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m1/netcheck

Netcheck is a tool to check the availability of a group of network connections
https://github.com/m1/netcheck

monitoring network observability

Last synced: 24 days ago
JSON representation

Netcheck is a tool to check the availability of a group of network connections

Awesome Lists containing this project

README

        

# netcheck

Netcheck is a tool to check the availability of a group of network connections.

Exposes metrics for Prometheus so can be used to monitor the availability of a network and alert (via alertmanager) when
it is not available.

## Use cases

- Check if a list of networks/services are available.
- Check if an internal network can reach an external network (This was used internally to check if a kubernetes cluster
and istio mesh can readily and repeatability
reach an external network and alert when it can not).
- Check if a network is available from a specific location.
- Simple pingdom/uptime alternative.
- This is **not** intended to replace a full monitoring solution, but as part of your network availability tooling.
- This is **not** intended to be used as a load testing (ie ab, siege, wrk etc) tool.

## Usage

Suggested usage is to run this as a docker container and use the provided chart to deploy to kubernetes.

For local usage you can run the following:

```shell
./netcheck run --help
Runs the netcheck service and checks the network using the passed targets

Usage: cli run [OPTIONS]

Options:
-D, --debug
[possible values: true, false]

-t, --target
List of targets to check if a network connection is attainable

[default: external=https://one.one.one.one,https://dns.google]

--connect
Connect timeout milliseconds to be considered a failure

[default: 500]

-v, --verbose
[possible values: true, false]

-l, --log-level

--timeout
Timeout milliseconds to be considered a failure

[default: 500]

-w, --wait
Time to wait between requests in seconds

[default: 2]

--failure-threshold
Failures in a row to determine if target is failing

[default: 5]

-h, --help
Print help (see a summary with '-h')
```

Example, targetting an external network, and an internal network:

```shell
./netcheck run --target external=https://one.one.one.one,https://dns.google --target internal=http://hellosvc.test.svc.cluster.local:9111,http://hello2svc.test.svc.cluster.local:9111
```