This patch moves the base plugin docs into a directory to prepare for different types of plugins which share a common set of instructions. Change-Id: Ie2f193b070469d159216bafa36620674c9f6662c
609 B
609 B
uptime - get system
uptime
The uptime plugin returns the number of seconds since the server was powered on.
Usage
This plugin takes no arguments.
Example
Run the plugin:
$ monitorstack uptime
Example output in JSON format:
{
"variables": {
"uptime": "18570.18"
},
"message": "uptime is ok",
"meta": {
"platform": "Linux-4.10.8-200.fc25.x86_64-x86_64-with-fedora-25-Twenty_Five"
},
"exit_code": 0,
"measurement_name": "system_uptime"
}