haystack-ui

Github星跟蹤圖

Build Status
Coverage Status

Haystack-UI

Haystack-ui is the web UI for haystack. It is the central place for visualizing processed data from various haystack sub-systems.
Visualization tools in haystack-ui include -, Traces, :------------------------------------------------------------:, Distributed tracing visualization for easy root cause analysis, Trace Timeline, Trends, :---------------------------------------------------:, Visualization of vital service and operation trending, Trends, Service Graph, :----------------------------------------------------------------:, Real time dependency graph with health and connectivity indicators, Service Graph, Alerts and Anomaly Detection, :-------------------------------------------------------:, UI for displaying, configuring, and subscribing to alerts, Alerts, Universal Search, :--------------------------------------------------------------:, Intuitive, sandbox-style searching for accurate results., Universal Search, ## Development

It is a expressjs based single page client side app written in ES6 + React and using Mobx for data flow.

Pre-requisites

Ensure you have node >= 10.0 and npm >= 6.0 installed.

Clone the repository including recursive submodules:

$ git clone --recurse-submodules https://github.com/ExpediaDotCom/haystack-ui.git
$ cd haystack-ui

If the repository was already cloned, you can initialize and update submodules with git submodule update --init --recursive

Build and Run

This application uses webpack for building + bundling resources. To run in developer mode with client and server side hotloading, use:

$ npm install                # install dependencies
$ npm run start:dev          # start server in dev mode with hotloading

Once start is successful you can visit http://localhost:8080/

For running in production mode, use:

$ npm install                # install dependencies
$ npm run build              # run tests(with coverage), build client side code and emit produciton optimized bundles
$ npm start                  # start node server

Autoformatting in your favorite IDE with Prettier Integration

This projects supports auto-formatting of source code! Simply find your favorite IDE from the list in the following list: https://prettier.io/docs/en/editors.html

For VSCode support, perform the following steps:

  • Launch VS Code Quick Open (Ctrl+P)
  • Paste the following command, and press enter:
ext install esbenp.prettier-vscode

This projects has a pre-configured .vscode/settings.json which enables format on save. Auto-formatting should execute everytime you save a file.

Prettier is also configured to run in a pre-commit hook to make enforcing consistency of source code between developers easy.

Testing

Haystack-ui utilizes Mocha as it's testing framework, with Chai as the assertation library, Enzyme for utility, and JSDOM as a headless browser for rendering React components.
ESLint is used as a linter and insurance of code quality.

To run the test suite, enter the command npm test.

To check code coverage, run npm run coverage and open the generated index.html in the created coverage folder

Note-
You may have to install Cairo dependencies separately for tests to work.

  • OS X Users : brew install pkg-config cairo pango libpng jpeg giflib
    • NOTE: If you run into Package libffi was not found in the pkg-config search path. errors while running npm install, you will need to addtionally run the following command: export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig"
  • Others: Refer https://www.npmjs.com/package/canvas#installation

Docker

We have provided make commands to facilitate building. For creating docker image use -

$ make all

Configuration

Haystack UI can be configured to use one or more stores, each providing user interface for one subsystem in Haystack. Based on what subsystems you have available in your haystack cluster, you can configure corresponding stores and UI will adapt to show interfaces only for the configured subsystems.
For more details on this refer - https://github.com/ExpediaDotCom/haystack-ui/wiki/Configuring-Subsystem-Connectors

Haystack-ui as drop-in replacement for Zipkin UI

If you have an existing zipkin cluster you can use haystack UI as a drop-in replacement for zipkin's UI.
For more details on this refer - https://github.com/ExpediaDotCom/haystack-ui/wiki/Configuring-Subsystem-Connectors#using-haystack-ui-as-replacement-for-zipkin-ui

主要指標

概覽
名稱與所有者ExpediaDotCom/haystack-ui
主編程語言JavaScript
編程語言JavaScript (語言數: 8)
平台
許可證Apache License 2.0
所有者活动
創建於2017-08-05 14:39:56
推送於2023-02-27 16:30:47
最后一次提交2020-11-18 23:42:38
發布數16
最新版本名稱1.1.8 (發布於 )
第一版名稱1.0.0 (發布於 )
用户参与
星數114
關注者數18
派生數24
提交數1.5k
已啟用問題?
問題數27
打開的問題數7
拉請求數498
打開的拉請求數19
關閉的拉請求數40
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?