You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we don't have anything under "/" so it just returns a 404 error. We need to implement this endpoint which usually responds with info about the API/machine it's running on. Some of this info are easily collected using the host machine's tools, so we need to use shelljs to issue commands in order to collect relevant info.
It should output the following info:
version, based on package.json (alongside git branch and commit # if git root is detected)
services status: there's a dbConnected variable which indicates this
requests info. We should centralize these in a sepparate place in the code
total requests since startup
average response time for requests
max response time
uptime: use process.uptime()
node version
OS version: use shelljs to get rich info about the OS
memory consumed by api process.memoryUsage()
total memory available: use cat /proc/meminfo | grep MemTotal | awk '{ print $2 }'
The text was updated successfully, but these errors were encountered:
Is anyone working on this? If not, I can probably help. This looks like a feature which does not require too much understanding of the application, and hence will be suitable for me to start I guess! 😃
I found out about telepat.io on devRant 😉 ! It's super cool project IMO. But it would have been better if the backend was written in some type-safe language instead of Javascript. But in anyway, I'm interested in contributing. Let me know.
Right now we don't have anything under "/" so it just returns a 404 error. We need to implement this endpoint which usually responds with info about the API/machine it's running on. Some of this info are easily collected using the host machine's tools, so we need to use shelljs to issue commands in order to collect relevant info.
It should output the following info:
The text was updated successfully, but these errors were encountered: