-
Notifications
You must be signed in to change notification settings - Fork 626
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
Status monitoring #116
Comments
I've been thinking about this. Almost all of the libraries I use reconnect automatically on failures and most of them can't be asked about the current state. So this would only be possible to implement in my own (mattermost) library. In the last release, irc and mattermost reconnects should be more stable. So services should always be connected or being busy trying to connect. So unless every underlying library add a way to ask about their state, this isn't feasible. |
Understood, this is not a simple one but I doubt that the other services would come up with status APIs without letting them know about the requirement. What I've done in the meantime is to use the fluentd log driver of docker and now monitor the logs instead. I do get an error like this when Mattermost goes down:
This is great and helps me to identify downtime. What's missing however is a log entry when Mattermost comes back and matterbridge reconnects. Would you mind putting something into the log even when not in debug mode? |
Hey just wanted to post an update on this as well. Let me know if i should open a new issue. matterbridge has been crashing on me recently. and I've been looking into ways to monitor the application. I tried supervisor. Which i had no luck with. And found that forever.js isn't supported either. So I looked into docker. and had some issues as well. I'm using the same configuration file for running it inside the go/bin folder but when i run it inside docker messages from mattermost don't get relayed to slack/irc/discord. but messages from slack/irc/discord get relayed to mattermost just fine. When matterbridge is run by itself. messages relay between all 4 of the applications correctly. |
@Infernoman Please reopen a new issue if you experience crashes. I'll try to fix those :) For restarting systemd is a good option, you could do something like this example service below.
|
It would be nice if we could integrate prometheus or the like for this. |
The benefit of a monitoring possibility would be grater than simple crashes. If the Service crashes or ends itself systemd oder docker can restart the service. Currently the only way to detect tis is to monitor the log or realize the absence of messages. Perhaps something like a prometheus metrics endpoint could be a good start ? |
I was wondering what's the best way to monitor the status of matterbridge. The docker container is one thing to look at but I'd also be interested about the status of the services that matterbridge is configured for.
Is it feasible to get some sort of an end-point in matterbridge that responds with a json summary of the current status which could then be used by monitoring tools?
The text was updated successfully, but these errors were encountered: