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

news2024/11/15 18:06:18

下载地址: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.coloradmin.cn/o/1925314.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

java多线程操作之CAS

1,什么是CAS? CAS(Compare-And-Swap) 比较并交换,用于实现同步和锁机制。经常配合juc中Atomic相关类进行。Atomic相关类无法解决aba问题。 2,CAS核心思想是什么? 比较和交换。本质上就是乐观锁…

数字电路-建立时间和保持时间详解

对于数字系统而言,建立时间(setup time)和保持时间(hold time)是数字电路时序的基础。数字电路系统的稳定性,基本取决于时序是否满足建立时间和保持时间。我自己在初学时一度很难理解清楚他们的概念&#x…

android studio开发

Kotlin 编程简介 | Android Basics Compose - First Android app | Android Developers (google.cn) 这是官网的教程,实现试一下。 之后进入课程 您的第一个 Kotlin 程序 (google.cn) 程序可以被视为一系列指示计算机或设备执行某项操作的指令,

Highlight.js示例

图例 代码在图片后面 点赞❤️关注&#x1f64f;收藏⭐️ 源代码 <!DOCTYPE html> <html lang"en"> <head> <meta charset"UTF-8"> <meta name"viewport" content"widthdevice-width, initial-scale1.0"…

2024007月份 制作一个 Windows 10 U disk 安装工具

1&#xff0c;下载微软官方 Win10 U盘安装工具 工具名称&#xff1a; MediaCreationTool 下载地址&#xff1a; https://www.microsoft.com/zh-cn/software-download/windows10 2&#xff0c;制作 U盘安装盘 双击打开&#xff0c;并单击“接受” 选中 为另一台电脑创建安…

微信小程序如何实现登陆和注册功能?

&#x1f468;‍&#x1f4bb;个人主页&#xff1a;开发者-曼亿点 &#x1f468;‍&#x1f4bb; hallo 欢迎 点赞&#x1f44d; 收藏⭐ 留言&#x1f4dd; 加关注✅! &#x1f468;‍&#x1f4bb; 本文由 曼亿点 原创 &#x1f468;‍&#x1f4bb; 收录于专栏&#xff1a…

python中的os模块和shutil模块

目录 os 1. 获取当前脚本绝对路径 2.获得工作路径&#xff1b; 3.该路径文件和目录 4.walk&#xff0c;查看目录下所有的文件&#xff08;含子孙文件&#xff09; 5.创建文件夹 6.os.makedirs(path) 7.路径拼接 8. 获取当前文件的上级目录 9.判断路径是否存在 10.是…

linux系统查看父子进程

① 查找特定进程的父进程 ps -o pid,ppid,cmd -p 1234 查找进程 PID 为 1234 的父进程 ② 显示所有进程的树状结构 pstree ③ 显示特定进程及其父进程的树状结构 pstree -s 1234 ④ 启动 top 后&#xff0c;按下 c 键可以查看完整命令&#xff0c;按下 f 键进入字段管理界面…

Java | Leetcode Java题解之第233题数字1的个数

题目&#xff1a; 题解&#xff1a; class Solution {public int countDigitOne(int n) {// mulk 表示 10^k// 在下面的代码中&#xff0c;可以发现 k 并没有被直接使用到&#xff08;都是使用 10^k&#xff09;// 但为了让代码看起来更加直观&#xff0c;这里保留了 klong mu…

载波相位定位原理

在现代定位系统中&#xff0c;载波相位测距技术因其高精度而备受青睐。本文将探讨其工作原理&#xff0c;以及如何通过数学模型和算法来校正测量中的误差。 载波相位测距模型 载波相位测距是基于接收卫星发射的载波信号相位变化来进行距离测量的技术。它利用了信号传输过程中…

springboot系列教程(二):Log4j2日志信息(含源码)

一、Log4j2日志简介 日志打印是了解Web项目运行的最直接方式&#xff0c;所以在项目开发中是需要首先搭建好的环境。 1、Log4j2特点 核心特点 相比与其他的日志系统&#xff0c;log4j2丢数据这种情况少&#xff1b;disruptor技术&#xff0c;在多线程环境下&#xff0c;性能…

攻防世界 level3

这道题把附件下载下来发现一个libc(动态链接库)&#xff0c;那这道题估计需要利用libc来确定elf中函数的地址 国际惯例checksec&#xff0c;发现level3没开栈溢出保护和地址随机化&#xff0c;libc全开 拖入32位ida&#xff0c;没发现留后门和system函数&#xff0c;只有个writ…

SCI一区级 | Matlab实现GJO-CNN-LSTM-Multihead-Attention多变量时间序列预测

SCI一区级 | Matlab实现GJO-CNN-LSTM-Mutilhead-Attention多变量时间序列预测 目录 SCI一区级 | Matlab实现GJO-CNN-LSTM-Mutilhead-Attention多变量时间序列预测预测效果基本介绍程序设计参考资料 预测效果 基本介绍 1.Matlab实现GJO-CNN-LSTM-Mutilhead-Attention金豺优化算…

OrangePi AIpro在安防领域的深思和实战(旷视科技CNN模型ShuffleNetV1开发案例测试)

一、前言 公司最近有个项目是安防领域的&#xff0c;主要用在边缘结点&#xff0c;虽然已做成形&#xff0c;但是还是存在一些缺陷&#xff0c;例如&#xff1a;算力问题&#xff0c;开发板的成熟问题&#xff0c;已经各种技术的解决方案落地问题。目前我们集成了很多功能&…

在家上网IP地址是固定的吗?

在数字化时代&#xff0c;互联网已成为我们日常生活中不可或缺的一部分。无论是工作、学习还是娱乐&#xff0c;我们都离不开网络的支持。然而&#xff0c;当我们在家中接入互联网时&#xff0c;可能会产生这样一个疑问&#xff1a;在家上网IP地址是固定的吗&#xff1f;下面一…

春招冲刺百题计划|双指针

Java基础复习 Java数组的声明与初始化Java ArrayListJava HashMapJava String 类Java LinkedListJava Deque继承LinkedListJava SetJava 队列优先队列:第二题用到了Java数组划分Java数组转ArrayListString 转数字String 这一部分&#xff0c;代码随想录写得超级好&#xff01…

哪些场景下适合使用人工智能作词软件来写歌词

以下是一些适合使用人工智能作词软件的场景&#xff1a; 软件我们选用“妙笔生词”智能写歌词软件&#xff08;veve299&#xff09;来操作。 1.创作灵感枯竭时&#xff1a;当创作者陷入思维困境&#xff0c;找不到新的创意和方向&#xff0c;人工智能作词软件可以快速提供一些…

Learning vtkjs之hello vtk

学习vtkjs 最近由于工作需要&#xff0c;开始学习vtkjs的相关内容&#xff0c;发现其实在医疗和工业领域&#xff0c;这个vtk的库的example还是非常有帮助&#xff0c;但是实际用的一些开发工具&#xff0c;或者研发生态却没有three的好&#xff0c;也就是能抄写的东西不多&am…

PanTools v1.0.27 多网盘批量管理、遍历分享、转存、重命名、复制...

一款针对多个热门网盘的文件管理、批量分享、批量转存、批量重命名、批量复制、批量链接检测、跨账号移动文件、多账号文件搜索等&#xff0c;支持不同网盘的不同账号的资源文件操作。适用于网站站长、资源爱好者、网盘拉新等&#xff0c;对于管理名下具有多个网盘多个账号具有…

昇思25天学习打卡营第20天|CycleGAN图像风格迁移互换

模型简介 CycleGAN(Cycle Generative Adversarial Network) 即循环对抗生成网络&#xff0c;来自论文 Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networks 。该模型实现了一种在没有配对示例的情况下学习将图像从源域 X 转换到目标域 Y 的方法。…