adriaaah / monit-dashboard

A web dashboard for rule all monit servers at a glance
GNU Affero General Public License v3.0
26 stars 8 forks source link

Add granular view for the listed services #17

Open saravanan30erd opened 4 years ago

saravanan30erd commented 4 years ago

@adriaaah currently all the services are listing under single server(button). But usually the services are categorized into many layers such as production, staging, ssl check, http check, database server check, tcp port check. so we can categorize the services based on this functionality type and show the services in sub-categories instead of showing all the services in single button, because it requires to scroll the page more and more if the services list is more.

Dependency is, when you creating the service in monit backend we need to follow the format like this,

- Production-url1 Production-url2 Staging-url1 Tcpcheck-server1 Tcpcheck-server2 Then the services are categorized accordingly, Production url1 url2 Staging url1 Tcpcheck server1 server2 But I included the backward compatibility too, if we don't want to add the service in any categorization then it will be added under default category `others` example: dbserver1 dbserver2 Others dbserver1 dbserver2 ![screenshot (6)](https://user-images.githubusercontent.com/17641354/76425639-5986cb00-63c3-11ea-8b10-1586e9d46c47.png)
adriaaah commented 4 years ago

Hello @saravanan30erd , I still don't get what's the purpose of this implementation. Maybe we're using Monit in different ways, so let me add a couple of screenshots on my current setup: Current master branch: master This pull request: pr-17 In this case, as a user watching the dashboard, I have to click more times to see what's wrong, and my services are categorized in a non-intuitive way.

I have the Monit service installed on each server I want to monitor (the Monit dashboard/MMonit polls all of them every time), and I believe your approach is to have one single Monit server monitoring all your servers.

Can you please clarify?

saravanan30erd commented 4 years ago

@adriaaah Yes, I have one centralized monit server monitoring all the servers/services.

adriaaah commented 4 years ago

To be honest I don't know how to proceed here. I was considering adding a flag or a config parameter to let the user choose the view, but I think it's pretty much effort considering the number of files involved. Any suggestion is more than welcome.