Posts

Showing posts with the label monitor

Monitoring with Grafana

Image
Introduction In my previous article, I guided you through setting up cAdvisor , Prometheus  and Grafana on Docker , which are widely used for system monitoring. Now that you've successfully started Grafana , follow these next steps to start using it. Using Grafana When you access the Grafana login page, use the following default credentials for your first login. You can change them later as needed. username: admin password: admin Here's how the homepage looks. First, you need to add Prometheus as a data source: 1. Go to Connections > Add new connection > select Prometheus . 2. Enter the Prometheus server URL that you defined when starting Docker Compose . Once the data source is successfully added, create a new dashboard: 1. Click on New > New dashboard > Add visualization . 2. Select Prometheus as the data source and choose a metric to use, such as ` container_memory_cache `. After saving, you can view the results on your dashboard as follows: Using Dash

Monitoring with cAdvisor, Prometheus and Grafana on Docker

Image
Introduction Monitoring a system is crucial after deploying a product to a production environment. Keeping an eye on system metrics like logs , CPU , RAM , disks , etc, helps identify the system's status, performance issues, and provides timely solutions to ensure stable operations. While cloud providers like Google , Amazon , or Azure offer built-in monitoring systems, if your company needs to manage multiple applications/systems/containers and desires a centralized monitoring system for easier management, using cAdvisor , Prometheus , and Grafana is a sensible choice. These three popular open-source tools are widely used by DevOps teams, especially for monitoring container applications. cAdvisor Developed by Google , cAdvisor is an open-source project used to analyze resource usage, performance, and other metrics from container applications, providing an overview of all running containers. Find more details here Prometheus Prometheus is a toolkit for system monitoring and a