Giter Club home page Giter Club logo

jaeger-dependencies's Introduction

Build jaeger service dependencies for elasticsearch

CircleCI

An alternative to spark-dependencies

Written in golang, without spark. Better for systems with big amount of traces in elasticsearch and small graphs.

jaeger UI graph jaeger-UI

Run

You can use docker image lookyan/jaeger-dependencies:latest

Run docker directly:

docker run --env ES_HOST=http://host:9200 lookyan/jaeger-dependencies:latest

Or you can run it in kubernetes as a CronJob:

apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: jaeger-dependencies
spec:
  schedule: "0 22 * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: jaeger-dependencies
            image: lookyan/jaeger-dependencies
            env:
            - name: "ES_HOST"
              value: "http://elasticsearch-node:9200"
          restartPolicy: Never

Configuration

ES_HOST - ES connection

ES_INDEX_PREFIX - ES index prefix

ES_USERNAME - ES username

ES_PASSWORD - ES password

How it works

Jaeger-dependencies aggregates traces for previous day in directed graph. It queries ES span index for spans who have span.kind equal to server and have references. After that it counts number of inter-service communications.

jaeger-dependencies's People

Contributors

lookyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jaeger-dependencies's Issues

Refresh dependencies every minute

Could something be done to refresh the dependencies every minute and represent the graphics? I'm testing with docker-compose but nothing

error starting dependencies

Failed to create index: Put http://elasticsearch:9200/jaeger-dependencies-2020-02-19: dial tcp 172.25.0.2:9200: connect: connection refused
dependencias_1   | 2020/02/19 10:42:04 Warning Delete http://elasticsearch:9200/jaeger-dependencies-2020-02-19: dial tcp 172.25.0.2:9200: connect: connection refused

my docker-compose configuration:

dependencias:
    image: lookyan/jaeger-dependencies:latest
    hostname: dependencias
    environment:
      - ES_HOST=http://elasticsearch:9200
    command: /bin/sh -c "sleep 60 && jaeger-dependencies"
    restart: always
    networks:
      - elastic-jaeger
    depends_on:
      - elasticsearch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.