Coder Social home page Coder Social logo

drubin / gitlab-honeycomb-buildevents-webhooks-sink Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zoidyzoidzoid/gitlab-honeycomb-buildevents-webhooks-sink

0.0 0.0 0.0 82 KB

GitLab Webhooks -> honeycomb.io buildevents <3

Go 98.29% Shell 1.71%

gitlab-honeycomb-buildevents-webhooks-sink's Introduction

GitLab Honeycomb Buildevents Webhooks Sink

Server to create honeycomb.io buildevents from GitLab CI pipeline and job webhooks.

If you set this up, and add the public URL with the path of /api/message, to your GitLab project, and enable sending Pipeline and Job webhooks to it, then you will soon be able to see the events for them in your Honeycomb dataset.

We support the same environment variables as buildevents, most importantly BUILDEVENT_APIKEY. They are all documented here.

Check out the buildevents project that hugely influenced this project at https://github.com/honeycombio/buildevents . Another way to solve this would be doing something like the Circle CI's API usage with the buildevents watch command.

Overview

Basic usage

Advanced usage

We use the same logic as buildevents to generate trace IDs, so if you use the buildevents CLI to instrument steps and commands in your CI pipelines, those will show up in your pipeline traces in Honeycomb too!

Example

Work in Progress example of using buildevents cmd here: https://gitlab.com/zoidyzoidzoid/sample-gitlab-project/-/blob/master/.gitlab-ci.yml

image

Details

GET /healthz: healthcheck

POST /api/message: receive webhooks

GitLab Pipeline Webhooks Documentation GitLab Job Webhooks Documentation

https://github.com/honeycombio/buildevents/blob/06856ef24981b796af33bcf03e004b9cba4cb687/common.go#L68-L77

Similar Projects

gitlab-honeycomb-buildevents-webhooks-sink's People

Contributors

zoidyzoidzoid avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.