Alert routing and filtering service
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
cmd
docs
plugins
testdata
util
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
alert.go
alert_test.go
config.go
config_test.go
dispatch.go
dispatch_test.go
doc.go
filter.go
filter_test.go
kkok.go
kkok_test.go
otto.go
otto_test.go
params.go
params_test.go
server.go
server_test.go
source.go
transport.go
version.go

README.md

GitHub release GoDoc Build Status Go Report Card License

kkok (taken from Japanese word 警告 - keikoku -, in English alert) is a service to process alerts nicely. It gathers alerts from miscellaneous sources, applies filters to edit or route them, then sends the processed alerts via email, SMS (Twilio), Slack, etc.

Architecture

kkok sends alerts through these steps:

  1. Generate alerts from sources.
  2. Collect and pool alerts for some duration.
  3. Edit/route collected alerts by filters.
  4. Send alerts along with the given routes.

Please read Architecture.md for more details.

Features

  • Generators:

    • HTTP REST API.
    • maildir: generate alerts from mails in a Maildir directory.
  • Filters:

    • freq: calculate and add frequency information to alerts.
    • discard: discard alerts based on the given conditions.
    • group: merge alerts into groups by field values.
    • route: add or replace routes to alert receivers.
    • edit: edit alerts by JavaScript.
    • exec: invoke an external command to edit alerts.
  • Transports:

    • email: format and send alerts via email.
    • slack: format and send alerts to a Slack channel.
    • twilio: format and send SMS via Twilio.
    • exec: invoke an external command to send alerts.

Build

Use Go 1.7 or better.

Run the command below exactly as shown, including the ellipsis. They are significant - see go help packages.

go get -u github.com/cybozu-go/kkok/...

Usage

Read Usage.md and API.md.

License

MIT

Authors & Contributors