Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
0xCiBeR opened this issue Mar 27, 2020 · 6 comments
Open

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

0xCiBeR opened this issue Mar 27, 2020 · 6 comments

Comments

@0xCiBeR
Copy link

0xCiBeR commented Mar 27, 2020

Description:

Re-opening previous issue from: TrinityCore/TrinityCore#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
Copy link
Member

jackpoz commented Sep 29, 2020

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
Copy link

ghost commented Sep 30, 2020

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

@jackpoz
Copy link
Member

jackpoz commented Sep 30, 2020

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
Copy link

ghost commented Sep 30, 2020

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
Copy link

ghost commented Sep 30, 2020

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
Copy link
Member

jackpoz commented Sep 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants