Posts

Showing posts with the label prometheus

DevOps Practice Series

Image
Introduction DevOps is a combination of development (Dev) and operations (Ops), aimed at uniting people, processes, and technology to enhance the software development lifecycle. Here are some key aspects of DevOps: Collaboration and Communication: DevOps fosters a culture where development, IT operations, quality engineering, and security teams work together seamlessly. Continuous Integration and Continuous Delivery (CI/CD): These practices automate the integration and delivery of code changes, ensuring faster and more reliable software releases¹. Infrastructure as Code (IaC): This approach involves managing and provisioning computing infrastructure through machine-readable scripts, rather than physical hardware configuration¹. Monitoring and Logging: Continuous monitoring and logging help teams to detect issues early and maintain system reliability. Automation: Automating repetitive tasks reduces errors and increases efficiency, allowing teams to focus on more strategic work. By imple

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