In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is to share with you the content of a sample analysis of springcloud's integrated zipkin-server memory log monitoring. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Zipkin
Zipkin is an open source distributed real-time data tracking system (Distributed Tracking System), which is designed based on the thesis of Google Dapper and contributed by Twitter. Its main function is to gather real-time monitoring data from various heterogeneous systems.
Zipkin mainly includes four modules.
-Collector receives or collects data transmitted by each application
-Storage stores the data received or collected. Memory,MySQL,Cassandra,ElasticSearch is currently supported, and it is stored in memory by default.
-API (Query) is responsible for querying the data stored in Storage and providing simple JSON API to obtain data, which is mainly provided to web UI for use.
-Web provides a simple web interface
The following introduces you to the problem of springcloud integrating zipkin-server memory log monitoring through the code, as shown below:
1. Pom.xml join
Io.zipkin.java zipkin-server 2.12.3 org.apache.logging.log4j log4j-slf4j-impl io.zipkin.java zipkin-autoconfigure-ui 2.12.3 io.zipkin.java zipkin-autoconfigure-collector-kafka 2.12.9 io.zipkin.java zipkin-autoconfigure-storage-elasticsearch-http 2.8.4
2. Application.properties configuration file
Spring.application.name=fhcloud-zipkin-serverserver.port=8003# enables security authentication user name and password spring.security.basic.enabled=truespring.security.user.name=adminspring.security.user.password=root# points to the registry eureka.instance.leaseRenewalIntervalInSeconds=10eureka.client.registryFetchIntervalSeconds=5eureka.client.serviceUrl.defaultZone= http://127.0.0.1:8761/eureka/,http://127.0.0.1:8762/eureka/#actuator configuration management.endpoints.web.exposure.include=*management.endpoints.web.exposure.exclude=env Beansmanagement.security.enabled=falsemanagement.metrics.web.server.auto-time-requests=fals
3. Launch class FHmainApplication.java
Package org.fh;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.cloud.netflix.eureka.EnableEurekaClient;import zipkin2.server.internal.EnableZipkinServer;/** * description: launch class * www.1b23.com * / @ SpringBootApplication@EnableEurekaClient@EnableZipkinServerpublic class FHmainApplication {public static void main (String [] args) {SpringApplication.run (FHmainApplication.class, args);}} Thank you for reading! This is the end of the article on "sample Analysis of springcloud Integrated zipkin-server memory Log Monitoring". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.