{"id":13826686,"url":"https://github.com/ThreeDotsLabs/event-driven-example","last_synced_at":"2025-07-09T01:31:02.550Z","repository":{"id":101249587,"uuid":"171851653","full_name":"ThreeDotsLabs/event-driven-example","owner":"ThreeDotsLabs","description":"An example Event-Driven application in Go built with Watermill library. ","archived":false,"fork":false,"pushed_at":"2023-11-19T18:46:53.000Z","size":35,"stargazers_count":134,"open_issues_count":3,"forks_count":27,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-15T21:49:36.300Z","etag":null,"topics":["docker-compose","event-driven","go","golang","grafana","kafka","prometheus","rabbitmq","watermill"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThreeDotsLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-21T10:32:06.000Z","updated_at":"2024-11-09T21:21:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"d09e79f9-b679-444a-b086-0b01304188d3","html_url":"https://github.com/ThreeDotsLabs/event-driven-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeDotsLabs%2Fevent-driven-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeDotsLabs%2Fevent-driven-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeDotsLabs%2Fevent-driven-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeDotsLabs%2Fevent-driven-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThreeDotsLabs","download_url":"https://codeload.github.com/ThreeDotsLabs/event-driven-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476383,"owners_count":17480215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-compose","event-driven","go","golang","grafana","kafka","prometheus","rabbitmq","watermill"],"created_at":"2024-08-04T09:01:42.584Z","updated_at":"2024-11-20T05:30:59.032Z","avatar_url":"https://github.com/ThreeDotsLabs.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Event-Driven application example\n\nThis is an example Event-Driven application written in Go, using [Watermill](https://github.com/ThreeDotsLabs/watermill).\n\nThe projects aims to integrate incoming GitHub webhooks with Grafana and Slack, essentially adding annotations and\nsending messages when a new commit is pushed. There are also simulated deployment messages sent over RabbitMQ to\ndemonstrate working with multiple event streams.\n\n![](https://threedots.tech/media/event-driven-applications/diagram.png)\n\nAn example result can look like this: \n\n![](https://threedots.tech/media/event-driven-applications/grafana.png)\n\n![](https://threedots.tech/media/event-driven-applications/slack.png)\n\n## Running\n\nIf you'd like to integrate the example with your Slack workspace, copy `.env-example` to `.env` and fill in the\nwebhook URL in `SLACK_WEBHOOK_URL` variable.\n\nIn addition to the application, the docker-compose environment consists of:\n\n* **Kafka** and **ZooKeeper**\n* **RabbitMQ**\n* **Grafana**\n* **Prometheus**\n\nThe whole environment can be run with:\n\n```bash\ndocker-compose up\n```\n\nYou can now configure your GitHub repository to send webhooks to the application (you need to expose port `8080` to the\nexternal network first).\n\nAlternatively, you can run `./scripts/send-stub-webhook.sh` to send some stub webhooks.\n\nVisit [localhost:3000/d/webhooks](http://localhost:3000/d/webhooks) to see annotations added in Grafana. Use\n`admin:secret` as credentials.\n\n## Metrics\n\nYou can access the Watermill dashboard at [localhost:3000/d/watermill](http://localhost:3000/d/watermill). See what\nchanges when you send more webhooks over time.\n\n![](https://threedots.tech/media/event-driven-applications/metrics.png)\n\n## What's next?\n\nSee [Watermill's documentation](https://watermill.io/) to learn more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThreeDotsLabs%2Fevent-driven-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FThreeDotsLabs%2Fevent-driven-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThreeDotsLabs%2Fevent-driven-example/lists"}