Coder Social home page Coder Social logo

pfnet-research / alertmanager-to-github Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 8.0 271 KB

This receives webhook requests from Alertmanager and creates GitHub issues.

License: Apache License 2.0

Dockerfile 4.26% Makefile 4.21% Shell 3.34% Go 88.20%

alertmanager-to-github's People

Contributors

everpeace avatar github-actions[bot] avatar limess avatar ordovicia avatar ryotarai avatar shioshiota avatar superbrothers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alertmanager-to-github's Issues

Support disabling auto-closing of issues

When raising issues via Alertmanager, we don't wish to automatically close them until they've had manual intervention - this allows us to investigate one off events which then cease from.

This'd be great to add as a feature on either the alert labels individually, or just as a central config option to prevent the close functionality.

Expose prometheus metrics

It'd be useful to expose prometheus metrics around communication with the Github API, e.g 4xx/5xx errors.
That way we can alert on any issues which may prevent issues being opened.

Does this tool support configuring a proxy?

I want to use this tool to au-create the issue in my repo. but my env is private, and we provide a proxy to access the internet. so I am not sure if I can configure a proxy with this tool to call my github repo. thanks.

Support routing via labels

There's existing functionality to setup multiple receivers, using query parameters to determine the organisationa and repo.

However, as alertmanager doesn't allow templating the URL or body of webhook receivers, it'd be useful to able to route alerts dynamically based on labels set on the alert, e.g. org, repo (repo being the more useful of the two).

Issues are not propagated to github due to newlines

When testing this service we discovered a bug on Github where issues with newlines in titles do not get propagated to Slack when using the official Github Slack application (i.e. /github subscribe <org>/<repo> issues).

We've raised this with Github support, but this should be fixed in the library to prevent confusion - this is a result of the template creating a trailing newline in the issue, for example we were seeing this title in the request when using the default template:

"title":"[ALERT] alertname:TicketAlertTestV6 monitor:prometheus repo:data-platform-documentation severity:ticket system:system-monitoring \n"

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.