top
(README.md)
# Coco Fleet Unit Healthcheck

[![Circle CI](https://circleci.com/gh/Financial-Times/coco-fleet-unit-healthcheck/tree/master.png?style=shield)](https://circleci.com/gh/Financial-Times/coco-fleet-unit-healthcheck/tree/master)

Uses fleet api to look at all the units running in the cluster which are in a failed state.

## Building

```
go build -o coco-fleet-unit-healthcheck .

docker build -t coco/coco-fleet-unit-healthcheck .
```

## Running

```
docker run \
    --env FLEET_ENDPOINT=http://localhost:49153 \
    coco/coco-fleet-unit-healthcheck
```

Binary
```
ssh -D 2323 -N core@$FLEETCTL_TUNNEL
./coco-fleet-unit-healthcheck --socks-proxy="localhost:2323" -fleetEndpoint="http://localhost:49153"
```
## Command-line options
###socks-proxy
Use specified SOCKS proxy (e.g. localhost:2323).
###fleetEndpoint
Fleet API http endpoint: `http://host:port`.
###timerBasedServices
Comma-separated list of regular expressions defining services whose running status is not checked.

Imports 6 package(s) ΒΆ

  1. github.com/coreos/fleet/client
  2. github.com/coreos/fleet/schema
  3. github.com/Financial-Times/go-fthealth
  4. github.com/gorilla/mux
  5. github.com/gorilla/handlers
  6. golang.org/x/net/proxy