Add ability to send logs, events and metrics to discord
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: -
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 ? 😄
Hmm. Can you view DBErrors.log from Grafana, or indeed from Discord?
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.
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.
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.
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:
