My LFX Mentorship with HAMi: Making Shared GPUs Observable
I was an LFX mentee on HAMi, a CNCF Incubating project that lets several workloads share one GPU on Kubernetes, each with its own memory and compute limits. I'm pursuing a PhD and work as a research engineer on observability for AI infrastructure, so working on GPU observability in HAMi was a good fit for me.
How I got in
I first heard about HAMi in a talk by its maintainers at KubeCon Europe 2025. I was interested in GPU sharing because using GPUs efficiently is important in AI infrastructure, and I wanted to learn more. Later, I went to KubeCon Japan 2026, met a lot of great people and visited many booths, including the HAMi booth. That's where I first met Reza Jelveh, who later became one of my mentors. We had a short technical chat about dynamic MIG. A few weeks later, I attended Open Source Summit Korea, where I met Reza again by chance. I went over to say hello, and this time we talked about what was new in HAMi. Around that time, I had also seen a LinkedIn post from HAMi about the LFX Mentorship program, so I asked him about it.
The observability project looked like a good fit, because I already had some experience with Prometheus, Grafana, OpenTelemetry, Kubernetes and HAMi. However, I was unsure if I had enough knowledge and experience to apply. I had opened two PRs to HAMi-core before, but neither had been merged. When I asked Reza whether I should apply, he said something like: "Be confident, believe in yourself, and don't be afraid to try something new." That advice has stayed with me ever since.
After that conversation, I went home and started working on my application. I spent almost a week updating my public profile and CV and writing my cover letter. In my cover letter, I included my proposal and explained why I wanted to join the LFX Mentorship program, why the project matched my background, and how it could help me in my future work.
Even after submitting my application, I still had some doubts. But when I received the acceptance email from LFX, I was very happy to find out that I was one of the four mentees selected by HAMi. I'm grateful to HAMi for giving me this opportunity.
In the first few weeks, I followed my mentor Mesut Oezdil's structured plan and presented what I found to my mentors at each step. My first issue and my first PR came in week two, in HAMi-DRA. The goal was to make the metric names follow Prometheus conventions and keep them consistent with the rest of HAMi (HAMi-DRA#144). It was a small change, but it was my first merged contribution during the mentorship.
What I worked on
So, what did I do after that?
-
Fixing metric bugs. I fixed three metric bugs: per-container metrics that were still kept after a pod finished (#3294), a quota ratio that ignored the memory factor (#3339), and an issue where HAMi-DRA could report an incorrect device index (HAMi-DRA#226). I also deprecated a duplicate metric and a redundant label before removing them in the following release, giving users time to update their existing dashboards.
-
Improving the Grafana dashboard. HAMi already exported metrics for each pod's GPU core use against its allocation, idle containers, quota use per namespace and MIG placement, but these metrics were not shown on the dashboard. I added new panels to the Grafana dashboard.

-
Alerting and runbooks. Users cannot watch a dashboard all day, so the next step was to add alerts. I wrote an alerting guide with seven alerts, each with a runbook. Users can adjust the thresholds to suit their clusters, since HAMi supports different types of hardware.
-
SLIs and SLOs. Alerts tell users when something is wrong, but users also need to understand how HAMi performs over time. I proposed six SLIs based only on HAMi metrics (#3376): availability, freshness, reliability, latency, correctness and completeness. Some SLIs required new metrics, while others could use existing ones. I also wrote an SLIs and SLOs guide to explain these SLIs and how to set SLOs based on them.
-
OpenTelemetry tracing. Metrics can tell you how many pods failed, but not which pod, or at which step. That's where tracing comes in. I designed and implemented OpenTelemetry tracing for GPU pod placement in HAMi. By propagating trace context through pod annotations, we can see the scheduler's Filter and Bind steps and the device plugin's Allocate step in a single trace. The trace also shows which node and GPUs were selected.

During the twelve weeks, 30 of my PRs were merged across HAMi, HAMi-DRA and the HAMi website. The dashboard panels and the alerting guide work with HAMi v2.11.0, and the SLI metrics and tracing are planned for the next release, v2.12.0.
What I learned
Learn step by step. In our first meeting, Mesut told me to take my time instead of trying to understand everything at once. His plan went from observability fundamentals, to each repository in depth, to observability across all of them, and it made a big project manageable.
Present to a technical audience. Presenting to engineers is different from presenting at an academic conference. Mesut told me that the audience wants to take away something useful. So I should say the main idea clearly and briefly. Sometimes two or three sentences are enough instead of a whole paragraph. I should also use diagrams, real code and real results instead of a lot of text. Now, before every talk, issue or PR description, I ask myself: what is the one thing I want to convey?
Early on, open small PRs, one at a time. They are easier to manage and review.
Use tests, then check a real cluster. Unit tests are important because they help me check whether my code behaves as expected before I push it. If I forget to run the tests, HAMi's CI runs them on every PR. If I miss some test cases, Codecov points out which changed lines are not covered by tests. However, unit tests only cover the cases I have thought of. Testing on a real cluster can help me find issues that unit tests might miss. So I also build the image and check the actual output on a test cluster before opening a PR.
Design for the general case. Working with Reza changed how I think about design, especially when I ran tests and shared my findings and perspective for his talk on cross-platform observability at Observability Summit Europe. For example, the HAMi scheduler places pods across different types of hardware, so its observability features should work across these platforms as well. Now I always ask myself whether a design would work in other cases too.
Write about what you learn and share it. I learned this from my mentor Jimmy Song, who often writes about what he learns and shares it with the community. Writing helps me review what I have learned, understand it better and remember it longer. It may also help others who are interested in the same topic.
Advice for future mentees
Here is my advice for anyone thinking about applying, current mentees, and new contributors.
- Be confident and go for it. If you're hesitating or doubting your ability, as I did, give yourself a chance to try something outside your comfort zone.
- Open an issue before writing code. If you find something that could be improved, open an issue first. This way, you can get feedback from maintainers and check whether your idea fits the project before you start implementing it.
- Follow what the repository already does. Before writing new code, look at how the project solves similar problems and follow the same approach. This keeps the code consistent and makes it easier to review.
- Survey prior work. Before adding something new to the project, look at existing designs and implementations in other projects. For tracing, I studied how Kubernetes traces the API server and kubelet, and how Tekton keeps trace context in an annotation. For alerts, I looked at the kubernetes-mixin rules and the Prometheus Operator runbooks. If you find no prior work at all, you may have found a research topic.
- Talk with the maintainers. Share your ideas and your understanding of the project with them. If you're unsure about something, don't hesitate to ask.
What's next
I will keep working on observability in HAMi. After that, I want to grow into other areas of HAMi and contribute to other projects in the HAMi organization. I would also like to keep writing technical posts about what I learn, both to share it with others who may need it and to help me retain what I've learned.
Thanks
Thank you to my mentors Mesut Oezdil, Reza Jelveh and Jimmy Song, to the HAMi community for the reviews and support, and to the Linux Foundation for the LFX Mentorship program.
If you run HAMi and still cannot see something you need on your GPUs, I would like to hear about it: open an issue, or find the chat channels and community meetings on the HAMi community page. If you are thinking about applying, open projects are listed on the LFX Mentorship site. For me, it all started with one question to a maintainer.