Git Product home page Git Product logo

Comments (4)

Mohamed-Mostafa69 avatar Mohamed-Mostafa69 commented on September 2, 2024

How did you made it works

from alertmanager.

lazbord avatar lazbord commented on September 2, 2024

In Alertmanager config file, you have to group by alertname AND job, like so :

route:
  group_by: ['alertname','job']
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 1h
  receiver: 'discord_webhook'
receivers:
  - name: 'discord_webhook'
    webhook_configs:
      - url: 'https://discordapp.com/api/webhooks/1247133913369940038/discordwebhooktoken'

from alertmanager.

Mohamed-Mostafa69 avatar Mohamed-Mostafa69 commented on September 2, 2024

are you sure, bec. i did have the same config as you mentioned but didn't work for me
however the solution for me was running 1 more container for the discord integration
for more.

https://github.com/evanugarte/prometheus-monitoring-tutorial
https://github.com/benjojo/alertmanager-discord

discord-alerts:
    image: benjojo/alertmanager-discord
    container_name: discord-alerts
    restart: unless-stopped
    environment:
      DISCORD_WEBHOOK: <discord_hook>
    ports:
      - "9094:9094"

from alertmanager.

lazbord avatar lazbord commented on September 2, 2024

Honestly, since the problem was resolved, I haven't touched a single config file. Good thing if your solution works!

from alertmanager.

Related Issues (20)

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.