Spring Boot and Micrometer with InfluxDB Part 2: Adding InfluxDB
Part 2 of Spring Boot and Micrometer with InfluxDB where I'll show how to add InfluxDB and add a docker instance.
Join the DZone community and get the full member experience.Join For Free
Since we added our base application it is time for us to spin up an InfluxDB instance.
We shall follow a previous tutorial and add a docker instance.
docker run –rm -p 8086:8086 –name influxdb-local influxdb
Time to add the micrometer InfluxDB dependency on our pom
It's also time to add the configuration through the application.yaml
Let’s spin up our application and do some requests.
After some time we can check the database and the data contained.
That’s pretty awesome. Let’s check the endpoints accessed.
Pretty great! The next step would be to visualise those metrics.
Published at DZone with permission of Emmanouil Gkatziouras, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.