Posts

Showing posts from December, 2025

My First Python Program: A Simple Calculator

Image
 Today, I am going to create a simple calculator using Python . This might be your first code ever , and honestly, this is also my first Python code . So don’t worry — we are learning together. Let’s start step by step. Step 1: Open VS Code First, open Visual Studio Code (VS Code) . Step 2: Create a Folder and a File Create a new folder (you can name it anything). Inside the folder, create a new file. In my case, I named the file first.py . 👉  .py is the file extension for Python , just like: .cpp for C++ .java for Java Step 3: Write the Python Code Now, write the following code in first.py : num1 = float ( input ( "Enter num 1: " ) ) # Taking first number from the user num2 = float ( input ( "Enter num 2: " ) ) # Taking second number from the user opr = input ( "Enter operator: " ) # User selects the operator (+, -, *) if opr = = "+" : # If operator is + output = num1 + num2 if opr = = "-" : # If operator is - ...

🚀 One Year of My DevOps Journey | Growth, Learning & Belief

Image
📅 27 December 2025 Exactly one year ago, I made a decision that changed my mindset and my direction — I officially started my DevOps journey. Before taking the first step, I did deep Research and sought guidance from experienced mentors. I am truly grateful to Junaid Qazi, PhD , my teacher Sir Muhammad Faran Tahir , and my mentor Mr. Shubham Londhe , whose guidance helped me stay on the right path throughout this journey. I started from zero, beginning with Linux, and step by step, I kept moving forward. Today, I’m proud to say that I have covered multiple DevOps tools, not just theoretically, but with practical projects, videos, and blogs. Every tool I learned includes at least one hands-on project, because real learning happens when you build. There was a time when I was afraid to even create an AWS account, thinking I might lose money. Today, I confidently deploy machines on AWS, use AWS credits, and continue learning cloud technologies without fear. That fear transformed into conf...

Python Basics for DevOps Beginners | Variables, Data Types & Input Explained Simply

Image
After a basic introduction to Python, I started exploring new things in the Python language. As a DevOps engineer, Python is one of the most important tools for automation, scripting, and daily tasks. In this blog, I will explain Python in a very simple and practical way so anyone can understand it easily. Step 1: Check Python Version First, open Command Prompt (CMD) or Terminal . Run the following command: python --version This command is used to check whether Python is installed and which version you are using. Step 2: Enter Python Terminal Now type: python You will enter the Python interactive terminal. Try this: 2 + 2 Output will be: 4 This shows how easy and readable Python is. 👉 What’s happening here? Python sends your instruction to the Operating System (OS). The OS processes it and returns the output. What Is Code? Code is simply a set of instructions given to the computer. For example: 5 + 5 The OS processes this instruction and gives the output: 10 If the ...

Starting My Python Journey — By Raees Yaqoob Qazi (DevOps Engineer)

Image
 Today, I’m starting my Python learning journey.  Before we begin, please make sure you have VS Code and Python installed on your machine.  Both installations are very simple — just download the  .exe files, run them, and keep clicking Next . Within a minute, everything will be ready to use. Why is Python Important? Why Should We Learn It? The answer is very simple: Python is easy to read and easy to write.  Its syntax is clean and beginner-friendly. Python has a huge community.  You will always find support, tutorials, and ready-made solutions online. Python has powerful libraries for almost every domain. For example: For DevOps & AWS automation → boto3 For SQL databases → pymysql For MongoDB → pymongo This is why Python is one of the most in-demand programming languages in the world. After learning Python, it becomes easier to find jobs, work on DevOps tasks, or even earn from freelance platforms. Understanding Hardware and Operating Systems ...

Understanding Promtail and Loki (Part-6)

Image
 Today, I want to explain two important tools we commonly use in log management: Promtail and Loki . Part-1:  https://brillertechnologies.blogspot.com/2025/11/prometheus-and-grafana-projectpart-1-by.html Part 2:  https://brillertechnologies.blogspot.com/2025/11/monitoring-containers-with-cadvisorpart.html Part 3:  https://brillertechnologies.blogspot.com/2025/12/understanding-prometheus-in-simple-way.html Part 4:  https://brillertechnologies.blogspot.com/2025/12/understanding-prometheusmonitoring-made.html Part 5: https://brillertechnologies.blogspot.com/2025/12/grafana-setup-dashboard-creation-part-5.html What is Promtail? Promtail is a tool that scrapes or collects logs from your system.  For example, it can read logs from the folder /var/log on your EC2 instance. What is Loki? Loki is basically a log database or data source .  When Promtail collects logs, it forwards those logs to Loki , and Loki stores them. How do we actually see the ...

Grafana Setup & Dashboard Creation (Part-5)— Explained by Raees Yaqoob Qazi

Image
 Today, I’m going to talk about Grafana . Grafana is a powerful tool used to create dashboards and visualize data . As DevOps engineers, monitoring is very important, and Grafana makes it easy to understand system performance. Part-1:  https://brillertechnologies.blogspot.com/2025/11/prometheus-and-grafana-projectpart-1-by.html Part 2:  https://brillertechnologies.blogspot.com/2025/11/monitoring-containers-with-cadvisorpart.html Part 3:  https://brillertechnologies.blogspot.com/2025/12/understanding-prometheus-in-simple-way.html Part 4: https://brillertechnologies.blogspot.com/2025/12/understanding-prometheusmonitoring-made.html 1. Running Grafana Using Docker Compose First, I use Docker Compose to run Grafana. Open your docker-compose.yml file: vim docker-compose. yml Add the Grafana service: grafana: image: grafana/grafana-enterprise container_name: grafana restart: unless-stopped ports: - "3000:3000" Save and exit with:   :wq Then run: d...

Understanding Prometheus — Monitoring Made Easy (Part-4)

Image
 In the previous blog, we deployed an EC2 instance, ran our application inside a Docker container, and installed cAdvisor and Prometheus .  (If you missed it, the link to the previous blog) Part-1: https://brillertechnologies.blogspot.com/2025/11/prometheus-and-grafana-projectpart-1-by.html Part 2: https://brillertechnologies.blogspot.com/2025/11/monitoring-containers-with-cadvisorpart.html Part 3: https://brillertechnologies.blogspot.com/2025/12/understanding-prometheus-in-simple-way.html Today, we will go one step ahead and understand how Prometheus actually works , how it collects metrics, and how we can add new jobs like cAdvisor and Node Exporter . 1. Understanding Prometheus Targets After installing Prometheus, open the Prometheus UI: <IP>:9090 Click on: Status → Targets Here you will see all jobs defined in your prometheus.yml file. You will also see a job named Prometheus .  Prometheus scrapes its own metrics using: localhost:9090 We use localhost becaus...