Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yodaos-project/edge-monitor
Monitoring YODAOS edge in real time
https://github.com/yodaos-project/edge-monitor
monitoring-tool yoda yodaos
Last synced: 2 months ago
JSON representation
Monitoring YODAOS edge in real time
- Host: GitHub
- URL: https://github.com/yodaos-project/edge-monitor
- Owner: yodaos-project
- License: apache-2.0
- Created: 2018-12-03T06:29:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-06T16:05:04.000Z (almost 3 years ago)
- Last Synced: 2024-05-14T00:26:58.219Z (8 months ago)
- Topics: monitoring-tool, yoda, yodaos
- Language: C++
- Homepage:
- Size: 6.5 MB
- Stars: 2
- Watchers: 18
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yoda Monitor
[![License](https://img.shields.io/badge/licence-Apache%202.0-brightgreen.svg?style=flat)](LICENSE)
[![Build Status](https://travis-ci.com/yodaos-project/edge-monitor.svg?branch=master)](https://app.travis-ci.com/yodaos-project/edge-monitor)Collect and upload system data in real time. Currently supports the following features:
- Total CPU usage and usage on per CPU.
- CPU usage on per process.
- System available memory.
- System battery info.
- PSS usage on per process, map PSS to file.
- Monitor comredump file, compress and upload automatically.## Dependencies
- libcurl android armeabi-v7a is built-in
## Build
```bash
$ git clone [email protected]:Rokid/yoda-monitor.git
$ cd yoda-monitor
$ cmake .
$ make
```The above builds an executable `yoda-sixsix` in your CMake build directory.
## Command line arguments
| options | description |
|------------------|---------------|
| `-v` | print version |
| `-conf` | set configure json path |
| `-b` | running in the background |
| `-l` | set log file directory to write log to files |
| `-d` | set log level, [verbose, info, warn, error, fatal] |## Configure json structure
| options | description |
|------------------|---------------|
| `unzipRoot` | temporary file directory, default value is `/tmp/` |
| `sysroot` | set sysroot, default value is `/` |
| `uploadUrl` | set coredump file upload server url, coredump will not upload if this value is not set |
| `coredumpDir` | set coredump file generate directory, default value is `data` |
| `disableUpload` | set 1 to disable upload data |
| `smapInterval` | set smap collect interval, default value is `1000` milliseconds |
| `smapSleep` | set sleep time after collected smap, defaule value is `300 * 1000` milliseconds |
| `bufferCount` | set ws message buf count, default count is 100 |
| `serverAddress` | set ws server address |
| `serverPort` | set ws server port |
| `sn` | mock a sn, read from host by default |
| `hardware` | mock a hardware type, read from host by default |## Test
```bash
$ ./yoda-sixsix -conf ./sample/conf.json
```## License
[Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0)