repository
0.0.0-20210403051118-d6cef193b095
Repository: https://github.com/psyomn/cynic.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# README
Cynic 
Simple monitoring, contract and heuristic tool. Dependency free!
TODO
I plan to move this to my big monorepo, with the rest of my projects
in there called github.com/psyomn/ecophagy
, and eventually archive
this.
Usage
For detailed usage take a look at cynic/cynic.go
.
For usage of the storage dumper look at cynic-store/main.go
.
Examples
I want to:
- Run an event in 10 seconds: examples/ten_sec.go
- Run an event every 10 seconds: examples/every_ten_sec.go
- Run an event immediately, and every 10 seconds: examples/imm_ten_sec.go
- Run an event every second, and if timestamps are odd, issue alert: examples/alert.go
- Run an event and access query results in an http endpoint: examples/status_cache.go
- Run an event every 10 seconds, store in http endpoint, and take snapshots every one minute, and write it to disk every 2 minutes: examples/snapshot.go
The above should give you enough context to figure out how to do more complex things, by combining a number of configurations (as shown above).
To build, simply run: make examples