You are not logged in.

#1 2019-06-18 05:32:43

romzr
Member
Registered: 2019-06-17
Posts: 4

beacon - Tiny system utility reporting CPU/mem/uptime to logs/CW/http

Metrics can be sent to logs (stdout), cloudwatch, or posted as json to an http endpoint.

Configuration file:

# config.yaml
interval: 60s
targets:
  - type: log
  - type: cloudwatch
  - type: url
    arg: http://example.com/heartbeat
$ beacon
2019/05/30 08:18:05 {Hostname:desktop HostID:83124810-114D-9785-2296-468d43bbbcd5 CPUPercent:8.359375 MemPercent:40 Uptime:6086447}
2019/05/30 08:19:05 {Hostname:desktop HostID:83124810-114D-9785-2296-468d43bbbcd5 CPUPercent:7.682194 MemPercent:40 Uptime:6086507}
...

I use this on several machines to get a quick/free monitoring dashboard and alerts with AWS CloudWatch.
Note that beacon just puts metrics into CW, this dashboard is only an example.

cw

The package provides beacon.service to let systemd manage it, and allows seeing logs with journalctl -u beacon.

https://aur.archlinux.org/packages/beacon/

Offline

#2 2019-06-18 08:02:09

Jaekr
Member
From: Helsinki, Finland
Registered: 2019-06-10
Posts: 16
Website

Re: beacon - Tiny system utility reporting CPU/mem/uptime to logs/CW/http

Looks good, let's try this smile


I sometimes dream about cheese.

Offline

Board footer

Powered by FluxBB