Trick to make Prometheus ignore wrong content-type on metrics endpoint

June 9, 2025

One day, I had to integrate a third-party metrics exporter into our monitoring stack (a pretty standard setup with Prometheus, Alertmanager, and Grafana). The exporter exposed a metrics endpoint that, when opened in a browser, simply displayed a list of metrics. However, when I added it to the Prometheus config as a new target, Prometheus broke with the

err: received unsupported Content-Type "application/json"

In this post, I’ll explain why that happened and how I fixed it. Hopefully, this will be useful to someone out there.

Read full post >

Blocking pod access to metadata in EKS

May 21, 2025

Some time ago, I got a task from our security team: ensure that pods running in our EKS cluster couldn’t access the instance metadata endpoint. This was part of a broader effort to tighten security and prevent potential credential exposure. In this post, I’ll walk you through how I did this with a combination of two Kubernetes egress NetworkPolicies.

Read full post >

Collection of useful Terraform modules for GCP

May 19, 2025

Hi everyone! If you, like me, work a lot with Terraform (and Infrastructure as Code in general) and GCP, you’ll probably find this collection of publicly available modules quite useful. I’m proud to say that I’ve contributed to many of them. In this post, you’ll find a collection of links to the modules developed at the University of Cambridge along with a brief description for each module.

Read full post >

How to start working with OpenAI in Python

May 6, 2025

Alright, we can’t avoid it anymore! LLMs are everywhere, and Python is the way I usually talk to them. Whether you’re building tools, bots, or just experimenting, that’s becoming impossible to ignore. In this short post I’ll show how to start working with OpenAI and Python.

Read full post >

How to Limit CPU Frequency on Fedora

May 20, 2018
🗄️ Please note: This is an older post - the info might be obsolete, but the approach still works for mentioned Fedora version.

If you, just like me, want to limit your laptop’s CPU with Fedora Linux, this small how-to is what you need. What is it for? Well, there’s a number of reasons. After limiting CPU frequency I got:

  • Better thermal mode
  • Decreasing fan noise level
  • Increasing battery life
Read full post >