38%
Relabeling: Rules and Actions
To demonstrate relabeling actions, we will use a simple Prometheus exporter demo application that exports custom metrics with multiple labels. You can run this application locally using Docker.
Install Docker:
curl -fsSL https://get.docker.com | VERSION=27.0 sh
Run the Prometheus exporter demo application:
docker run -d -p 8000:8000 eon01/prometheus-exporter-demo:v0
Test whether the application is running and exporting metrics:
curl http://localhost:8000/metrics
Observability with Prometheus and Grafana
A Complete Hands-On Guide to Operational Clarity in Cloud-Native SystemsEnroll now to unlock all content and receive all future updates for free.
