Agent of Project Eru, for those reasons:
- Check containers status, if crashed, report to eru core.
- Get containers metrics, send to Open-Falcon.
- Forwarding containers' log to remote collectors like syslog.
Agent has a configure file named agent.yaml
, you can execute agent like:
agent -c agent.yaml [-DEBUG]
- Add Vlan(s)
PUBLISH eru:agent:127.0.0.1:vlan aaa|889c8eb8d6d45aa1cfbe36ebe30933bea22be8c890173b425b3378a966e1bfe5|1:10.1.1.1|2:10.2.2.2
It will add 2 MacVlan devices in container, named vnbe1 and vnbe2, bound 10.1.1.1 and 10.2.2.2.
- Add EruApp
PUBLISH eru:agent:127.0.0.1:watcher '+|889c8eb8d6d45aa1cfbe36ebe30933bea22be8c890173b425b3378a966e1bfe5|{"a": 1, "c": "123", "b": 2}'
- Set Default Route
PUBLISH eru:agent:127.0.0.1:route 889c8eb8d6d45aa1cfbe36ebe30933bea22be8c890173b425b3378a966e1bfe5|172.42.1.1
Coming soon...