metalbeat is an agent of metalflow written in Go.
- Go >= 1.15.0
- etcd == 3.3.25
- gRPC == 1.26.0
git clone https://github.com/craftslab/metalbeat.git
cd metalbeat
make build
./metalbeat --config-file="config.yml" --host-addr="127.0.0.1"
git clone https://github.com/craftslab/metalbeat.git
cd metalbeat
docker build --no-cache -f Dockerfile -t craftslab/metalbeat:latest .
docker run craftslab/metalbeat:latest /metalbeat --config-file="/config.yml" --host-addr="127.0.0.1"
usage: metalbeat --config-file=CONFIG-FILE --host-addr=HOST-ADDR [<flags>]
Metal Beat
Flags:
--help Show context-sensitive help (also try --help-long
and --help-man).
--version Show application version.
--config-file=CONFIG-FILE Config file (.yml)
--host-addr=HOST-ADDR Host address
# Fetch host address via ifconfig
ifconfig -a | grep inet | grep -v 127.0.0.1 | grep -v 172.17.0.1 | grep -v inet6 | awk '{print $2}' | tr -d "addr:"
metalbeat parameters can be set in the directory config.
An example of configuration in config.yml:
apiVersion: v1
kind: agent
metadata:
name: metalbeat
spec:
etcd:
host: 127.0.0.1
port: 2379
- Agent
key: /metalflow/agent/{HOST}/register
val: metalbeat
- Master
key: /metalflow/worker/{HOST}/dispatch
val: {COMMAND}
Project License can be found here.