Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 920 Bytes

File metadata and controls

25 lines (14 loc) · 920 Bytes

Spring Boot Micrometer Prometheus Metrics Splunk indexing

Introduction

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.

See Prometheus Federation

The same principles apply to any metrics that Prometheus can read, not just Spring / Micrometer metrics.

Setup

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.

screenshot