链路追踪系列-01.mac m1 安装zipkin

下载地址:https://hub.docker.com/r/openzipkin/zipkin
在这里插入图片描述
jelex@jelexxudeMacBook-Pro zipkin-server % pwd
/Users/jelex/Documents/work/zipkin-server

先启动Es:
可能需要先删除 /Users/jelex/dockerV/es/plugins 目录下的.DS_Store
在这里插入图片描述
当端口占用时再次启动:
jelex@jelexxudeMacBook-Pro zipkin-server % java -jar zipkin-server-2.24.0-exec.jar --STORAGE_TYPE=elasticsearch --ES_HOSTS=localhost:9200 &

在这里插入图片描述
杀死进程:
在这里插入图片描述
启动ZIPKIN-server:

jelex@jelexxudeMacBook-Pro zipkin-server % pwd
/Users/jelex/Documents/work/zipkin-server
jelex@jelexxudeMacBook-Pro zipkin-server % java -jar zipkin-server-2.24.0-exec.jar --STORAGE_TYPE=elasticsearch --ES_HOSTS=localhost:9200 &

在这里插入图片描述
在这里插入图片描述
当es使用了用户名和密码时: 其中es使用x-pack认证:

jelex@bogon ~ % cd /Users/jelex/Documents/work/zipkin-server
jelex@bogon zipkin-server % java -jar zipkin-server-2.24.0-exec.jar --STORAGE_TYPE=elasticsearch \
--ES_HOSTS=101.43.xxx.xx:80 --ES_USERNAME=elastic --ES_PASSWORD=xxxx &
[1] 1914

在这里插入图片描述
访问http://localhost:9411/zipkin/
在这里插入图片描述
————————————————zipkin启动参数附录———————
Environment Variables
zipkin-server is a drop-in replacement for the scala query service.
yaml configuration binds the following environment variables from zipkin-scala:

  • QUERY_PORT: Listen port for the http api and web ui; Defaults to 9411
  • QUERY_ENABLED: false disables the query api and UI assets. Search may also be disabled for the storage backend if it is not needed; Defaults to true
  • SEARCH_ENABLED: false disables trace search requests on the storage backend. Does not disable trace by ID or dependency queries. Disable this when you use another service (such as logs) to find trace IDs; Defaults to true
  • QUERY_LOG_LEVEL: Log level written to the console; Defaults to INFO
  • QUERY_LOOKBACK: How many milliseconds queries can look back from endTs; Defaults to 24 hours (two daily buckets: one for today and one for yesterday)
  • STORAGE_TYPE: SpanStore implementation: one of mem, mysql, cassandra, elasticsearch
  • COLLECTOR_SAMPLE_RATE: Percentage of traces to retain, defaults to always sample (1.0).
    Cassandra Storage
    Zipkin’s Cassandra storage component supports version 3.11+ and applies when STORAGE_TYPE is set to cassandra3:
  • CASSANDRA_KEYSPACE: The keyspace to use. Defaults to “zipkin2”
  • CASSANDRA_CONTACT_POINTS: Comma separated list of host addresses part of Cassandra cluster. You can also specify a custom port with ‘host:port’. Defaults to localhost on port 9042.
  • CASSANDRA_LOCAL_DC: Name of the datacenter that will be considered “local” for latency load balancing. When unset, load-balancing is round-robin.
  • CASSANDRA_ENSURE_SCHEMA: Ensuring cassandra has the latest schema. If enabled tries to execute scripts in the classpath prefixed with cassandra-schema-cql3. Defaults to true
  • CASSANDRA_USERNAME and CASSANDRA_PASSWORD: Cassandra authentication. Will throw an exception on startup if authentication fails. No default
  • CASSANDRA_USE_SSL: Requires javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword, defaults to false.
    Elasticsearch Storage
    Zipkin’s Elasticsearch storage component supports versions 2-6.x and applies when STORAGE_TYPE is set to elasticsearch
    The following apply when STORAGE_TYPE is set to elasticsearch:
  • ES_HOSTS: A comma separated list of elasticsearch base urls to connect to ex. http://host:9200.
    Defaults to “http://localhost:9200”.
  • ES_PIPELINE: Indicates the ingest pipeline used before spans are indexed. No default.
  • ES_TIMEOUT: Controls the connect, read and write socket timeouts (in milliseconds) for
    Elasticsearch API. Defaults to 10000 (10 seconds)
  • ES_INDEX: The index prefix to use when generating daily index names. Defaults to zipkin.
  • ES_DATE_SEPARATOR: The date separator to use when generating daily index names. Defaults to ‘-’.
  • ES_INDEX_SHARDS: The number of shards to split the index into. Each shard and its replicas
    are assigned to a machine in the cluster. Increasing the number of shards
    and machines in the cluster will improve read and write performance. Number
    of shards cannot be changed for existing indices, but new daily indices
    will pick up changes to the setting. Defaults to 5.
  • ES_INDEX_REPLICAS: The number of replica copies of each shard in the index. Each shard and
    its replicas are assigned to a machine in the cluster. Increasing the
    number of replicas and machines in the cluster will improve read
    performance, but not write performance. Number of replicas can be changed
    for existing indices. Defaults to 1. It is highly discouraged to set this
    to 0 as it would mean a machine failure results in data loss.
  • ES_ENSURE_TEMPLATES: Installs Zipkin index templates when missing. Setting this to false can
    lead to corrupted data when index templates mismatch expectations. If
    you set this to false, you choose to troubleshoot your own data or
    migration problems as opposed to relying on the community for this.
    Defaults to true.
  • ES_USERNAME and ES_PASSWORD: Elasticsearch basic authentication, which defaults to empty string.
    Use when X-Pack security (formerly Shield) is in place.
  • ES_CREDENTIALS_FILE: The location of a file containing Elasticsearch basic authentication
    credentials, as properties. The username property is
    zipkin.storage.elasticsearch.username, password zipkin.storage.elasticsearch.password.
    This file is reloaded periodically, using ES_CREDENTIALS_REFRESH_INTERVAL
    as the interval. This parameter takes precedence over ES_USERNAME and
    ES_PASSWORD when specified.
  • ES_CREDENTIALS_REFRESH_INTERVAL: Credentials refresh interval in seconds, which defaults to
    1 second. This is the maximum amount of time spans will drop due to stale
    credentials. Any errors reading the credentials file occur in logs at this rate.
  • ES_HTTP_LOGGING: When set, controls the volume of HTTP logging of the Elasticsearch API.
    Options are BASIC, HEADERS, BODY
  • ES_SSL_NO_VERIFY: When true, disables the verification of server’s key certificate chain.
    This is not appropriate for production. Defaults to false.
  • ES_TEMPLATE_PRIORITY: The priority value of the composable index templates. This is only applicable
    for ES version 7.8 or above. Must be set, even to 0, to use composable template
    MySQL Storage
    The following apply when STORAGE_TYPE is set to mysql:
  • MYSQL_DB: The database to use. Defaults to “zipkin”.
  • MYSQL_USER and MYSQL_PASS: MySQL authentication, which defaults to empty string.
  • MYSQL_HOST: Defaults to localhost
  • MYSQL_TCP_PORT: Defaults to 3306
  • MYSQL_MAX_CONNECTIONS: Maximum concurrent connections, defaults to 10
  • MYSQL_USE_SSL: Requires javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword, defaults to false.

https://github.com/openzipkin/zipkin/tree/master/zipkin-server

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/377134.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Qt+ESP32+SQLite 智能大棚

环境简介 硬件环境 ESP32、光照传感器、温湿度传感器、继电器、蜂鸣器 基本工作流程 上位机先运行,下位机启动后尝试连接上位机连接成功后定时上报传感器数据到上位机,上位机将信息进行处理展示判断下位机传感器数据,如果超过设置的阈值&a…

【Wamp】局域网设备访问WampServer | 使用域名访问Wamp | Wamp配置HTTPS

局域网设备访问WampServer 参考&#xff1a;https://www.jianshu.com/p/d431a845e5cb 修改Apache的httpd.conf文件 D:\Academic\Wamp\program\bin\apache\apache2.4.54.2\conf\httpd.conf 搜索 Require local 和Require all denied&#xff0c;改为Require all granted <…

【排序算法】计数排序

目录 一.基本思想 二.缺陷及优化 三.代码实现 四.特性总结 1.可以排序负数 2.适合范围集中的整数 3.时间复杂度&#xff1a;O(Nrange) 4.空间复杂度&#xff1a;O(range) 5.稳定性&#xff1a;稳定 一.基本思想 根据待排序数组a创建一个新的数组count&#xff0c;该数组…

python--实验 11 模块

目录 知识点 模块基础 模块使用方式 自定义模块示例 模块的有条件执行 Python包结构 定义和导入包 常用第三方库及安装 实例代码 第三方库自动安装脚本 Python标准库介绍 PyInstaller 小结 实验 1.(基础题)制作文本进度条。 2.(基础题) 蒙特卡罗方法计算圆周率…

nginx正向代理、反向代理、负载均衡

nginx.conf nginx首要处理静态页面 反向代理 动态请求 全局模块 work processes 1; 设置成服务器内核数的两倍&#xff08;一般不不超过8个超过8个反而会降低性能一般4个 1-2个也可以&#xff09; netstat -antp | grep 80 查端口号 *1、events块&#xff1a;* 配置影响ngi…

深度学习基础:Numpy 数组包

数组基础 在使用导入 Numpy 时&#xff0c;通常给其一个别名 “np”&#xff0c;即 import numpy as np 。 数据类型 整数类型数组与浮点类型数组 为了克服列表的缺点&#xff0c;一个 Numpy 数组只容纳一种数据类型&#xff0c;以节约内存。为方便起见&#xff0c;可将 Nu…

Linux多线程编程-生产者与消费者模型详解与实现(C语言)

1.什么是生成者与消费者模型 生产者-消费者模型是并发编程中的经典问题&#xff0c;描述了多个线程&#xff08;或进程&#xff09;如何安全、有效地共享有限的缓冲区资源。在这个模型中&#xff0c;有两种角色&#xff1a; 生产者&#xff08;Producer&#xff09;&#xff1…

Docker 安装ros 使用rviz 等等图形化程序

Docker 安装ros 使用rviz 等等图形化程序 ubuntu 版本与ros 发行版本对应 如何安装其它版本ros 此时考虑使用docker 易于维护 地址&#xff1a; https://hub.docker.com/r/osrf/ros 我主机是 ubuntu22.04 使用这个标签 melodic-desktop-full 1 clone 镜像到本机 docker pu…

OpenCV:python图像旋转,cv2.getRotationMatrix2D 和 cv2.warpAffine 函数

前言 仅供个人学习用&#xff0c;如果对各位朋友有参考价值&#xff0c;给个赞或者收藏吧 ^_^ 一. cv2.getRotationMatrix2D(center, angle, scale) 1.1 参数说明 parameters center&#xff1a;旋转中心坐标&#xff0c;是一个元组参数(col, row) angle&#xff1a;旋转角度…

html(抽奖设计)

<!DOCTYPE html> <html><head><meta charset"UTF-8"><title>抽奖</title><style type"text/css">* {margin: 0;padding: 0;}.container {width: 800px;height: 800px;border: 1px dashed red;position: absolut…

<数据集>光伏板缺陷检测数据集<目标检测>

数据集格式&#xff1a;VOCYOLO格式 图片数量&#xff1a;2400张 标注数量(xml文件个数)&#xff1a;2400 标注数量(txt文件个数)&#xff1a;2400 标注类别数&#xff1a;4 标注类别名称&#xff1a;[Crack,Grid,Spot] 序号类别名称图片数框数1Crack8688922Grid8248843S…

近期几首小诗汇总-生活~卷

生活 为生活飘零&#xff0c;风雨都不阻 路见盲人艰&#xff0c;为她心点灯 贺中科大家长论坛成立十五周年 科学家园有喜贺 园外丑汉翘望中 曾一学子入我科 正育科二盼长大 憧憬也能入此家 与科学家论短长 园外翘首听高论 发现有隙入此坛 竟然也能注册成 入园浏览惶然立 此贴…

零信任的架构结合模块化沙箱,实现一机两用的解决方案

零信任沙箱是深信达提出的一种数据安全解决方案&#xff0c;它将零信任原则与SDC沙箱技术的优势相结合。零信任原则是一种安全概念&#xff0c;核心思想是“永不信任&#xff0c;总是验证”。它要求对每一个访问请求都进行严格的身份验证和授权&#xff0c;无论请求来源于内部还…

Qt Quick qml自定义控件:qml实现电池控件

qml入门进阶专栏地址:https://blog.csdn.net/yao_hou/category_9951228.html?spm=1001.2014.3001.5482 本篇博客介绍如何使用qml来实现电池控件,效果图如下: 下面给出实现代码 Battery.qml /*电池组件*/import QtQuick 2.15 import QtQuick.Controls 2.15Rectangle {id: b…

ES13的4个改革性新特性

1、类字段声明 在 ES13 之前,类字段只能在构造函数中声明, ES13 消除了这个限制 // 之前 class Car {constructor() {this.color = blue;this.age = 2

EXSI 实用指南 2024 -编译环境 Ubuntu 安装篇(二)

1. 引言 在当今的虚拟化领域&#xff0c;VMware ESXi 是备受推崇的虚拟化平台&#xff0c;广泛应用于企业和个人用户中。它以卓越的性能、稳定的运行环境和丰富的功能&#xff0c;为用户提供了高效的硬件资源管理和简化的 IT 基础设施维护。然而&#xff0c;如何在不同操作系统…

STM32第十九课:FreeRTOS移植和使用

目录 需求一、FreeRtos概要二、移植FreeRtos1.复制源码2.内存空间分配和内核相关接口3.FreeRTOSConfig.h4.在工程中添加.c.h 三、任务块操作1.创建任务2.任务挂起&#xff0c;恢复&#xff0c;删除 四、需求实现代码 需求 1.将FreeRtos&#xff08;嵌入式实时操作系统&#xf…

ts使用typeorm实现db创建

1.新建基础架构 ①创建项目文件名, mkdir ‘名称’ ->cd ‘文件名’ -> mkdir ‘src’->npm init mkdir fileName cd fileName mkdir src npm init在当前项目名目录下执行npm init,按照默认执行就会创建package.json. 之后执行 npm i jest/globals casl/ability bcr…

755M全球山脉数据集分享

我们在《548M高精度全球国界数据》和《270M全球流域矢量数据》文中&#xff0c;为你分享过全球的国界数据和水系流域数据。 现在再为你分享755M全球山脉数据集&#xff0c;请在文末查看该数据的领取方法。 755M全球山脉数据集 全球山脉数据集&#xff0c;提供了在全球山地生…

【企业级监控】Zabbix监控网站并发连接数

Zabbix自定义监控项与触发器 文章目录 Zabbix自定义监控项与触发器资源列表基础环境前言一、什么是zabbix的Key值二、获取远程Key值2.1、获得主机的Key值2.2、被监控端安装Agent2.3、zabbix_get命令获取Agent数据举例2.3.1、zabbx_get获取cpu核心数2.3.2、获取目标主机系统和内…