springcloud之链路追踪zipkin -欧洲杯足彩官网

`
zw7534313
  • 浏览: 1250580 次
  • 性别:
  • 来自: 北京
博主相关
  • 博客
  • 微博
  • 相册
  • 收藏
  • 社区版块
    • ( 0)
    • ( 21)
    • ( 1)
    存档分类
    最新评论

    springcloud之链路追踪zipkin

    1.java -jar zipkin-server-2.23.18-exec.jar --storage_type=mysql --mysql_host=127.0.0.1 --mysql_tcp_port=3306 --mysql_db=zipkin --mysql_user=user --mysql_pass=1000 --rabbit_addresses=127.0.0.1:5672 --rabbit_user=guest --rabbit_password=guest


    2.创建数据库
    create database `zipkin`
            use zipkin;
    create table if not exists zipkin_spans (
    `trace_id_high` bigint not null default 0 comment 'if non zero, this means the trace uses 128 bit traceids instead of 64 bit',
    `trace_id` bigint not null,
    `id` bigint not null,
    `name` varchar(255) not null,
    `remote_service_name` varchar(255),
    `parent_id` bigint,
    `debug` bit(1),
    `start_ts` bigint comment 'span.timestamp(): epoch micros used for endts query and to implement ttl',
    `duration` bigint comment 'span.duration(): micros used for minduration and maxduration query',
      primary key (`trace_id_high`, `trace_id`, `id`)
    ) engine=innodb row_format=compressed character set=utf8 collate utf8_general_ci;
    alter table zipkin_spans add index(`trace_id_high`, `trace_id`) comment 'for gettracesbyids';
    alter table zipkin_spans add index(`name`) comment 'for gettraces and getspannames';
    alter table zipkin_spans add index(`remote_service_name`) comment 'for gettraces and getremoteservicenames';
    alter table zipkin_spans add index(`start_ts`) comment 'for gettraces ordering and range';
    create table if not exists zipkin_annotations (
    `trace_id_high` bigint not null default 0 comment 'if non zero, this means the trace uses 128 bit traceids instead of 64 bit',
    `trace_id` bigint not null comment 'coincides with zipkin_spans.trace_id',
    `span_id` bigint not null comment 'coincides with zipkin_spans.id',
    `a_key` varchar(255) not null comment 'binaryannotation.key or annotation.value if type == -1',
    `a_value` blob comment 'binaryannotation.value(), which must be smaller than 64kb',
    `a_type` int not null comment 'binaryannotation.type() or -1 if annotation',
    `a_timestamp` bigint comment 'used to implement ttl; annotation.timestamp or zipkin_spans.timestamp',
    `endpoint_ipv4` int comment 'null when binary/annotation.endpoint is null',
    `endpoint_ipv6` binary(16) comment 'null when binary/annotation.endpoint is null, or no ipv6 address',
    `endpoint_port` smallint comment 'null when binary/annotation.endpoint is null',
    `endpoint_service_name` varchar(255) comment 'null when binary/annotation.endpoint is null'
    ) engine=innodb row_format=compressed character set=utf8 collate utf8_general_ci;
    alter table zipkin_annotations add unique key(`trace_id_high`, `trace_id`, `span_id`, `a_key`, `a_timestamp`) comment 'ignore insert on duplicate';
    alter table zipkin_annotations add index(`trace_id_high`, `trace_id`, `span_id`) comment 'for joining with zipkin_spans';
    alter table zipkin_annotations add index(`trace_id_high`, `trace_id`) comment 'for gettraces/byids';
    alter table zipkin_annotations add index(`endpoint_service_name`) comment 'for gettraces and getservicenames';
    alter table zipkin_annotations add index(`a_type`) comment 'for gettraces and autocomplete values';
    alter table zipkin_annotations add index(`a_key`) comment 'for gettraces and autocomplete values';
    alter table zipkin_annotations add index(`trace_id`, `span_id`, `a_key`) comment 'for dependencies job';
    create table if not exists zipkin_dependencies (
    `day` date not null,
    `parent` varchar(255) not null,
    `child` varchar(255) not null,
    `call_count` bigint,
    `error_count` bigint,
      primary key (`day`, `parent`, `child`)
    ) engine=innodb row_format=compressed character set=utf8 collate utf8_general_ci;

    3.application.yml
    spring:
           zipkin:
          base-url: http://127.0.0.1:9411
          discoveryclientenabled: false
          sender:
             type: web
       sleuth:
          sampler:
             probability: 1.0

    4.jar

                org.springframework.cloud
                spring-cloud-starter-zipkin
                2.1.0.release
           



    0
    0
    分享到:
    评论

    相关推荐

      一份springcloud链路追踪的demo源码,包括了在不使用rabbitmq的情况下得到链路追踪demo和使用了rabbitmq的情况下的链路追踪demo,其中app1,app2使用了rabbitmq的demo,app3,app4未未使用rabbitmq的demo,

      springcloud链路追踪-spring cloud sleuth 和 zipkin 介绍 & windows 下使用初步

      毕业设计基于springcloud微服务分布式链路追踪系统源码 追踪实现 使用zipkin sleuth实现 这个是比较成熟的分布式链路追踪实现方案 拦截器自定义实现 基于google dapper 论文,进行自定义实现。 原理: traceid :...

      主要介绍了springcloud可视化链路追踪系统zipkin部署过程,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下

      zipkin为分布式链路调用监控系统,聚合各业务系统调用延迟数据,达到链路调用监控跟踪。 zipkin主要涉及四个组件 collector storage search web ui 1.collector接收各service传输的数据 2.cassandra作为storage的一...

      使用spring cloud sleuth rabbitmq zipkin实现微服务分布式链路追踪,springcloud版本使用的是greenwich.sr1

      主要介绍了详解spring cloud分布式整合zipkin的链路跟踪,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧

      创建zipkin数据库,导入zipkin.sql,运行后访问http://127.0.0.1:9100/ 模块整合说明查看《模块整合说明.txt》

      用于springcloud服务链路追踪构建zipkin serve。。

      spring cloud是一个基于spring boot的开发工具包,用于快速构建分布式系统和微服务架构。它提供了一系列的组件和工具,以简化分布式系统的开发和...5. 链路追踪:spring cloud支持链路追踪的功能,通过集成zipkin和....

      链路追踪组件包括spring cloud sleuth和zipkin,用于收集调用链路上的数据。 spring cloud还提供了一系列的子项目和工具,如spring cloud bus(事件/消息总线)、spring cloud security(基于springsecurity的安全...

      - [springcloud(十二):使用spring cloud sleuth和zipkin进行分布式链路跟踪](http://www.ityouknow.com/springcloud/2018/02/02/spring-cloud-sleuth-zipkin.html) - [springcloud(十三):spring cloud consul ...

      主要介绍了springcloud整合分布式服务跟踪zipkin的实现,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

      spring cloud 链路追踪系列教程(一):spring cloud sleuth 整合 zipkin 分布式系统微服务端点监控:spring boot admin spring cloud 端点监控系列教程(一):spring boot admin 监控 分布式系统微服务中间件:...

      springcloud项目基础demo全部文件夹,包括文档桌面,代码中有说明与注释,附带参考的博客地址 ...zipkin-server ---- 链路追踪项目 参考博客地址: https://blog.csdn.net/qq_33333654/article/details/103401787

      rabbitmq柔性事务方案、springcloud-gateway网关、feign远程调用、sleuth zipkin链路追踪系统、spring cache缓存、springsession跨子域session同步方案、基于elasticsearch7全文检索、异步编排与线程池、压力测试...

      spring cloud 微服务开发模型全家桶demo:包括注册中心eureka集群、熔断hystrix、聚合熔断监控turbine、网关zuul集群、生产者服务provider集群、消费者服务consumer集群、分布式全链路追踪zipkin。下载后使用idea...

      spring-cloud-project ...spring cloud zipkin 链路追踪组件 spring cloud zuul 网关服务和熔断组件 spring cloud gateway 网关路由服务 (非阻塞式api) deeplearning4j 深度学习框架(人工智能的一个纯java

      服务拆分 业务层 模块 项目名 描述 乘客端 api-passenger 乘客端 司机端 api-driver ...链路追踪 cloud-zipkin-ui 基础common 所有服务都引用的一个 二方库。 模块 项目名 通用,工具类,异常,校验 internal-common

      集成 zipkin 链路追踪;集成 txlcn、seata 分布式事务等。 jeesite cloud 具备 jeesite 5.x 的所有功能,是在 jeesite 5.x 基础之上,完成的 spring cloud 分布式系统套件的整合。它利用 jeesite 5.x 的开发便利性...

    global site tag (gtag.js) - google analytics
    网站地图