Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orcaman/go-watch-dog
a watch dog for latency, status code, bigquery, aws deployhash and more
https://github.com/orcaman/go-watch-dog
Last synced: about 1 month ago
JSON representation
a watch dog for latency, status code, bigquery, aws deployhash and more
- Host: GitHub
- URL: https://github.com/orcaman/go-watch-dog
- Owner: orcaman
- License: mit
- Created: 2016-05-31T08:54:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-31T09:00:30.000Z (over 8 years ago)
- Last Synced: 2024-10-20T17:35:04.932Z (3 months ago)
- Language: Go
- Size: 3.11 MB
- Stars: 3
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# go-watch-dog
Get notifications according to configurable conditions.
## Default configuration
Login to dashboard with basic authUsername: admin
Password: admin
(You should [change](http://www.htaccesstools.com/articles/htpasswd/) it in the .htpasswd file before deployment to prod)1. You have to use your [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#overview) json
2. You have to set environment variable for bigquery/gcs :
```
set WATCHDOG_BQPROJECT=
set WATCHDOG_DATASET=
```## supported test types
http checks:
- latency
- statuscode
- changedeploy checks:
- deployhash (check that under the given instance group all hashes are the same)
- gcedeployhash (same as above but for GCE)
- minInstanceCount (check that under the given instance group there are at least the given number of instances)bigquery:
- bqCount (runs a query in bq and checks if count is greater than result)## deployhash, minInstanceCount
These type of checks require credentials to AWS. These are normally stored at ~/.aws/credentials.## TODO
support the following test types:
- gcsMaxFiles
- commitShaAdd stuff:
- Connect to DB, store every result to generate uptime stats
- Expose API to get status per check## Example configuration
see watchdog.config file
## License
MIT (see [LICENSE](https://github.com/streamrail/go-watch-dog/blob/master/LICENSE.txt) file)