简体   繁体   English

将 spring-boot 应用程序的 http 端点发送到 elasticsearch

[英]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!我正在关注这篇文章https://aboullaite.me/spring-boot-elastic-kibana/来配置我的 spring-boot 应用程序以使用HTTPBeat将其指标发送到elasticsearch ,尽管该应用程序运行成功,elaticsearch 中的索引没有被创造了! and there is no connection established between the app and es!并且app和es之间没有建立连接!

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您应该启动 httpbeat 应用程序,根据 httpbeat.yml,该应用程序用于获取您的 Spring Boot 应用程序运行状况和指标并输出到 elasticsearch

  1. download and install the httpbeat app from https://github.com/christiangalsterer/httpbeat/releaseshttps://github.com/christiangalsterer/httpbeat/releases下载并安装 httpbeat 应用程序

  2. run it with the following command使用以下命令运行它

    ./httpbeat -c httpbeat.yml ./httpbeat -c httpbeat.yml

  3. start your spring boot application and then you can see the data in the elasticsearch启动您的spring boot应用程序,然后您可以在elasticsearch中看到数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM