Code Monkey home page Code Monkey logo

Comments (10)

benjojo avatar benjojo commented on June 6, 2024

from alertmanager-discord.

sfoxdev avatar sfoxdev commented on June 6, 2024

Here is config file

global:
  resolve_timeout: 1m

route:
  group_wait: 10s
  group_interval: 1m
  repeat_interval: 30m
  receiver: 'discord'

receivers:
  - name: 'discord'
    webhook_configs:
    - url: 'http://localhost:9094'

from alertmanager-discord.

benjojo avatar benjojo commented on June 6, 2024

Do you have health/readiness checks enabled for the container by any chance? It might be having issues with those.

from alertmanager-discord.

sfoxdev avatar sfoxdev commented on June 6, 2024

No, I tried to run using simple docker-compose and Docker Swarm, result the same.

from alertmanager-discord.

benjojo avatar benjojo commented on June 6, 2024

@sfoxdev Please pull :latest and reproduce the issue, then report back the output?

from alertmanager-discord.

benjojo avatar benjojo commented on June 6, 2024

@sfoxdev have you had a moment to try this?

from alertmanager-discord.

sfoxdev avatar sfoxdev commented on June 6, 2024

@benjojo I updated container to latest and on alert in logs I getting such message, but doesn't receive alert in Discord.

2021/02/27 21:17:37 alertmanager-discord:9094 - [POST]
2021/02/27 21:17:37 Failed to unpack inbound alert request - [{"labels":{"alertname":"messaging_srv","container_label_com_docker_swarm_service_name":"messaging_srv","monitor":"exporter-metrics","server":"MESSAGING","severity":"critical"},"annotations":{"description":"Messaging SRV container is down for more than 10 seconds.","summary":"MESSAGING: API down"},"startsAt":"2021-02-27T21:02:22.036737213Z","endsAt":"2021-02-27T21:02:37.036737213Z","generatorURL":"http://65f20cc80261:9090/graph?g0.expr=absent%28container_memory_usage_bytes%7Bcontainer_label_com_docker_swarm_service_name%3D%22messaging_srv%22%2Cserver%3D%22MESSAGING%22%7D%29\u0026g0.tab=1"}]

from alertmanager-discord.

benjojo avatar benjojo commented on June 6, 2024

Interesting, Your alertmanager is ending them as an array of webhooks rather than a singular, Must be a new thing, let me investigate

from alertmanager-discord.

benjojo avatar benjojo commented on June 6, 2024

Nope. You have misconfigured this, You need alertmanager as well as alertmanager-discord.

The dataflow should be:

Prometheus -> Alertmanager -> Alertmanager-discord

You have:

Prometheus -> Alertmanager-discord

I'll build in protection for this now, since it keeps happening

from alertmanager-discord.

benjojo avatar benjojo commented on June 6, 2024

When this happens now, This following will appear:
image

from alertmanager-discord.

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.