OpenELIS Monitoring
Overview
The monitoring system provides the mechanisms to monitor OpenELIS implementations. These mechanisms have the ability to send out alerts to assigned persons in the event a OpenELIS component has encountered a problem such as down time. The OpenELIS monitoring and alert system has been implemented using Grafana, prometheus and node exporter.
What is grafana
Grafana is an open-source platform used for monitoring, visualization, and analysis of data. It is primarily used to create dashboards and visualizations for time-series data, making it popular for use cases such as infrastructure monitoring, application performance monitoring, and log analysis.
What is prometheus
Prometheus is an open-source system monitoring and alerting toolkit that is widely used for tracking the performance and health of applications, servers, and infrastructure.
What is node exporter
Node Exporter is an open-source tool developed by Prometheus to collect system-level metrics from Unix-like operating systems (Linux, BSD, etc.). It exposes various metrics about the system's hardware and operating system, which can then be scraped by Prometheus, a monitoring and alerting toolkit.
Prerequisites
A Linux server (Ubuntu)
A user with privileges.
Internet access for downloading packages.
Section One
Monitoring Health Information Exchange Resources
Step 1: Install Node Exporter
Clone the node exporter services from the repository below;
https://github.com/I-TECH-UW/monitoring-exporters.gitPaste the services in the running docker compose file on the server to be monitored
Make sure you add the pasted services to the same network like the rest of the services.
If your services work behind a reverse proxy,configure the reverse proxy so that the added service start at a given end point
The node exporter should start on a given endpoint for example as seen in the screenshot below.
Step 2: Configure Prometheus
Configure the end point within the prometheus.yaml file for example ,this can be configured on the digi monitoring platform in this file https://github.com/I-TECH-UW/digi-monitoring/blob/main/monitoring/prometheus/prometheus.yml for example as seen below
job_name: "open Elis metrics"
static_configs:
targets: ["testing.openelis-global.org/metrics"]
Step 3: Dashboard
A Make sure you have a running copy of the grafana instance for example you can setup grafana using the digi monitoring platform from this repository https://github.com/I-TECH-UW/digi-monitoring on your server and it should start well,as seen on the login page below:-
add a dashboard by clicking on dashboards from the menu
You can either add a new dashboard or simply just import an existing dashboard template by using its id or json file.For this example we shall add a dashboard by importing a json file.Note: Basing on the exporter you are using,you can search for the dashboard template to work with from https://grafana.com/grafana/dashboards/ which comes with the id you need to use to add it it to your grafana instance. For this we are using the node exporter full template which has an id 1860.
The new dashboard template should be loaded and saved with a given name.You can now access your added dashboard on the menu under the dashboard section as seen below for our dashboard that uses node exporter to give us some metrics on the server being monitored.