Spring Actuator has a metrics endpoint.
How do I get this data into Splunk?
Each endpoint has a snapshot of the current metric value.
How do I send data to splunk over a time period?
I would either need Splunk to call the REST endpoint periodically or have my application log or something.
There is an app for that called REST API Modular Input:
REST API Modular Input