TrinityCoreCustomChanges icon indicating copy to clipboard operation
TrinityCoreCustomChanges copied to clipboard

Add ability to send logs, events and metrics to discord

Open 0xCiBeR opened this issue 5 years ago • 6 comments

Description:

Re-opening previous issue from: https://github.com/TrinityCore/TrinityCore/issues/23871 It would be nice to be able to send metrics and events to discord servers since its one of the top voice platforms available currently

Current behaviour:

No support for discord out of the box

Expected behaviour:

Allow TrinityCore server to communicate with a discord server

Steps to reproduce the problem:

Branch(es):

Both

TC rev. hash/commit:

TDB version: -

Operating system: -

0xCiBeR avatar Mar 27 '20 17:03 0xCiBeR

https://grafana.com/docs/grafana/latest/alerting/notifications/#list-of-supported-notifiers says it supports Discord. TC supports Grafana, Grafana supports Discord, ergo TC supports Discord ? 😄

jackpoz avatar Sep 29 '20 19:09 jackpoz

Hmm. Can you view DBErrors.log from Grafana, or indeed from Discord?

ghost avatar Sep 30 '20 08:09 ghost

Well, logs can be added to MySQL using the Appender type "DB", Grafana can read the data from MySQL, so it's just a matter of gathering up some knowledge on the currently supported tools and build a solution out of it.

jackpoz avatar Sep 30 '20 14:09 jackpoz

Well, logs can be added to MySQL using the Appender type "DB", Grafana can read the data from MySQL, so it's just a matter of gathering up some knowledge on the currently supported tools and build a solution out of it.

Oh, that is true. I forgot about those details. Fair enough. Good point.

ghost avatar Sep 30 '20 16:09 ghost

I may be overinterpreting the original post, but it feels like the OP is looking for a ready-to-use setup with Grafana and Discord communication parameters added in the .conf files.

ghost avatar Sep 30 '20 16:09 ghost

https://www.influxdata.com/blog/contributing-third-party-flux-packages-a-discord-endpoint-flux-function/ is another way to send data from InfluxDB to Discord. In general it makes more sense to not add every single service to worldserver (WhatsApp, Skype, MS Teams, Slack, Discord, Telegram, line, etc) but send data to MySQL/InfluxDB and then have a 3rd party software sending the data to the service of choice.

And here's a little example showing the power of Grafana: image

jackpoz avatar Sep 30 '20 20:09 jackpoz