GithubHelp home page GithubHelp logo

isabella232 / ij-perf-report-aggregator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jetbrains/ij-perf-report-aggregator

0.0 0.0 0.0 3.71 MB

Home Page: https://ij-perf.jetbrains.com

Go 49.03% Makefile 0.49% HTML 0.10% Vue 13.65% TypeScript 34.91% JavaScript 0.73% Dockerfile 0.66% Shell 0.18% Smarty 0.24% CSS 0.02%

ij-perf-report-aggregator's Introduction

Tool to collect performance reports in JSON format from TeamCity, insert into ClickHouse and visualize.

  • clickhouse-backup - backup clickhouse data.
  • clickhouse-restore - restore clickhouse data.
  • report-aggregator - stats server, provide access to ClickHouse via HTTP API tailored for analytics (inspired by Cube.js query format).
  • tc-collector - collect performance reports from TeamCity artifacts and insert to ClickHouse.
  • transform - transform existing data into another form. Raw JSON report is preserved as is, but for performance reasons maybe needed to pre-analyze and extract data into separate columns during collecting. And as data requirements changes, re-analyze the whole data set maybe required.

Dashboard Editing

Directory dashboard contains Vue.js application built using Element Plus Desktop UI Library.

  • pnpm i to install dependencies. pnpm is recommended, do not use Yarn or NPM.
  • pnpm serve to start a dev server with hot module replacement.

To change dashboard, edit your dashboard page *Dashboard.vue, for example IntelliJDashboard.vue or SharedIndexesDashboard.vue.

LineChartCard or BarChartCard supports measures property. Specify desired metric. Multiple metrics are supported, but keep in mind that each metric means chart series and overuse can make chart unreadable.

If metric is extracted from report to field, just use it's field name. Otherwise use:

  • activityCategory.activityName to get duration value
  • activityCategory.activityName.s to get start value.
  • activityCategory.activityName.e to get end value.

For example, if activity launch terminal reported under category prepareAppInitActivities, use prepareAppInitActivities.launch terminal as metric name. Or prepareAppInitActivities.first render.s to get start value of first render.

See Layout.

Adding a New Database

cd ~/Documents/report-aggregator

clickhouse client -h 127.0.0.1 to use clickhouse client to perform SQL queries.

  1. Set env DB_NAME to desired database name:
    export DB_NAME=
  2. Create directory for your database in db-schema and copy report.sql from another database.
  3. Execute SQL:
    clickhouse client -h 127.0.0.1 --query="create database $DB_NAME"
    clickhouse client -h 127.0.0.1 -d $DB_NAME --multiquery < ./db-schema/common/installer.sql
    clickhouse client -h 127.0.0.1 -d $DB_NAME --multiquery < ./db-schema/common/collector_state.sql
    clickhouse client -h 127.0.0.1 -d $DB_NAME --multiquery < "./db-schema/$DB_NAME/report.sql"

ij-perf-report-aggregator's People

Contributors

develar avatar

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.