This repository contains sources for a related medium.com article with more details. It explains how to configure Prometheus running in K3E to show metrics in Lens.
There are scripts, NodeJS code and yaml files in this repository. Before running this, your should read the article and inspect the sources.