~rbdr/monitorcito

A tiny monitor for systemd services
6a7471cb — Ruben Beltran del Rio 2 months ago
Add link home
de8c8f36 — Ruben Beltran del Rio 2 months ago
Use description instead of Id
94abdf3d — Ruben Beltran del Rio 2 months ago
Use 64x64 animation

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~rbdr/monitorcito
read/write
git@git.sr.ht:~rbdr/monitorcito

You can also use your local clone with git send-email.

#Monitorcito

A tiny monitor that gives you the status of a handful of systemd services.

#Configuration

This project uses environment variables to change configuration.

  • MONITORCITO_SERVICES: A comma separated list of services. Required.
  • MONITORCITO_PORT: A comma separated list of services. Defaults to 1991.

Set NODE_DEBUG=monitorcito if you want to log any output. Otherwise it will be silent.

#How to run

Set the appropriate environment variables and run bin/monitorcito.

#The Frontend

Monitorcito includes a public directory, this is a frontend that queries the service and refreshes every 5 seconds. The service assumes the API is running in /api.

Here's an example of how to set it up with nginx.

upstream monitorcito {
	server localhost:1991;
	keepalive 64;
}

server {
	listen 80;

	root /home/deploy/src/monitorcito/public;
	index index.html;

	server_name monitor.unlimited.pizza;

	location /api {
		proxy_redirect off;

		proxy_pass http://monitorcito;
	}
}