Comments (11)
Did it used to work? Or is this a new install?
from alertmanager-discord.
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.
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.
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.
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.
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.
That's interesting, this fires on my system no worries.
from alertmanager-discord.
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.
Nothing in the logs
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.
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.
Cool, Glad you fixed it
from alertmanager-discord.
Related Issues (20)
- Change ListenAddress HOT 9
- webhook 9094 port: trouble with binding HOT 5
- prometheus cannot make post request to alertmanager HOT 1
- alertmanager cannot connect to this container
- Alert without annotation "description" doesn't send to discord without throwing errors HOT 4
- Documentation - installation HOT 4
- Error on alert - cannot unmarshal array into Go value of type main.alertManOut HOT 10
- Bot doesn't post anything into discord channel HOT 1
- Is there a health check endpoint or a function test? HOT 1
- Upstream this HOT 8
- If the port cannot be bound, the program should fail HOT 1
- Failed to unpack inbound alert request HOT 4
- Please add a license HOT 2
- Title emoji HOT 1
- Autobuild on release tag
- Account for discord Webhook IDs with length 19 HOT 7
- Alerts doesn't send to discord HOT 1
- Alertmanager giving POST Error HOT 10
- lertmanager with helm kube-prometheus-stack HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alertmanager-discord.