TrinityCore / TrinityCoreCustomChanges

TrinityCore 3.3.5a custom patches, read wiki to get diffs
https://github.com/TrinityCore/TrinityCoreCustomChanges/wiki
GNU General Public License v2.0
69 stars 58 forks source link

Add ability to send logs, events and metrics to discord #19

Open 0xCiBeR opened 4 years ago

0xCiBeR commented 4 years ago

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: -

jackpoz commented 3 years ago

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 ? 😄

ghost commented 3 years ago

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

jackpoz commented 3 years ago

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.

ghost commented 3 years ago

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 commented 3 years ago

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.

jackpoz commented 3 years ago

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