This project shows how to get metrics from Spring Boot, using Micrometer's Prometheus registry, and index those metrics in Splunk through a metrics index.
It uses the Splunk Prometheus App to scrape metrics
from Prometheus' /federate
API.
The same principles apply to any metrics that Prometheus can read, not just Spring / Micrometer metrics.
mvn clean install
to build the demo app
docker-compose up
to bring up the app, Splunk and Prometheus
Open Splunk UI (admin:password)
You will see the collected metrics in the metrics dropdown on the left side.