nattakit-boonyang / healthcheck-my-pc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Healthcheck My PC

Features

  • Get processes by process name
  • Get information each process such as CPU, Memory, Network, Uptime
  • Run server inside docker
  • Zip data before send
  • Encrypt with RSA
  • Support multiple client
  • Authentication

TODO:

  • Fix getting network information from process into Windows
  • Attach local time with healthcheck data

How to get only code coverage

go test ./... -cover

How to get code coverage for create html

go test ./... -cover -coverprofile=cover.out
go tool cover -html=cover.out

How to build client

go build -o client client/cmd/main.go

How to build server

docker build -t healthcheck-my-pc:0.0.1 .

How to run server

cat > config/settings.json
{
    "min": <interval_time(number)>,
    "url": "http://<ip(string)>:<port(number)>/healthcheck",
    "target": "<app_target(string)>"
}

docker run --name healthcheck-my-pc-server -p <port>:5000 healthcheck-my-pc:0.0.1

About


Languages

Language:Go 100.0%