Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An example Event-Driven application in Go built with Watermill library.

License

NotificationsYou must be signed in to change notification settings

ThreeDotsLabs/event-driven-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an example Event-Driven application written in Go, usingWatermill.

The projects aims to integrate incoming GitHub webhooks with Grafana and Slack, essentially adding annotations andsending messages when a new commit is pushed. There are also simulated deployment messages sent over RabbitMQ todemonstrate working with multiple event streams.

An example result can look like this:

Running

If you'd like to integrate the example with your Slack workspace, copy.env-example to.env and fill in thewebhook URL inSLACK_WEBHOOK_URL variable.

In addition to the application, the docker-compose environment consists of:

  • Kafka andZooKeeper
  • RabbitMQ
  • Grafana
  • Prometheus

The whole environment can be run with:

docker-compose up

You can now configure your GitHub repository to send webhooks to the application (you need to expose port8080 to theexternal network first).

Alternatively, you can run./scripts/send-stub-webhook.sh to send some stub webhooks.

Visitlocalhost:3000/d/webhooks to see annotations added in Grafana. Useadmin:secret as credentials.

Metrics

You can access the Watermill dashboard atlocalhost:3000/d/watermill. See whatchanges when you send more webhooks over time.

What's next?

SeeWatermill's documentation to learn more.

About

An example Event-Driven application in Go built with Watermill library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp