jaeger 使用ElasticSearch 作为后端存储
jaeger 支持es 作为后端存储,这样对于查询、以及系统扩展是比较方便的
使用docker-compose 运行
环境准备
参考项目: https://github.com/rongfengliang/nginx-opentracing-demo
- docker-compose file
version: '3'
services:
nginx:
image: opentracing/nginx-opentracing
networks:
trivial_example:
aliases:
- nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./jaeger-config.json:/etc/jaeger-config.json
expose:
- "8080"
ports:
- "8080:8080"
elasticsearch:
image: elasticsearch:5.6.12
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
volumes:
- ./es-data:/usr/share/elasticsearch/data
environment:
- transport.host=0.0.0.0
- http.cors.enabled=true
- http.cors.allow-origin="*"
- discovery.zen.minimum_master_nodes=1
networks:
trivial_example:
aliases:
- elasticsearch
app-service:
build:
context: .
dockerfile: ./Dockerfile
networks:
trivial_example:
aliases:
- app-service
expose:
- "9001"
ports:
- "9001:9001"
command:
- /app/server
- -collector_host
- jaeger
deps:
image: jaegertracing/spark-dependencies
environment:
- STORAGE=elasticsearch
- ES_NODES=http://elasticsearch:9200
networks:
trivial_example:
aliases:
- deps
jaeger:
image: jaegertracing/all-in-one:1.7
environment:
- COLLECTOR_ZIPKIN_HTTP_PORT=9411
- ES_SERVER_URLS=http://elasticsearch:9200
- SPAN_STORAGE_TYPE=elasticsearch
- ES_TAGS_AS_FIELDS=true
networks:
trivial_example:
aliases:
- jaeger
expose:
- "9411"
- "16686"
ports:
- "9411:9411"
- "16686:16686"
networks:
trivial_example: {}
- 说明
主要是通过环境变量指定存储类型以及es 服务器集群的地址,注意对于依赖关系需要有一个单独的服务
启动&&测试
- 启动
docker-compose up -d
- 效果

说明
关于依赖的显示,需要使用spark-dependencies处理,参考docker-compose file
同时需要配置为定时任务
参考资料
https://www.jaegertracing.io/docs/1.7/architecture/
https://www.jaegertracing.io/docs/1.7/deployment/
https://github.com/rongfengliang/nginx-opentracing-demo
https://github.com/jaegertracing/jaeger/blob/master/plugin/storage/es/README.md
https://hub.docker.com/r/jaegertracing/spark-dependencies/
https://my.oschina.net/u/2548090/blog/1821372
jaeger 使用ElasticSearch 作为后端存储的更多相关文章
- jaeger使用yugabyte作为后端存储的尝试以及几个问题
前边写过使用scylladb 做为jaeger 的后端存储,还是一个不错选择的包括性能以及 兼容性,对于 yugabyte 当前存在兼容性的问题,需要版本的支持,或者尝试进行一些变动 create 语 ...
- jaeger 使用scylladb作为后端存储
scylladb 是一个不错的apache Cassandra 替代,而且兼容很不错,今天在尝试过yugabyte 之后放弃了,因为在进行jaeger 创建 Cassandra schema 的时候碰 ...
- Flocker 做为后端存储代理 docker volume-driver 支持
docker Flocker https://github.com/ClusterHQ/flocker/ 文档: https://docs.clusterhq.com/en/latest/docker ...
- Openstack_后端存储平台Ceph
框架图 介绍 一种为优秀的性能.可靠性和可扩展性而设计的统一的.分布式文件系统 特点 CRUSH算法 Crush算法是ceph的两大创新之一,简单来说,ceph摒弃了传统的集中式存储元数据寻址的方案, ...
- 9 云计算系列之Cinder的安装与NFS作为cinder后端存储
preface 在前面我们知道了如何搭建Openstack的keystone,glance,nova,neutron,horizon这几个服务,然而在这几个服务中唯独缺少存储服务,那么下面我们就学习块 ...
- Openstack入门篇(十八)之Cinder服务-->使用NFS作为后端存储
1.安装cinder-volume组件以及nfs [root@linux-node2 ~]# yum install -y openstack-cinder python-keystone [root ...
- 以ScaleIO 1.30为后端存储运行微软服务器软件SQL Server 2014, SharePoint 2013, Exchange 2013的解决方案
EMC新发布了以ScaleIO 1.30为后端存储来运行SQL, SharePoint, Exchange的解决方案白皮书. 下面的页面中有简要的介绍和整篇文档PDF的下载. https://co ...
- OpenStack Cinder 与各种后端存储技术的集成叙述与实践
先说下下loop设备 loop设备及losetup命令介绍 1. loop设备介绍 在类 UNIX 系统里,loop 设备是一种伪设备(pseudo-device),或者也可以说是仿真设备.它能使我们 ...
- 配置Ceph集群为OpenStack后端存储
配置Ceph存储为OpenStack的后端存储 1 前期配置 Ceph官网提供的配置Ceph块存储为OpenStack后端存储的文档说明链接地址:http://docs.ceph.com/docs/ ...
随机推荐
- English trip -- Phonics 1 ar
Xu言: Learning is not a happy thing, but happiness always comes with learning... - loki.valentine ...
- 『Pandas』数据读取&DataFrame切片
读取文件 numpy.loadtxt() import numpy as np dataset_filename = "affinity_dataset.txt" X = np.l ...
- 数据库SQL优化(百万级数据库优化方案)
1. 对查询进行优化 要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引. 2. where 子句 要尽量避免在 where 子句中对字段进行 null 值判断.( ...
- html5绘制字符串
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> < ...
- utime修改文件的存取,修改时间
#include <sys/types.h> #include <utime.h> int utime(const char *filename, const struct u ...
- 如何用SPY++工具查看窗体的句柄
我安装的是vs2012,先找到SPY++工具打开 打开方式: 方式1:通过路径(C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microso ...
- learning docker steps(4) ----- docker swarm 初次体验
参考:https://docs.docker.com/get-started/part4/ 了解 swarm 集群 swarm 是一组运行 Docker 并且已加入集群中的机器.执行此操作后,您可以继 ...
- snapshot相关
概述 Specify the number of days of snapshots to choose from Entering the number of days (n) will resul ...
- 51nod1709复杂度分析
题解: 注意到,如果第j位有贡献,那么从i往上跳2^j,然后不能再跳超过2^j. 因此可以考虑倍增. 代码: #include<bits/stdc++.h> typedef long lo ...
- 调用Nt函数内核模式切换问题
很久不写博客了,笔记大多记在电脑上在,以后整理好了再搬运上来吧. 今天记一下“进程内存管理器”这个小程序上遇到的一个问题——内核模式调用Nt*函数. 使用的是内核中的NtQueryVirtualMem ...