Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
embedded
remote
README.adoc
prometheus.yml
run-prometheus.sh

README.adoc

Infinispan Spring-Boot samples

Covers
  • ✓ Embedded cache

  • ✓ Remote cache

  • Actuator cache metrics

  • ✓ Integration with Prometheus

Building instructions

Invoke mvn clean install for the embedded or the remote example

Running instructions

Embedded

mvn spring:boot run

Remote

Use docker or download and run the Infinispan Server

Docker
docker run -it -p 11222:11222 jboss/infinispan-server:9.4.4.Final
Server
cd UNZIP_SERVER_PATH/bin/
./standalone.sh

Display actuator stats

You will see in http://localhost:8080/actuator/metrics a list of metrics available. Cache metrics are prefixed by "cache."

Display each metric for each cache using tags. For example for the 'puts' stats in the basque-names cache: http://localhost:8080/actuator/metrics/cache.puts?tag=name:basque-names

Run Prometheus

For docker for mac or windows, execute run-prometheus.sh. The prometheus.yml file contains the host.docker.internal binding that will allow prometheus scrap the metrics exposed by spring actuator.