![]() Sudo chown ec2-user:ec2-user /opt/docker/monitoring -R Step 4:- Create Directory for Prometheus and modify file permissions Sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose Sudo chmod +x /usr/local/bin/docker-compose Sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose Sudo amazon-linux-extras install docker -y Step 3:- Installing docker and docker-compose on amazon2 linux server Step 1:- create 2 servers, or have 2 machines in your local setup, such that both can connect with each other. Note:- For the demonstration purpose, I have also taken a Django service, PostgresSQL Database and Optaplanner service, and monitoring them, you can skip these services, to avoid any confusion, and for learning purpose, you can simply just focus on node exporter service. It is time for demo and see whole setup in working Grafana allows you to query, visualize, alerts on data received from data sources like Prometheus and provide a beautiful dashboard which can be easily imported and give all data in beautiful charts. Grafana => It is an open-source visualization and analytics tool. ![]() Node Exporter => It is a metrics collector which needs to be setup on all nodes which needs to be monitored, It collect system metrics like disk usage, memory information and other details and exports all metrics on an endpoint '/metrics', which can be pulled and collected by Prometheus. It monitors the container health and its metrics and can be easily integrated with Prometheus. ![]() It can group alerts and route them to the correct receiver medium like email, slack, PagerDuty.Ĭadvisor => It is an open-source product by google. We can set targets and rules in the Prometheus configuration file, according to which, It will send data to alert managers to publish alerts and can be easily integrated with Grafana to visualize metrics in Graphical view.Īlert Manager => The Alert manager is part of Prometheus open-source distributions, It handles alerts sent by the Prometheus server. Prometheus collects metrics from registered targets and stores them in its time series database and provides PromQL query language, which we can use to query from its collected metrics. Prometheus => Prometheus is an open-source monitoring solution backed by The Linux Foundation. Let's first get some Introduction to Prometheus Stack, comprising Prometheus, Grafana, Alert manager, Cadvisor, and the Node Exporter. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |