Search code examples
javaspring-bootelasticsearchmetricsmetricbeat

ship http endpoints of a spring-boot app to elasticsearch


I'm following this article https://aboullaite.me/spring-boot-elastic-kibana/to configure my spring-boot app to send its metrics to elasticsearch using HTTPBeat, although the app is running successfully the index in elaticsearch had not been created! and there is no connection established between the app and es!


Solution

  • you should start the httpbeat app, accroding to httpbeat.yml, the app is used to get your spring boot application health and metrics and output to elasticsearch

    1. download and install the httpbeat app from https://github.com/christiangalsterer/httpbeat/releases

    2. run it with the following command

      ./httpbeat -c httpbeat.yml

    3. start your spring boot application and then you can see the data in the elasticsearch