链路追踪系列-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.mzph.cn/news/871410.shtml

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

相关文章

Chromium CI/CD 之Jenkins实用指南2024-Windows安装篇(一)

1. 引言 在现代软件开发过程中,持续集成和持续部署(CI/CD)是确保高效、稳定软件交付的关键实践。Jenkins作为一款广泛使用的自动化服务器,通过其强大的插件体系和灵活的配置,支持各种操作系统和开发环境。为了帮助开发…

excel 百分位函数 学习

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录 前言一、函数说明PERCENTILE 函数PERCENTILE.inc 函数PERCENTILE.exc 函数QUARTILE.EXC 函数 二、使用步骤总结 前言 excel 百分位函数 Excel提供了几个函数用于…

汽车工程师(DRE)-主从式网络管理与Autosar网络管理简要理解

通常用来梳理汽车的休眠及唤醒问题,目前的主流汽车内部网络管理为Autosar网络管理。 主从式网络管理:宽泛的来说只有休眠模式与非休眠模式 休眠:存在一个状态位AL,当AL为0时,代表该控制器(ECU&#xff09…

流程循环控制语句

目录 for循环 带列表循环 不带列表循环 类C风格循环 while循环 语法 无限循环 使用示例 until循环 基本语法 示例 select循环 语法格式 嵌套循环 break和continue break的使用 continue的使用 在shell 中循环有以下几种: for 循环 while …

计算机网络——常见问题汇总

1. introduction 1.1 Explain what a communication protocol is and why its important. A communication protocol is a set of rules and conventions(公约) that govern(统治) how data is transmitted and received between devices(设备), systems, or entities in a ne…

Linux vim的使用(一键安装则好用的插件_forcpp),gcc的常见编译链接操作

vim 在Linux系统上vim是个功能还比较完善的软件。但是没装插件的vim用着还是挺难受的,所以我们直接上一款插件。 我们只需要在Linux上执行这个命令就能安装(bite提供的) curl -sLf https://gitee.com/HGtz2222/VimForCpp/raw/master/install.sh -o ./install.sh …

Qt中https的使用,报错TLS initialization failed和不能打开ssl.lib问题解决

前言 在现代应用程序中,安全地传输数据变得越来越重要。Qt提供了一套完整的网络API来支持HTTP和HTTPS通信。然而,在实际开发过程中,开发者可能会遇到SSL相关的错误,例如“TLS initialization failed”,cantt open ssl…

pytorch-LSTM

目录 1. RNN存在的问题2. LSTM的由来3. LSTM门3.1 遗忘门3.2 输入门3.3 输出门 4. LSTM是如何减轻梯度弥散问题 1. RNN存在的问题 如下图:RNN能满足预测下一个单词,但是对于获取更多的上下文信息就做不到了。 2. LSTM的由来 RNN能做到短时记忆即shor…

Node.js_mongodb数据迁移

mongodb数据迁移 命令行工具介绍单个迁移整体迁移从mongodb迁移到mysql随着项目业务需求的不断增长变化,数据会在不同的数据库之间互相迁移。本文将介绍mysql和mongodb之间的数据迁移,已在win11系统中实践过。 命令行工具介绍 单个迁移 mongoexport:把一个集合(collectio…

适合创业公司使用的wordpress主题

对于创业公司来说,‌选择一个适合的WordPress主题至关重要,‌它不仅能够提升公司网站的外观和用户体验,‌还能帮助优化搜索引擎排名,‌从而吸引更多的潜在客户。‌以下是一些推荐的WordPress主题,‌特别适合创业公司使…

如何使用断言(Assertions)进行调试

断言(Assertions)是编程中一种非常有用的调试工具,它允许开发者在代码中设置检查点,以确保程序在特定点上的状态符合预期。如果断言失败(即检查点的条件为假),程序通常会抛出一个错误或者异常&a…

抖音运营_商品标题优化关键词优化

一 为什么要优化标题? 标题是爆单的核心因素 有搜索的地方就有关键词检索 抖音现在重点扶持搜索板块 关键词检索不仅为了 消费者、也为了 达人。 二 关键词的组成和原则 1 核心词 n. (你卖的东西) 示例:连衣裙 2 属性词 …

Linux -- 认识 gdb

目录 前言: Debug 模式和 Release 模式 怎么安装 gdb?(CentOS7) 怎么使用 gdb? 进入 gdb 模式: 查看代码: 执行代码: 断点: 打断点: 查看断点&#x…

前端埋点数据收集和数据上报

原文地址 什么是埋点 学名叫时间追踪(Event Tracking), 主要针对用户行为或者业务过程进行捕获,处理和发送相关技术及实施过程. 埋点是数据领域的一个专业术语,也是互联网领域的俗称,是互联网领域的俗称 埋点是产品数据分析的基础&#xf…

深度解读李彦宏的“不要卷模型,要卷应用”

深度解读李彦宏的“不要卷模型,要卷应用” —— AI技术的应用之道 引言 在2024世界人工智能大会的舞台上,李彦宏的“不要卷模型,要卷应用”言论犹如一石激起千层浪,引发了业界对AI技术发展路径的深思。本文将深入探讨这一观点&a…

Eagle 4.0 更新了哪些功能,值得购买吗?

这个全新的版本带来了一系列重磅级别的更新,包括全新的「插件系统」、「全新的 UI 风格」以及「AI 工具」等。所有这些,都是为了提供给用户更加优质的使用体验,让工作的流程更加流畅,更加高效。 我们的团队始终倾听用户的声音&am…

C语言:指针详解(5)

目录 一、sizeof()函数和strlen()函数的对比 二、数组和指针笔试题解析 三、指针运算笔试题解析 正文开始 一、sizeof()函数和strlen()函数的对比 1.sizeof()函数 在学习操作符的时候,我们了解了sizeof()函数。sizeof()函数是用来计算变量所占内存空间大小的&a…

Python自定义可切片的类

Python自定义可切片的类 在Python中,要创建一个自定义可切片的对象,你需要实现 __getitem__ 方法。这个方法允许对象支持索引操作,包括切片。 下面是一个简单的例子,展示了如何创建一个支持切片操作的自定义类: class MyList:def __init__(self, data):self.data = dat…

开源 Wiki 系统 InfoSphere 2024.01.1 发布

推荐一套基于 SpringBoot 开发的简单、易用的开源权限管理平台,建议下载使用: https://github.com/devlive-community/authx 推荐一套为 Java 开发人员提供方便易用的 SDK 来与目前提供服务的的 Open AI 进行交互组件:https://github.com/devlive-commun…

Java高风险之在用户界面(UI)中显示敏感数据(Display of sensitive data in the user interface)

风险介绍 Display of sensitive data in the user interface,在用户界面(UI)中显示敏感数据可能带来多种风险,这可能导致信息泄露和不必要的风险,因为敏感数据可能会被截屏、监控软件捕获、或者被旁观者看到。这些风险涉及数据泄露、身份盗用、经济损失和法律处罚等。 数…