<?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 Puneet Gupta on Medium]]></title>
        <description><![CDATA[Stories by Puneet Gupta on Medium]]></description>
        <link>https://medium.com/@pugupta?source=rss-bd8e40181b6f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uikhHSemsVcDj_JDEGpX7w.jpeg</url>
            <title>Stories by Puneet Gupta on Medium</title>
            <link>https://medium.com/@pugupta?source=rss-bd8e40181b6f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:33:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pugupta/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[Garuda — Journey towards Unified Operator for Observability Platform: Part 1]]></title>
            <link>https://medium.com/@pugupta/garuda-journey-towards-unified-operator-for-observability-platform-part-1-82b453a1111a?source=rss-bd8e40181b6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/82b453a1111a</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[gitops]]></category>
            <category><![CDATA[kubernetes-operator]]></category>
            <dc:creator><![CDATA[Puneet Gupta]]></dc:creator>
            <pubDate>Fri, 13 Jan 2023 13:57:16 GMT</pubDate>
            <atom:updated>2023-01-13T13:57:16.790Z</atom:updated>
            <content:encoded><![CDATA[<h3>The journey towards the unified k8s operator for observability platform: Part 1</h3><p>I joined Palo Alto Networks in August 2022 as a staff software engineer in the cloud infrastructure and platform engineering team(i.e. You can learn more about our team in the <a href="https://medium.com/engineering-at-palo-alto-networks/platform-engineering-at-palo-alto-networks-part-2-315bd7b0fbfa">Platform Engineering at Palo Alto Networks blog</a>)<strong>.</strong></p><p>In this blog, I would like to talk about why we built the k8s operator for our internal observability platform, &quot;<strong>Garuda</strong>”. Let’s start with a quick background on our observability platform(Garuda), <strong>Garuda</strong> is built using proven open-source technologies such as grafana, grafana mimir, grafana Loki, grafana tempo and <a href="https://vector.dev/">vector. dev.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8xU4tjS953gUGUisOonwhg.png" /></figure><h3>High-level architecture of the Garuda platform:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6Pwnpw9zZD8xtudZ" /></figure><ol><li><strong>Unified agent</strong></li></ol><ul><li>The unified agent supports the collection of logs, metrics, traces and custom metrics from GKE, GCE, Data Center servers and Virtual Machines.</li><li>Available as helm chart</li></ul><p><strong>2. Ingress pipelines</strong></p><ul><li>Data from agents are shipped via GRPC and terminated in the Garuda Platform at the ingress pipeline.</li><li>Based on the tenant, and type of traffic (log/metric), data is posted into the relevant Kafka topic</li></ul><p><strong>3. Kafka</strong></p><ul><li>Tenant Isolation: Data of each tenant is in different topics</li></ul><p><strong>4. Vector aggregator</strong></p><ul><li>Supports Log to metrics conversion</li><li>Support for various aggregation operations</li></ul><p><strong>5. Mimir</strong></p><ul><li>Metrics are stored in GCS/S3 buckets.</li><li>Refer: <a href="https://grafana.com/docs/mimir/latest/operators-guide/architecture/about-grafana-mimir-architecture/">Here</a> for architectural details</li></ul><p><strong>6. Tempo</strong></p><ul><li>Traces are retained in Tempo</li></ul><p><strong>7. Loki</strong></p><ul><li>Logs are shipped to Loki</li><li>Support out-of-order data delivery</li></ul><p><strong>8. Alert manager</strong></p><ul><li>Grafana/Mimir alert manager</li><li>Slack &amp; PD Integration</li></ul><p><strong>9. Dashboards</strong></p><ul><li>Pre-canned dashboards</li><li>Supports Log to metric</li></ul><h3>Why a unified operator?</h3><p>As mentioned above, the main components in the <strong>Garuda observability stack</strong> are:</p><ul><li><strong><em>Mimir</em></strong><em> — for metrics collection &amp; creating alerts &amp; recording rules.</em></li><li><strong><em>Loki</em></strong><em> — for Logs collection &amp; creating alerts &amp; recording rules.</em></li><li><strong><em>Grafana</em></strong><em> — visual UI for exploring and creating metrics dashboards, data sources etc.</em></li><li><strong><em>Mimir Alertmanager — </em></strong><em>responsible for group and route alerts to many integrations, such as email, Slack, and Pagerduty.</em></li></ul><p>One of the key requirements of Garuda was to support multi-tenancy i.e. every service team at Palo Alto Networks is considered a tenant. So, resource creation was done manually or using various cli tools based on the tenant’s requirements. For example — below are available CLI tools for logs, metrics, alerts and dashboards -</p><ul><li><a href="https://grafana.com/docs/loki/latest/tools/logcli/"><strong><em>LogCli</em></strong></a><em> — Loki resources</em></li><li><a href="https://grafana.com/docs/mimir/latest/operators-guide/tools/mimirtool/"><strong><em>Mimirtool</em></strong></a><em> — Mimir resources</em></li><li><a href="https://github.com/grafana-operator/grafana-operator"><strong><em>Grafana Operator </em></strong></a><em>— Grafana</em></li></ul><p>The above tools have some limitations that I’d like to highlight below</p><p><strong>1. Knowledge of CLI tools</strong> <strong>and their usage</strong></p><p>Every time a new tenant is being onboarded into Garuda, someone from the platform team needs to be involved in creating relevant resources and even after onboarding, still some of the resources required to be created or updated like new dashboards or new alerts &amp; recording rules etc due to the complexity of these tools.</p><p><strong>2. Limitations of existing CLI tools</strong></p><p><strong>Grafana Operator</strong></p><ul><li><em>Doesn’t have Multi-tenancy GitOps support</em></li><li><em>Is limited to the dashboards, data source, notification and grafana configuration.</em></li><li><em>Doesn’t support creating alerts &amp; recording rules.</em></li></ul><p><strong>Mimirtool</strong></p><ul><li><em>Is limited to metric-based rules &amp; alert manager notification policies.</em></li><li><em>Mimir &amp; Loki provide the CLI tool, but to upload a rule we needed rules in the config map mounted to a pod where the CLI tool is installed.</em></li><li><em>Has no GitOps solution available to create rules.</em></li><li><em>Need an extra pod for MimirTool.</em></li></ul><p><strong>LogCli</strong></p><ul><li><em>Is limited to log-based alert rules.</em></li><li><em>Has no GitOps solution available to create rules.</em></li><li><em>Need an extra pod for LogCli.</em></li></ul><blockquote>As you can see, we needed multiple tools to create dashboards, alerts and recording rules and there is no unified solution for this problem in open source at least we haven’t found one.</blockquote><h4><strong>3. Management of tenant dashboards, alerts and recording rules</strong></h4><p>As an internal Saas solution, Garuda supports 10+ GCP regions for multiple tenants. Let’s say we need to create an alert rule for one of the tenants for which, we need to manually load rules in different regions using available CLIs.</p><p>Now, let’s discuss why management of dashboards, alerts and alert manager config etc for multiple tenants is tricky.</p><ul><li><strong>Ownership problem</strong></li></ul><p>Dashboards have <strong>no inherent</strong> ownership. <strong>The development team creates</strong> and <strong>modifies</strong> dashboards, but migrating the dashboards is the Infrastructure team’s responsibility.</p><p>The infrastructure team is your<strong> </strong>go-to resource for dashboard maintenance<strong> </strong>support<strong>.</strong></p><ul><li><strong>Inconsistent dashboards in different environments</strong></li></ul><p>Many times we update a dashboard for a specific need we have at the time, and then forget to update it in all other environments. This creates inconsistency across environments.</p><ul><li><strong>Lost dashboards</strong></li></ul><p><strong>Developers often </strong>create dashboards for a specific need and later when they need that dashboard they forget the name they gave it and ask the platform team to find them To do<strong>.</strong></p><ul><li><strong>Disaster recovery and migration</strong></li></ul><p>When it comes to disaster <strong>recovery,</strong> creating a new environment or migrating an existing <strong>environment</strong> to a new cluster, <strong>the infrastructure team needs to</strong> restore everything to the desired state and prepare <strong>any</strong> necessary adjustments.</p><ul><li><strong>Better cost &amp; time management</strong></li></ul><p>Decreasing platform team dependency indirectly saves cost &amp; time.</p><p><strong>So, what’s the solution? Our answer is:</strong> Unified k8s operator with GitOps support</p><p>One of the salient features that Garuda offers is the GitOps model to support “Bring your own dashboards and alerts’’. We addressed all the above problems with the GitOps model as depicted in the figure below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xnt4X--gJoYR7Boa" /></figure><p>We have chosen ArgoCD to be our CD solution and GitLab for CI to implement GitOps workflows.</p><h4><strong>Proposed workflow</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a9GgjaPSI2hTmNTN" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0-GyhvG_nuCZJOIX" /></figure><p>In this flow,</p><p><strong>Gitlab repo</strong></p><p>Every new client on-boarded on garuda will have one repo where they can put their dashboards, alerts and other resources etc to sync.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iTQaVlJ4L6dMniybvBQwxQ.png" /></figure><p><strong>Helm Chart</strong></p><p>Gitab CI will run and publish a new helm chart Version for every MR/Commits</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MwMFeaus_a0WLQBNXB7cTQ.png" /></figure><p><strong>ArgoCD</strong></p><p>Continuously watches a specified GitLab repository, comparing it with the currently deployed manifests in the cluster, and effectively runs kubectl apply -f &lt;all&gt; on them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v3D1tWkPh9uyKoILGAtFmA.png" /><figcaption>Argo CD APP</figcaption></figure><p><strong>Garuda Operator</strong></p><blockquote><strong>Garuda operator is helping to achieve GitOps and manage clients&#39; dashboards, alerts etc with less platform-team involvement</strong></blockquote><p>Unified k8s Operator i.e automated solution to create a dashboard, alerts etc for all garuda components i.e Mimir, Loki, Grafana etc</p><p><strong><em>Benefits of this workflow:</em></strong></p><ul><li><em>More developer independence, Less overhead for the platform teams</em></li><li><em>Consistency</em></li><li><em>No more lost dashboards</em></li><li><em>Increasing Velocity</em></li></ul><p>let&#39;s deep dive into Garuda Operator and other GitOps components i.e CI/CD etc will publish a separate blog.</p><h3><strong>Key capabilities of Garuda operator:</strong></h3><ul><li><em>Create Alert &amp; Recording Rules for Mimir &amp; Loki.</em></li><li><em>Create Mimir Alertmanager contact points &amp; notification policy.</em></li><li><em>Create AlertManger config using Prometheus operator alermanagerconfig CR.</em></li><li><em>Create Datasource, Organisation &amp; Dashboard on grafana using CR.</em></li><li><em>Multiple Tenant Support.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GlUhk6P2hCoz20OxE5c9LQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FeasZzXADy9DVlrCmVAVmw.png" /><figcaption>High-Level View: Garuda Operator</figcaption></figure><p>Refer for more details on the <a href="https://kubernetes.io/docs/concepts/extend-kubernetes/operator/">k8s operator</a>.</p><p>Now that you know how the k8s operator works, let&#39;s deep dive into the technical details of the garuda operator.</p><p>As mentioned above, the dashboards, alerts, config etc are present in the GitLab repo with CR. On every change, it will trigger the CI pipeline and publish a new helm chart bundle in the artifactory. The CR will invoke the CRUD events in the operator to perform create and update dashboards, alerts etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QnQzE_3TeWMGjuQurC4JHA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rRCFYYrJ0IuDpIZU" /><figcaption>GrafanaDashboard CR operator Flow</figcaption></figure><p><em>Currently, Garuda Operator Support 7 CR’s (i.e Custom Resource)</em></p><ul><li><strong><em>MimirRule CR</em></strong></li><li><strong><em>LokiRule CR</em></strong></li><li><strong><em>GrafanaDashboard CR</em></strong></li><li><strong><em>GrafanaDatasource CR</em></strong></li><li><strong><em>GrafanaOrganisationCR</em></strong></li><li><strong><em>MimirAlertmanger CR</em></strong></li><li><strong><em>Promethues Alertmanager CR</em></strong></li></ul><blockquote>These CRs are used to onboard multiple tenants. we will cover this in detail in the next part of this blog series.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z4Ky8mUvOBa9AENiF2Zrfw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*suzXbr2l_C0p8oaPLIfG0A.gif" /><figcaption>Grafana Dashboard &amp; Alert &amp; Recording Rule</figcaption></figure><blockquote>The technical aspect of the garuda-operator is covered in another blog as part of this blog series</blockquote><p>Garuda Operator is a unified solution for the observability platform where it creates resources for a complete observability stack. This kind of solution is currently not available in the community. This solution will be made available in the community as an open-source project.</p><p><strong>Wrapping up</strong></p><p>It was never easy to attain, a consistent, reliable and accurate monitoring GitOps solution. With Garuda Operator, the end-to-end solution is available. If you face similar challenges, you are more than welcome to share them in the comments section or reach out through <a href="https://www.linkedin.com/in/puneetggupta/"><strong>LinkedIn</strong></a>.</p><p><strong>Observability platform team at Palo Alto Networks</strong></p><ul><li>Pradeep V (vpradeepkum@gmail.com)</li><li><a href="https://www.linkedin.com/in/peter-kirubakaran-n-a3225621/">Peter Kirubakaran N</a></li><li><a href="https://www.linkedin.com/in/shubhamranjan/">Shuhbam Ranjan</a></li><li><a href="https://www.linkedin.com/in/puneetggupta/">Puneet Gupta</a></li></ul><p><strong>Thanks for reading!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82b453a1111a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>