Comments (10)
Sounds good. 👍
Any news so far?
from vtop.
That's what I want! Just do it bro~
from vtop.
I believe that a whole web frontend is too much for a small and lightweight utility like vtop. It just feels like another utility should handle that, specifically made for web monitoring.
After googling about 3 minutes, I found Monit and Monitorix.
from vtop.
I'm up for doing this – shouldn't be too difficult given that it's JS already. Would be cool to have some more sensors added for Apache requests/second and have the charting work in the terminal and on the web.
from vtop.
Please think about this again. This is a small library showing the system resources usage, made for the CLI. Currently, this library does NOT support different output channels (CLI, web, …), making it small and maintainable.
Introducing multiple output channels, embedding a web server (even if it is small) and implementing a protocol able to transfer this kind of data seems way to much for this project. According to the Unix philosophy, which has proven to be extremely useful, a module should do one thing (and do it well). In this case, it is showing the system resources in the CLI.
There are other great projects showing this kind of data using a web frontend, two of which I mentioned above. Consider porting them to node.js.
from vtop.
Please think about this again. This is a small library showing the system resources usage, made for the CLI. Currently, this library does NOT support different output channels (CLI, web, …), making it small and maintainable.
I'm not sure if I agree with you. It would be nice to write additional sensors in the simple format I've defined and have them viewable over the web too.
Introducing multiple output channels, embedding a web server (even if it is small) and implementing a protocol able to transfer this kind of data seems way to much for this project.
It's pretty much a one liner to make a webserver in node.js, I'd probably just serve one HTML file and open a websocket.
According to the Unix philosophy, which has proven to be extremely useful, a module should do one thing (and do it well).
The Unix philosophy I agree with, it may be that the application be split into different modules, but the sensors should be compatible with both output modes. Some parts of the app are already being spun out into their own modules, like the process listing code. See #12
There are other great projects showing this kind of data using a web frontend, two of which I mentioned above. Consider porting them to node.js.
I don't really want to spend time understanding these two projects and porting them to node. Also they look like ass.
from vtop.
From an architecture POV, it seems reasonable to create a different project (say webvtop), that does the job by using vtop under the hood.
Maybe you'll still need to make small modifications on vtop code to support that, but that's a lot less "invasive".
from vtop.
@tonylampada +1
from vtop.
It would be nice to write additional sensors in the simple format I've defined [...]
Yes, absolutely!
[..] and have them viewable over the web too.
As is said: In my opinion, that's not a responsibility of this module.
It's pretty much a one liner to make a webserver in node.js, I'd probably just serve one HTML file and open a websocket.
But
- setting up a web server, serving an HTML file
- setting up a Websockets server (maybe even supporting multiple clients)
- implementing a protocol that transfers this kind of data (maybe just JSON)
- sending the data regularily
- implementing all this stuff in a readable and reasonable way (not hacked together in one line)
alltogether is not possible in one line ;D But let's focus on the do-one-thing-and-do-it-well point of this discusison.
The Unix philosophy I agree with, it may be that the application be split into different modules, but the sensors should be compatible with both output modes. Some parts of the app are already being spun out into their own modules, like the process listing code. See #12
I couldn't agree more.
I don't really want to spend time understanding these two projects and porting them to node. Also they look like ass.
That's no point to rewrite this project as a web-based.
While I think that Monit looks quite promising, I didn't want you port the whole project (my fault talking about porting), rather to reimplement it in node.js. I think such a project would be great.
from vtop.
If anyone is still looking for a web dashboard for this type of data, take a look at Linux Dash.
@MrRio If you're going to do web sockets and a simple few lines of Node, it shouldn't be too hard to accomplish the same type of web front-end for vtop. Who knows, now that you have gotten the CLI version right, maybe you can do the web front-end better than what currently exists.
Love this project!
from vtop.
Related Issues (20)
- Sort Processes by Clicking On Header
- error with npm install HOT 1
- vtop crashes on open using MacOS 10.13.6 HOT 3
- Question Marks in Graph HOT 6
- Default processes are non-empty
- Processes' Controls fail to display, in window height change.
- Allow to switch RAM display from % to GB
- vtop crashes on open using Linux Mint
- vtop --no-mouse still allows scrolling
- SyntaxError: Use of const in strict mode HOT 3
- Display the core in which thread is running?
- Getting crashed HOT 2
- chcontext: tools were built without legacy API support; can not continue HOT 5
- Is it possible to configure the key bindings? HOT 1
- interpreting the cpu data from the process plugin
- cannot search/filter processes HOT 5
- command not found (using shell) HOT 1
- Works great, but...
- Cant uninstall
- You cant end process
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vtop.