首页 > 其他分享 >docker安装zipkin

docker安装zipkin

时间:2024-03-08 12:33:34浏览次数:22  
标签:COMMENT trace zipkin -- docker NULL 安装 id

命令如下,调整后执行即可:

docker run --name zipkin \
-p 9411:9411 \
--restart=always \
-e STORAGE_TYPE=mysql \
-e MYSQL_HOST=ip地址 \
-e MYSQL_TCP_PORT=3306 \
-e MYSQL_DB=连接数据库名称 \
-e MYSQL_USER=root \
-e MYSQL_PASS=数据库密码 \
-d openzipkin/zipkin:2.24

访问地址:http://ip:9411/zipkin/

数据库中需要创建以下表,无则创建,有则忽略:

--
-- Table structure for table `zipkin_annotations`
--
 
DROP TABLE IF EXISTS `zipkin_annotations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `zipkin_annotations` (
  `trace_id_high` bigint(20) NOT NULL DEFAULT '0' COMMENT 'If non zero, this means the trace uses 128 bit traceIds instead of 64 bit',
  `trace_id` bigint(20) NOT NULL COMMENT 'coincides with zipkin_spans.trace_id',
  `span_id` bigint(20) 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(11) NOT NULL COMMENT 'BinaryAnnotation.type() or -1 if Annotation',
  `a_timestamp` bigint(20) DEFAULT NULL COMMENT 'Used to implement TTL; Annotation.timestamp or zipkin_spans.timestamp',
  `endpoint_ipv4` int(11) DEFAULT NULL COMMENT 'Null when Binary/Annotation.endpoint is null',
  `endpoint_ipv6` binary(16) DEFAULT NULL COMMENT 'Null when Binary/Annotation.endpoint is null, or no IPv6 address',
  `endpoint_port` smallint(6) DEFAULT NULL COMMENT 'Null when Binary/Annotation.endpoint is null',
  `endpoint_service_name` varchar(255) DEFAULT NULL COMMENT 'Null when Binary/Annotation.endpoint is null',
  UNIQUE KEY `trace_id_high` (`trace_id_high`,`trace_id`,`span_id`,`a_key`,`a_timestamp`) COMMENT 'Ignore insert on duplicate',
  KEY `trace_id_high_2` (`trace_id_high`,`trace_id`,`span_id`) COMMENT 'for joining with zipkin_spans',
  KEY `trace_id_high_3` (`trace_id_high`,`trace_id`) COMMENT 'for getTraces/ByIds',
  KEY `endpoint_service_name` (`endpoint_service_name`) COMMENT 'for getTraces and getServiceNames',
  KEY `a_type` (`a_type`) COMMENT 'for getTraces and autocomplete values',
  KEY `a_key` (`a_key`) COMMENT 'for getTraces and autocomplete values',
  KEY `trace_id` (`trace_id`,`span_id`,`a_key`) COMMENT 'for dependencies job'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED;
/*!40101 SET character_set_client = @saved_cs_client */;
 
--
-- Dumping data for table `zipkin_annotations`
--
 
LOCK TABLES `zipkin_annotations` WRITE;
/*!40000 ALTER TABLE `zipkin_annotations` DISABLE KEYS */;
/*!40000 ALTER TABLE `zipkin_annotations` ENABLE KEYS */;
UNLOCK TABLES;
 
--
-- Table structure for table `zipkin_dependencies`
--
 
DROP TABLE IF EXISTS `zipkin_dependencies`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `zipkin_dependencies` (
  `day` date NOT NULL,
  `parent` varchar(255) NOT NULL,
  `child` varchar(255) NOT NULL,
  `call_count` bigint(20) DEFAULT NULL,
  `error_count` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`day`,`parent`,`child`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED;
/*!40101 SET character_set_client = @saved_cs_client */;
 
--
-- Dumping data for table `zipkin_dependencies`
--
 
LOCK TABLES `zipkin_dependencies` WRITE;
/*!40000 ALTER TABLE `zipkin_dependencies` DISABLE KEYS */;
/*!40000 ALTER TABLE `zipkin_dependencies` ENABLE KEYS */;
UNLOCK TABLES;
 
--
-- Table structure for table `zipkin_spans`
--
 
DROP TABLE IF EXISTS `zipkin_spans`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `zipkin_spans` (
  `trace_id_high` bigint(20) NOT NULL DEFAULT '0' COMMENT 'If non zero, this means the trace uses 128 bit traceIds instead of 64 bit',
  `trace_id` bigint(20) NOT NULL,
  `id` bigint(20) NOT NULL,
  `name` varchar(255) NOT NULL,
  `remote_service_name` varchar(255) DEFAULT NULL,
  `parent_id` bigint(20) DEFAULT NULL,
  `debug` bit(1) DEFAULT NULL,
  `start_ts` bigint(20) DEFAULT NULL COMMENT 'Span.timestamp(): epoch micros used for endTs query and to implement TTL',
  `duration` bigint(20) DEFAULT NULL COMMENT 'Span.duration(): micros used for minDuration and maxDuration query',
  PRIMARY KEY (`trace_id_high`,`trace_id`,`id`),
  KEY `trace_id_high` (`trace_id_high`,`trace_id`) COMMENT 'for getTracesByIds',
  KEY `name` (`name`) COMMENT 'for getTraces and getSpanNames',
  KEY `remote_service_name` (`remote_service_name`) COMMENT 'for getTraces and getRemoteServiceNames',
  KEY `start_ts` (`start_ts`) COMMENT 'for getTraces ordering and range'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED;

 

end

 

标签:COMMENT,trace,zipkin,--,docker,NULL,安装,id
From: https://www.cnblogs.com/xh_Blog/p/18060732

相关文章

  • docker安装MongoDB
    需注意,docker版本不能太低,否则执行会报:missingsignaturekey(缺少签名密钥):需要重新安装docker,所以docker最开始最好安装新版本:yuminstalldocker-ce-y参考的链接:https://www.4vsy.com/article/231.html,https://blog.csdn.net/qq_25430563/article/details/127977667doc......
  • docker安装nacos
    如下,目录配置自行创建、调整dockerrun--namenacos-2.1.0\-p8848:8848\-p9848:9848\-p9849:9849\--privileged=true\--restart=always\-eJVM_XMS=256m\-eJVM_XMX=256m\-eMODE=standalone\-eTIME_ZONE='Asia/Shanghai'\-ePREFER_HOST_......
  • eNSP 安装教程
    一、安装 a)先安装步骤1依赖组件中的四个组件,其中VBox不要安装在中文目录; b)安装步骤2中的主程序(eNSP1.3.00.100Setup); c)导入步骤3设备包(可选操作)。下载链接:阿里云盘(设备包分享失败,关注加群文件) 二、使用 a)参考eNSP基础操作视频; b)防火墙默认用户名、密......
  • Linux 安装MySQL
    参考1.安装MySQLsudoapt-getinstallmysql-client-core-8.0sudoapt-getinstallmysql-server#安装MySQL数据库sudoapt-getinstalllibmysqlclient-dev#安装MySQL开发包安装新版本mysql,root密码是随机的,也不是空密码,所以要通过查看随机密码进入,再......
  • 第59天-Zabbix-安装与proxy使用
    1.Zabbix简介及安装-上内存利用率CPU利用牢磁盘利用率网卡利用率1.4.2.1:数据采集:周期性时序数据主机/对象:服务器、路由器、交换机、存储、防火墙、IP、PORT、URL、自定义监控对象...采集目标:监控项,指标数据(metricsdata)1.4.2.2:数据存储:监控数据存储系统SQL:......
  • python3代码转换成docker镜像启动
    1.打包成docker镜像来使用切到Tags,搜索3.11选择python:3.11.4-slim-bullseye2.在压测脚本的根目录中,创建Dockerfile文件: FROMpython:3.11.4-slim-bullseyeWORKDIR/opt/appCOPYrequirements.txt./ENVhost=nullENVport=nullENVonlyResetJob=nullRUNpip......
  • 小羊的Tomcat安装过程
    Tomcat安装过程实验报告实验人:小羊捏实验时间:2024.03.01班级:保密了捏学号:123456789实验章节:第X章吧实验目的:安装Tomcat实验内容:一、在网络上搜索如何安装Tomcat取其精华,为己所用,认真学习并跟随步骤进行实践操作。二、根据教程所教Tomcat安装及配置教程主要分为四步:步骤......
  • Docker搭建Mysql集群
    一、新建主服务器示例3307dockerrun-p3307:3306--namemysql-master\-v/docker-volume/mysql-master/log:/var/log/mysql\-v/docker-volume/mysql-master/data:/var/lib/mysql\-v/docker-volume/mysql-master/conf:/etc/mysql\-eMYSQL_ROOT_PASSWORD=root\-d......
  • Git学习笔记1 | Git简介、安装和配置
    Git学习笔记1一、Git简介Git官网:https://git-scm.com/更详细的笔记可参考文章:https://blog.csdn.net/Unirithe/article/details/122428756Git是一个开源的分布式版本控制系统(1)作用:有效、高速地处理从很小到非常大的项目版本管理(2)起源:[LinusTorvalds](https://baike.ba......
  • MySQL-01.Linux下MySQL安装和使用
    C-01.Linux下MySQL的安装和使用前置说明,MySQL高级部分,需要前置知识,为Linux操作系统。如果没有该部分知识,这里推荐韩顺平老师的Linux操作系统的教程。韩老师Linux教程1.安装前准备1.1Linux系统及工具的准备安装并启动好两台虚拟机:CentOS7版本掌握克隆虚拟机的操作mac地......