<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by yashwanth reddy Badam on Medium]]></title>
        <description><![CDATA[Stories by yashwanth reddy Badam on Medium]]></description>
        <link>https://medium.com/@yashwanthreddybadam?source=rss-6326c4d63509------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Mm1kEq8e80jhfh78</url>
            <title>Stories by yashwanth reddy Badam on Medium</title>
            <link>https://medium.com/@yashwanthreddybadam?source=rss-6326c4d63509------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 13:03:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yashwanthreddybadam/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[MetricFlow: Building a Multi-Host Infrastructure Monitoring System with Telegraf, VictoriaMetrics…]]></title>
            <link>https://medium.com/@yashwanthreddybadam/metricflow-building-a-multi-host-infrastructure-monitoring-system-with-telegraf-victoriametrics-46f18a8e30a4?source=rss-6326c4d63509------2</link>
            <guid isPermaLink="false">https://medium.com/p/46f18a8e30a4</guid>
            <category><![CDATA[victoriametrics]]></category>
            <category><![CDATA[telegraf]]></category>
            <category><![CDATA[grafana]]></category>
            <dc:creator><![CDATA[yashwanth reddy Badam]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 11:21:42 GMT</pubDate>
            <atom:updated>2026-11-23T11:21:42.206Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>MetricFlow: Building a Multi-Host Infrastructure Monitoring System with Telegraf, VictoriaMetrics and Grafana</strong></h3><p>Constructing a centralized infrastructure monitoring system for macOS and Linux based on open-source observability solutions, Docker and React dashboard.</p><h3>1. Introduction</h3><p>Infrastructure monitoring is essential for system reliability. Knowing such indicators as CPU utilisation, memory consumption, disk usage, network traffic, and system performance allows detecting issues before the application or user experience is affected by them.</p><p>For this project, I was interested in creating a centralised monitoring solution capable of gathering system-level metrics on multiple hosts and presenting them via one interface.</p><p>MetricFlow is a multi-host infrastructure monitoring tool capable of monitoring two different environments:</p><p>MacBook Air M2 running macOS.</p><p>Parrot OS running in a VM with UTM/QEMU.</p><p>Instead of using some pre-existing monitoring solution, I was interested in learning about the internal mechanics of a monitoring pipeline — gathering metrics on individual machines and further storing, querying, and displaying them.</p><p>I created MetricFlow with Telegraf, VictoriaMetrics, Grafana, Docker, FastAPI, and React.</p><h3>2. Project Architecture</h3><p>The system MetricFlow is built on a centralized monitoring approach. For every host that is being monitored, there is an instance of the Telegraf agent which collects the operating system metrics and sends them to a central instance of VictoriaMetrics.There are two ways to visualize data — through Grafana and a custom-made web application.</p><p>This approach has the following components:</p><p>Monitoring layer</p><p>MacBook Air M2</p><p>Parrot OS virtual machine</p><p>Telegraf agents</p><p>Storage and infrastructure layer</p><p>VictoriaMetrics</p><p>Docker</p><p>Storage</p><p>Visualization layer</p><p>Grafana</p><p>FastAPI</p><p>React and TypeScript</p><p>The workflow looks as follows:</p><p>Monitored hosts → Telegraf → VictoriaMetrics → Grafana / Custom dashboard</p><h3>3. Technologies Used</h3><p>elegraf</p><p>Telegraf is a free software tool for collecting metrics created by InfluxData.</p><p>With the help of Telegraf, I collected system-level metrics from both the machines under monitoring.</p><p>The selected input plugins include:</p><p>CPU</p><p>Memory</p><p>Disk</p><p>Disk I/O</p><p>Network</p><p>System</p><p>Internal Telegraf metrics</p><p>The agents have been configured to use a 10-second collection interval.</p><p>Output plugins have been also set up, allowing for transmitting the collected metrics to a supported target.</p><p>VictoriaMetrics</p><p>VictoriaMetrics is a main time-series database of MetricFlow.</p><p>It accepts metrics from Telegraf, keeps the collected time-series data, and provides an API for querying the information.</p><p>I have selected VictoriaMetrics for its support for Prometheus-compatible querying and various data ingestion protocols, including InfluxDB line protocol.</p><p>The VictoriaMetrics instance works in Docker and listens on port 8428.</p><p>The database uses persistent storage to keep the collected metrics after container recreation.</p><p>Grafana</p><p>Grafana is a visualisation tool.</p><p>VictoriaMetrics has been configured as a Prometheus-compatible datasource, and I have created dashboards showing metrics collected from both machines.</p><p>Docker</p><p>Docker is used to run the main infrastructure components.</p><p>Both VictoriaMetrics and Grafana work as separate containers controlled using Docker Compose.</p><p>Persistent volumes and host mounting are applied for keeping monitoring data and Grafana configuration.</p><h3>4. Setting Up the Monitoring Infrastructure</h3><p>The primary monitoring framework is set up on my MacBook.</p><p>VictoriaMetrics is executed in a Docker container employing the victoriametrics/victoria-metrics:latest image.</p><p>The service can be accessed via port 8428.</p><p>The settings include a retention period of a month and a permanent storage mounted at:</p><p>/Users/yashwanthreddybadam/MetricFlow/victoriametrics</p><p>Grafana is installed separately on port 3000 with a permanent storage through a Docker named volume.</p><p>This way, both services perform independently with interaction through the docker network.</p><h3>5. Metric Collection with Telegraf</h3><p>The Parrot OS agent uses Telegraf’s InfluxDB output plugin to push metrics into VictoriaMetrics. It writes through VictoriaMetrics’ InfluxDB-compatible endpoint on port 8428.</p><p>Every metric is tagged with the host and environment it came from, for example host=&quot;parrot-vm&quot; and environment=&quot;metricflow-lab&quot;. These tags let one database hold metrics from several machines and still keep them apart when I query it.</p><p>One detail I found useful: Telegraf sends data in InfluxDB line protocol, but VictoriaMetrics makes the same data queryable through its Prometheus-compatible API. So I can collect with Telegraf and analyse with PromQL-style queries, without a conversion step in between.</p><h3>6. Querying Metrics</h3><p>Once the data is in VictoriaMetrics, I can query it over its HTTP API using PromQL-compatible expressions. These are the ones I use most:</p><ul><li><strong>CPU utilisation:</strong> 100 - cpu_usage_idle{cpu=&quot;cpu-total&quot;}</li><li><strong>Memory utilisation:</strong> mem_used_percent</li><li><strong>Root disk utilisation:</strong> disk_used_percent{path=&quot;/&quot;}</li><li><strong>Network upload (Mbps):</strong> rate(net_bytes_sent{interface=~&quot;en0|enp0s1&quot;}[5m])*8/1000000</li><li><strong>Network download (Mbps):</strong> rate(net_bytes_recv{interface=~&quot;en0|enp0s1&quot;}[5m])*8/1000000</li><li><strong>Uptime in days:</strong> system_uptime/86400</li></ul><p>I can run these against a single host or put several machines side by side for comparison.</p><h3>7. Building Grafana Dashboards</h3><p>After adding VictoriaMetrics as a datasource, I moved my existing Grafana dashboards over to it. I also built one consolidated dashboard, <strong>MetricFlow | Infrastructure Overview</strong>, with eight panels: CPU utilisation, memory utilisation, root disk utilisation, network upload, network download, system uptime, available memory, and system load.</p><p>A host-selection variable lets me filter everything by machine, and the dashboard refreshes every 10 seconds. The result is one place to check on my infrastructure instead of logging into each machine.</p><h3>8. Developing a Custom Monitoring Dashboard</h3><p>Grafana is powerful, but I also wanted to build a monitoring interface of my own. So I created a separate application under MetricFlow-v2.</p><p><strong>Backend (FastAPI).</strong> The backend talks to VictoriaMetrics and serves monitoring data to the frontend. It also exposes a health-check endpoint that confirms the API is up and can reach VictoriaMetrics.</p><p><strong>Frontend (React and TypeScript).</strong> The interface includes:</p><ul><li>A card for each monitored host</li><li>CPU, memory and disk utilisation</li><li>Network upload and download</li><li>CPU, memory and network charts (drawn with Recharts)</li><li>Host online status</li><li>Time-range selection</li><li>Automatic data refresh</li></ul><p>Building this gave me room to try features and design ideas that go beyond what standard Grafana dashboards offer.</p><h3>9. Challenges and Troubleshooting</h3><p>This project involved a fair amount of troubleshooting. These were the main problems.</p><p><strong>Virtual machine networking.</strong> My first hurdle was getting the Parrot OS virtual machine to talk to the MacBook. I switched to bridged networking, so the VM sat on the local network and Telegraf inside Parrot OS could send metrics straight to VictoriaMetrics.</p><p><strong>Changing IP addresses.</strong> Partway through development, the MacBook’s local IP address changed. The Parrot Telegraf config still pointed at the old address, so the agent couldn’t reach VictoriaMetrics. HTTP writes started failing and Telegraf began warning about its metric buffer overflowing. I fixed it by finding the MacBook’s new IP, updating the output section of the Parrot config, and testing connectivity before restarting the service. It was a good reminder of why stable addressing matters in a distributed monitoring setup.</p><p><strong>Telegraf service management.</strong> I set up a dedicated systemd service for the Parrot agent so it runs in the background instead of needing a terminal session. Along the way I learned to separate the systemd service definition from the Telegraf configuration, which made troubleshooting much clearer.</p><p><strong>Grafana datasource migration.</strong> I backed up my existing dashboards, updated their datasource references, and checked that the migrated queries still worked. In total, nine dashboards and 33 datasource references were migrated and verified, which pulled my monitoring setup together around VictoriaMetrics.</p><h3>10. Results and Current Implementation</h3><p>MetricFlow combines several open-source tools into one monitoring architecture. Here is what’s in place today:</p><ul><li>Two monitored environments, macOS and Parrot OS</li><li>System metric collection with Telegraf</li><li>Centralised storage in VictoriaMetrics</li><li>Docker-based deployment of the infrastructure</li><li>Grafana dashboards</li><li>A custom FastAPI backend</li><li>A React and TypeScript monitoring interface</li><li>Multi-host querying and comparison</li></ul><p>The project also taught me how the pieces of an observability stack fit together: how collection agents, time-series databases and visualisation tools communicate with each other</p><h3>11. Future Improvements</h3><p>There’s plenty I’d like to add:</p><ul><li>A stable IP or hostname for the central VictoriaMetrics instance</li><li>Alerts and notifications</li><li>Anomaly detection for unusual resource usage</li><li>More features in the custom dashboard</li><li>Stronger backup and recovery procedures</li><li>Monitoring for more Linux and macOS hosts</li></ul><p>These are plans, not features I’m claiming are finished.</p><h3>12. Conclusion</h3><p>I started MetricFlow because I wanted to understand infrastructure monitoring as more than just watching resource usage. Along the way I worked with Linux service management, networking, metric collection, time-series databases, Docker deployments, PromQL-compatible querying and full-stack development.</p><p>What I valued most was seeing how the parts work together. Telegraf, VictoriaMetrics, Grafana and my custom app stopped being separate tools and became one monitoring workflow.</p><p>MetricFlow is still a work in progress, and I’m using it to keep exploring observability and how to build reliable systems with open-source tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46f18a8e30a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I did a project using Docker.]]></title>
            <link>https://medium.com/@yashwanthreddybadam/i-did-a-project-using-docker-605194e3b188?source=rss-6326c4d63509------2</link>
            <guid isPermaLink="false">https://medium.com/p/605194e3b188</guid>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <dc:creator><![CDATA[yashwanth reddy Badam]]></dc:creator>
            <pubDate>Tue, 29 Sep 2026 07:31:59 GMT</pubDate>
            <atom:updated>2026-09-29T07:31:59.969Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>what did i learn ?</strong></p><p>docker is basically used to run our applications in a simplified way, for example, me and my 4 co-workers did a basic to-do list application and now i have to share my application to other people, and i did shared. now they were unable to run my application. why ? lets say i have used react, typescript, and python as my stack and the other guy also installed the same stack as mine, what happend ? why isn’t it working ? in my device i have installed all the latest versions of stack and other person who downloaded my application was using previous versions, so this is the conflict which most of people faces in day to day life. to overcome those kind of problems we use docker.</p><p><strong>How it works ?</strong></p><p>in docker there will be image, container and volume. “ohhh image is a picture right ? ” no. In docker, image refers to a blueprint containing everything we need to create a container. “what is container ?” Container is a running instance of image, A container is a mini isolated machine which have its own IP address and configurations which we should give before starting a project. we use conatiners to run our backend, frontend and database seperately. “why should we run them differently?” we can run them combined too but when we are running them differently we get to make them in an organised way and they run in an isolated container, which makes there will be no disturbances. “why don’t we run in our device itself ?”, “Why Using docker ? , what’s so special about docker ? ”, if we run project in our device there might be clashes with ports to communicate with each port so we have to be carefull and there will be many concequences like this so to avoid these kind of thing we will use docker, docker gives us a mini working conatiner which we can use any kind of port so everything is isolated and easy to use. “okay, now what about volume ?” Volume is used to store the data. if we have any issues with our container we might have to delete it, if we delete a container then data will be also gone, so to store the data we will use volume. even if we delete the container we don’t have worry about data. by using a image we can create as many as conatiners we want. there are some files named as dockerfile and dockerfile.yml,In dockerfile there will be instructions to build an image. for example, what are the dependencies, expose port and kind of things are included, dockerfile.yml includes the environment and setup required to start a docker network and conatiners, for example it includes data how many of conatiners, and their configurations (settings kind off), how are they connected like depends on and things like that are included in dockerfile.yml. the flow will be like;</p><p>Dockerfile → instructions to build an Image → Image → creates a Container.</p><p><strong>Docker Networking ?</strong></p><p>“what is docker networking ?” docker newtorking is how the conatiners gonna communicate between each other. indetail , lets take there are three conatiners frontend, backend and database. In docker networking these three are like three different devices. now the docker networking includes five different types of networking bridge, host, none, overlay and macvlan. we will go one by one , ‘Bridge??’ bridged netowking connects containers on the same docker host, it is most used . Host networking works as container shares the host’s network, so that the conatiners will use the same network as the host. “None” as it says it is not connected to anything, it is isolated. “overlay” Overlay network connects containers across multiple Docker hosts. macvlan gives containers their own MAC/IP on the physical network. and these are all the networks which are mainly used in Docker networking, we kinda mainly use bridged network as there is multiple networks in each docker network.</p><p><strong>What is Port Mapping?</strong></p><p>Okay, now our containers can communicate with each other using Docker’s internal network. But what if I want to access my application from my browser on my own computer? container can have its own port where the application is running, but that port is inside the container. To access that application from our computer, we can map the container’s port to a port on our host machine. for example, if i want to communicate with mac i will use port mapping as i will connect the container’s 5000 port to my laptop’s 5000 port to communicate each other using APIs. the flow will be like;</p><p>Port mapping → connects a port on our computer to a port inside the container.</p><p><strong>Docker Compose</strong></p><p>lets assume we have so many containers each time we have use commands to start and stop each one of them again and again, so we dont have to if we use docker compose it will allow us to start and build all the conainters at once using a single command so it will help a lot of time.</p><p><strong>Conclusion</strong></p><p>So, after working with Docker, I understood that Docker is not just a tool for running applications. It helps us create a consistent and isolated environment where our application can run without worrying too much about differences between developers’ systems.</p><p>Docker helps solve this by packaging our application and its required environment into an image, which can then be used to create containers. We can use Dockerfiles to define how our images are built, Docker Compose to manage multiple containers, Docker networking to allow containers to communicate, port mapping to access our applications from outside the containers, and volumes to keep important data even when containers are removed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=605194e3b188" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>