A very lightweight monitoring system for Raspberry Pi clusters running Kubernetes.
100K+
A very lightweight monitoring system for Raspberry Pi clusters running Kubernetes.
When I finished my Kubernetes cluster using a few Raspberry Pis, the first thing I wanted to do is install Prometheus + Grafana for monitoring, and so I did. But when I had all of it working I found a few drawbacks:
Last but not least, I like to learn how these things work.
Omni has (what I consider) some advantages over the regular Prometheus + Grafana combo:
For Omni to work, you need to have the libseccomp2.deb library installed in each of your nodes to avoid a Python error:
Fatal Python Error: pyinit_main: can't initialize time
(more info here)
To install it you can do it in two ways (only one is needed):
Ansible: all nodes at the same time
Edit the file ansible-playbook-libs.yaml in this repo, add your hosts and run:
ansible-playbook install-libs.yaml
SSH: one by one
Connect into each of your nodes and run:
wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.1-1_armhf.deb
sudo dpkg -i libseccomp2_2.5.1-1_armhf.deb
Once you have it, everything should work ok.
Before deploying you'll have to specify the attributes of your InfluxDB instance.
Copy the configuration template file to the one you'll deploy:
cp omni-config-example.yaml omni-config.yaml
Open omni-config.yaml and fill the variables with your InfluxDB instance information.
NOTE: The attribute OMNI_DATA_RATE_SECONDS specifies the number of seconds that pass between data reporting events that are sent to the InfluxDB server.
Deploy the configuration for Omni to work:
kubectl apply -f omni-config.yaml
Check that the configuration were created correctly:
kubectl describe configmap omni-config
You should see the configuration values.
Once the configuration is done, all that is left is to deploy the DaemonSet of Omni pods:
kubectl apply -f omni-daemonset.yaml
Check that everything is running as expected:
kubectl get pods
And you are done! 🎉
Pull requests with improvements and new features are more than welcome.
Content type
Image
Digest
Size
72.6 MB
Last updated
over 5 years ago
docker pull mattogodoy/omni