<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Devops on Akshay Deshpande</title>
    <link>https://akshayd-dev.pages.dev/tags/devops/</link>
    <description>Recent content in Devops on Akshay Deshpande</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 20 Nov 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://akshayd-dev.pages.dev/tags/devops/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Prometheus: Static/Dynamic scraping on EKS</title>
      <link>https://akshayd-dev.pages.dev/posts/prometheus-static-dynamic-scraping-on-eks/</link>
      <pubDate>Thu, 20 Nov 2025 00:00:00 +0000</pubDate>
      <guid>https://akshayd-dev.pages.dev/posts/prometheus-static-dynamic-scraping-on-eks/</guid>
      <description>&lt;p&gt;This note is a mental model for &lt;strong&gt;how Prometheus discovers and scrapes metrics in Kubernetes&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The lens I want to keep throughout is:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Where will the scrape config file sit?&lt;/strong&gt;&lt;br&gt;
(Prometheus repo vs application repo)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;In which namespace will the serviceMonitor sit?&lt;/strong&gt;&lt;br&gt;
(and how Prometheus finds it)&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;At a high level there are two ways to tell Prometheus about a &lt;code&gt;/metrics&lt;/code&gt; endpoint:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Static via&lt;/strong&gt; in the Prometheus config file.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Dynamic via&lt;/strong&gt; (CRD from Prometheus Operator) with label‑based discovery.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Memory management : Java containers on K8s</title>
      <link>https://akshayd-dev.pages.dev/posts/memory-management-java-containers-on-k8s/</link>
      <pubDate>Sat, 08 Feb 2025 00:00:00 +0000</pubDate>
      <guid>https://akshayd-dev.pages.dev/posts/memory-management-java-containers-on-k8s/</guid>
      <description>&lt;p&gt;This page documents a few aspects of memory management on Java containers on K8s clusters.&lt;/p&gt;
&lt;p&gt;For java containers, memory management on K8s have various factors:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Xmx and Xms limits managed by java&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Request/limit values for the container&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;HPA policies used for scaling the number of pods&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Misconfigurations / misunderstanding of any of these parameters leads to OOMs of java containers on K8s clusters.&lt;/p&gt;
&lt;h3 id=&#34;memory-management-on-java-containers&#34;&gt;Memory management on java containers:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;-XX:+UseContainerSupport&lt;/code&gt; is enabled by default form java 10+&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
