Code Monkey home page Code Monkey logo

Comments (11)

benjojo avatar benjojo commented on June 6, 2024

Did it used to work? Or is this a new install?

from alertmanager-discord.

Lusitaniae avatar Lusitaniae commented on June 6, 2024

First time!

Now I'm thinking it could be because I'm using VictoriaMetrics VMAlert (instead of Alertmanager).

They're similar, but could have a few differences in which case no issue at all, i'm checking now

from alertmanager-discord.

benjojo avatar benjojo commented on June 6, 2024

Ah! Critical detail left out ;)

If possible, can you tcpdump (or obtain otherwise) what VictoriaMetrics VMAlert sends to the alertmanager-discord port?

from alertmanager-discord.

Lusitaniae avatar Lusitaniae commented on June 6, 2024

new setup for me, that's why didn't come up at first

I'll update the issue if i find something

from alertmanager-discord.

benjojo avatar benjojo commented on June 6, 2024

If you could give me the payload that VictoriaMetrics VMAlert sends to the alertmanager-discord port I could help you debug this faster :)

from alertmanager-discord.

Lusitaniae avatar Lusitaniae commented on June 6, 2024

Sorry for the delay,

Very appreciated for looking into this, more than needed or expected really :)

I could continue to investigate on my own and do PR if required or update the issue with findings

{"receiver":"discord-notifications","status":"firing","alerts":[{"status":"firing","labels":{"alertgroup":"group","alertname":"TXTransactionRetryCount","cluster":"name","host_id":"c3KHnL2CKGNb","instance":"11.11.11.11","job":"job","severity":"warning"},"annotations":{"description":"The transaction retries on  is \u003e 50 VALUE = 366 LABELS = map[alertgroup:group cluster:name host_id:c3KHnL2CKGNb instance:11.11.11.11 job:job severity:warning]","summary":"The transaction retry count on 11.11.11.11 is \u003e 50"},"startsAt":"2021-12-01T14:59:47.31714679Z","endsAt":"0001-01-01T00:00:00Z","generatorURL":"http://mon-vmagent1:8880/api/v1/11111111111/11111111111/status","fingerprint":"7af988f4f8f41fc2"},{"status":"firing","labels":{"alertgroup":"group","alertname":"TXTransactionRetryCount","cluster":"name","host_id":"c3KHnL2CKGNb","instance":"12.12.12.12","job":"job","severity":"warning"},"annotations":{"description":"The transaction retries on  is \u003e 50 VALUE = 54 LABELS = map[alertgroup:group cluster:name host_id:c3KHnL2CKGNb instance:12.12.12.12 job:job severity:warning]","summary":"The transaction retry count on 12.12.12.12 is \u003e 50"},"startsAt":"2021-12-01T14:50:47.315453252Z","endsAt":"0001-01-01T00:00:00Z","generatorURL":"http://mon-vmagent1:8880/api/v1/11111111111/11111111111/status","fingerprint":"393db6f774944035"},{"status":"firing","labels":{"alertgroup":"group","alertname":"TXTransactionRetryCount","cluster":"name","host_id":"c3KHnL2CKGNb","instance":"13.13.13.13","job":"job","severity":"warning"},"annotations":{"description":"The transaction retries on  is \u003e 50 VALUE = 101 LABELS = map[alertgroup:group cluster:name host_id:c3KHnL2CKGNb instance:13.13.13.13 job:job severity:warning]","summary":"The transaction retry count on 13.13.13.13 is \u003e 50"},"startsAt":"2021-12-01T13:53:47.313901255Z","endsAt":"0001-01-01T00:00:00Z","generatorURL":"http://mon-vmagent1:8880/api/v1/11111111111/11111111111/status","fingerprint":"4025294f01958ee9"}],"groupLabels":{"alertname":"TXTransactionRetryCount","cluster":"name"},"commonLabels":{"alertgroup":"group","alertname":"TXTransactionRetryCount","cluster":"name","job":"job","severity":"warning"},"commonAnnotations":{},"externalURL":"http://localhost:9093","version":"4","groupKey":"{}/{severity=\"warning\"}:{alertname=\"TXTransactionRetryCount\", cluster=\"name\"}","truncatedAlerts":0}

I replaced some values for "privacy"

from alertmanager-discord.

benjojo avatar benjojo commented on June 6, 2024

That's interesting, this fires on my system no worries.

image

from alertmanager-discord.

benjojo avatar benjojo commented on June 6, 2024

I just rebuild this from source, and replayed that payload. and it worked as well.

Are there any error messages from the program on your side? I can't see why this can't work

from alertmanager-discord.

Lusitaniae avatar Lusitaniae commented on June 6, 2024

Nothing in the logs

image

I'm trying local build too (printing the json sent to discord), same result

./alertmanager-discord -webhook.url https://discord.com/api/webhooks/token/token
2021/12/01 23:37:22 Listening on: 127.0.0.1:9094
2021/12/01 23:37:24 127.0.0.1:9094 - [POST] 
{"content":"","embeds":[{"title":"[FIRING:3] TXTransactionRetryCount","type":"rich","description":"","color":10038562,"fields":[{"name":"[FIRING]: TXTransactionRetryCount on 145.40.93.223","value":"The transaction retri

I'm new to Discord too, could this require paid feature hah?

from alertmanager-discord.

Lusitaniae avatar Lusitaniae commented on June 6, 2024

Just found it

Some personal settings somehow affect webhook messages uhhhh

User Settings -> Text & Images -> Show website preview info from links pasted in chat

For some odd reason, this setting also applies to message embeds by bots too :/

Thank you for looking into it!

from alertmanager-discord.

benjojo avatar benjojo commented on June 6, 2024

Cool, Glad you fixed it

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.