diff --git a/.github/workflows/cypress-panel.yml b/.github/workflows/cypress-panel.yml deleted file mode 100644 index 2e69c7846d..0000000000 --- a/.github/workflows/cypress-panel.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Cypress Tests for Grafana Panel - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - cypress-tests: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '16.18' - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v2 - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn - - run: yarn --frozen-lockfile - - run: yarn build:panel - env: - PYROSCOPE_PANEL_VERSION: test - - name: run grafana - run: docker-compose -f packages/pyroscope-panel-plugin/docker-compose.yml up -d - - name: Cypress run - uses: cypress-io/github-action@v2 - with: - command: yarn cy:panel:ci - wait-on: http://localhost:3000 - env: - CYPRESS_COMPARE_SNAPSHOTS: true - - uses: actions/upload-artifact@v2 - if: failure() - with: - name: cypress-snapshots - path: cypress/snapshots diff --git a/cypress/integration/panel/basic.ts b/cypress/integration/panel/basic.ts deleted file mode 100644 index 4f3a37102d..0000000000 --- a/cypress/integration/panel/basic.ts +++ /dev/null @@ -1,13 +0,0 @@ -// For these tests we can mock the requests -// Since we are only testing the panel itself -describe('smoke', () => { - it('renders the panel correctly', () => { - cy.intercept('**/render*', { - fixture: 'simple-golang-app-cpu.json', - }).as('render'); - - cy.visit('http://localhost:3000/d/single-panel/pyroscope-demo?orgId=1'); - - cy.findByTestId('flamegraph-canvas').should('exist'); - }); -}); diff --git a/package.json b/package.json index ee8a7196a5..7c0f9fe102 100644 --- a/package.json +++ b/package.json @@ -19,13 +19,11 @@ "web-postinstall": "scripts/web-postinstall.js", "postinstall": "yarn run web-postinstall", "dev": "yarn run dev:webapp", - "dev:panel": "NODE_ENV=development webpack --config scripts/webpack/webpack.panel.ts --watch", "dev:standalone": "webpack --config scripts/webpack/webpack.standalone.ts --watch", "dev:flamegraph": "yarn run lerna run dev --scope=@pyroscope/flamegraph", "dev:webapp": "yarn run lerna run dev --scope=@pyroscope/webapp", "build": "yarn run build:webapp", "build:webapp": "lerna run build --scope=@pyroscope/webapp --include-dependencies", - "build:panel": "lerna run build --scope=@pyroscope/panel-plugin --include-dependencies", "build:standalone": "webpack --config scripts/webpack/webpack.standalone.ts", "build:size-limit": "NODE_ENV=production NOHASH=true webpack --config scripts/webpack/webpack.size-limit.ts && yarn build:flamegraph", "build:flamegraph": "lerna run build --scope=@pyroscope/flamegraph", @@ -51,10 +49,6 @@ "cy:webapp-base-url:open": "cypress open --config-file cypress/base-url/cypress.json", "cy:webapp-base-url:ci": "cypress run --config-file cypress/base-url/cypress.json", "cy:webapp-base-url:ss-check": "CYPRESS_updateSnapshots=false ./scripts/cypress-screenshots.sh --config-file cypress/base-url/cypress.json", - "cy:panel:open": "cypress open --config-file grafana-plugin/panel/cypress.json", - "cy:panel:ci": "cypress run --config-file packages/pyroscope-panel-plugin/cypress.json", - "cy:panel:ss": "./scripts/cypress-screenshots.sh --config-file packages/pyroscope-panel-plugin/cypress.json", - "cy:panel:ss-check": "CYPRESS_updateSnapshots=false ./scripts/cypress-screenshots.sh --config-file packages/pyroscope-panel-plugin/cypress.json", "lint-staged": "lint-staged", "size": "size-limit", "storybook": "start-storybook -p 6006", @@ -161,8 +155,8 @@ "@babel/preset-env": "^7.10.4", "@babel/preset-react": "^7.12.10", "@babel/preset-typescript": "7.8.3", - "@emotion/react": "^11.10.4", - "@emotion/styled": "^11.10.4", + "@emotion/react": "^11.10.6", + "@emotion/styled": "^11.10.6", "@fortawesome/fontawesome-free": "~5.14.0", "@fortawesome/fontawesome-svg-core": "~1.2.30", "@fortawesome/free-brands-svg-icons": "~5.15.1", diff --git a/packages/pyroscope-panel-plugin/.eslintrc.js b/packages/pyroscope-panel-plugin/.eslintrc.js deleted file mode 100644 index 49b3539f5b..0000000000 --- a/packages/pyroscope-panel-plugin/.eslintrc.js +++ /dev/null @@ -1,9 +0,0 @@ -const path = require('path'); - -module.exports = { - extends: [path.join(__dirname, '../../.eslintrc.js')], - ignorePatterns: ['.eslintrc.js'], - parserOptions: { - tsconfigRootDir: __dirname, - }, -}; diff --git a/packages/pyroscope-panel-plugin/CHANGELOG.md b/packages/pyroscope-panel-plugin/CHANGELOG.md deleted file mode 100644 index 5339753ee7..0000000000 --- a/packages/pyroscope-panel-plugin/CHANGELOG.md +++ /dev/null @@ -1,1040 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [1.4.23](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.22...@pyroscope/panel-plugin@1.4.23) (2023-03-14) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.22](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.21...@pyroscope/panel-plugin@1.4.22) (2023-03-14) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.21](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.20...@pyroscope/panel-plugin@1.4.21) (2023-02-22) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.20](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.19...@pyroscope/panel-plugin@1.4.20) (2023-02-07) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.19](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.18...@pyroscope/panel-plugin@1.4.19) (2023-02-03) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.18](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.17...@pyroscope/panel-plugin@1.4.18) (2023-01-23) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.17](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.16...@pyroscope/panel-plugin@1.4.17) (2022-12-02) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.16](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.15...@pyroscope/panel-plugin@1.4.16) (2022-12-02) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.15](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.14...@pyroscope/panel-plugin@1.4.15) (2022-12-01) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.14](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.13...@pyroscope/panel-plugin@1.4.14) (2022-11-30) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.13](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.12...@pyroscope/panel-plugin@1.4.13) (2022-11-30) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.12](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.11...@pyroscope/panel-plugin@1.4.12) (2022-11-29) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.11](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.10...@pyroscope/panel-plugin@1.4.11) (2022-11-28) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.10](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.9...@pyroscope/panel-plugin@1.4.10) (2022-11-28) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.9](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.8...@pyroscope/panel-plugin@1.4.9) (2022-11-23) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.8](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.7...@pyroscope/panel-plugin@1.4.8) (2022-11-21) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.7](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.6...@pyroscope/panel-plugin@1.4.7) (2022-11-18) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.6](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.5...@pyroscope/panel-plugin@1.4.6) (2022-11-17) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.5](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.4...@pyroscope/panel-plugin@1.4.5) (2022-11-17) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.4](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.3...@pyroscope/panel-plugin@1.4.4) (2022-11-17) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.3](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.2...@pyroscope/panel-plugin@1.4.3) (2022-11-15) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.2](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.1...@pyroscope/panel-plugin@1.4.2) (2022-11-15) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.4.1](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.4.0...@pyroscope/panel-plugin@1.4.1) (2022-11-14) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -# [1.4.0](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.75...@pyroscope/panel-plugin@1.4.0) (2022-11-14) - - -### Features - -* **panel-plugin:** allow setting different views ([#1712](https://github.com/pyroscope-io/pyroscope/issues/1712)) ([058099c](https://github.com/pyroscope-io/pyroscope/commit/058099c857d80c3dc2f1c7c7a99391bd75c72178)) - - - - - -## [1.3.75](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.74...@pyroscope/panel-plugin@1.3.75) (2022-11-14) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.74](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.73...@pyroscope/panel-plugin@1.3.74) (2022-11-14) - - -### Bug Fixes - -* **panel-plugin:** remove leaky css ([#1709](https://github.com/pyroscope-io/pyroscope/issues/1709)) ([bc28930](https://github.com/pyroscope-io/pyroscope/commit/bc28930093b0b8494b073a45252ce361dba1a382)) - - - - - -## [1.3.73](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.72...@pyroscope/panel-plugin@1.3.73) (2022-11-14) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.72](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.71...@pyroscope/panel-plugin@1.3.72) (2022-11-11) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.71](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.70...@pyroscope/panel-plugin@1.3.71) (2022-11-10) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.70](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.69...@pyroscope/panel-plugin@1.3.70) (2022-11-09) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.69](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.68...@pyroscope/panel-plugin@1.3.69) (2022-11-09) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.68](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.67...@pyroscope/panel-plugin@1.3.68) (2022-11-08) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.67](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.66...@pyroscope/panel-plugin@1.3.67) (2022-11-06) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.66](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.65...@pyroscope/panel-plugin@1.3.66) (2022-11-02) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.65](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.64...@pyroscope/panel-plugin@1.3.65) (2022-11-01) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.64](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.63...@pyroscope/panel-plugin@1.3.64) (2022-10-31) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.63](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.62...@pyroscope/panel-plugin@1.3.63) (2022-09-29) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.62](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.61...@pyroscope/panel-plugin@1.3.62) (2022-09-29) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.61](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.60...@pyroscope/panel-plugin@1.3.61) (2022-09-26) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.60](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.59...@pyroscope/panel-plugin@1.3.60) (2022-09-06) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.59](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.58...@pyroscope/panel-plugin@1.3.59) (2022-09-06) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.58](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.57...@pyroscope/panel-plugin@1.3.58) (2022-09-06) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.57](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.56...@pyroscope/panel-plugin@1.3.57) (2022-09-05) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.56](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.55...@pyroscope/panel-plugin@1.3.56) (2022-08-30) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.55](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.54...@pyroscope/panel-plugin@1.3.55) (2022-08-30) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.54](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.53...@pyroscope/panel-plugin@1.3.54) (2022-08-26) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.53](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.52...@pyroscope/panel-plugin@1.3.53) (2022-08-22) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.52](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.51...@pyroscope/panel-plugin@1.3.52) (2022-08-22) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.51](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.50...@pyroscope/panel-plugin@1.3.51) (2022-08-17) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.50](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.49...@pyroscope/panel-plugin@1.3.50) (2022-08-15) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.49](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.48...@pyroscope/panel-plugin@1.3.49) (2022-08-11) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.48](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.47...@pyroscope/panel-plugin@1.3.48) (2022-08-11) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.47](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.46...@pyroscope/panel-plugin@1.3.47) (2022-08-09) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.46](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.45...@pyroscope/panel-plugin@1.3.46) (2022-08-08) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.45](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.44...@pyroscope/panel-plugin@1.3.45) (2022-08-08) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.44](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.43...@pyroscope/panel-plugin@1.3.44) (2022-08-05) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.43](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.42...@pyroscope/panel-plugin@1.3.43) (2022-08-05) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.42](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.41...@pyroscope/panel-plugin@1.3.42) (2022-08-05) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.41](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.40...@pyroscope/panel-plugin@1.3.41) (2022-08-04) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.40](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.39...@pyroscope/panel-plugin@1.3.40) (2022-08-03) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.39](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.38...@pyroscope/panel-plugin@1.3.39) (2022-08-03) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.38](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.37...@pyroscope/panel-plugin@1.3.38) (2022-07-29) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.37](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.36...@pyroscope/panel-plugin@1.3.37) (2022-07-27) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.36](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.35...@pyroscope/panel-plugin@1.3.36) (2022-07-25) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.35](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.34...@pyroscope/panel-plugin@1.3.35) (2022-07-25) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.34](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.33...@pyroscope/panel-plugin@1.3.34) (2022-07-20) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.33](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.32...@pyroscope/panel-plugin@1.3.33) (2022-07-19) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.32](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.31...@pyroscope/panel-plugin@1.3.32) (2022-07-19) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.31](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.30...@pyroscope/panel-plugin@1.3.31) (2022-07-18) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.30](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.29...@pyroscope/panel-plugin@1.3.30) (2022-07-18) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.29](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.28...@pyroscope/panel-plugin@1.3.29) (2022-07-18) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.28](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.27...@pyroscope/panel-plugin@1.3.28) (2022-07-15) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.27](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.26...@pyroscope/panel-plugin@1.3.27) (2022-07-15) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.26](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.25...@pyroscope/panel-plugin@1.3.26) (2022-07-15) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.25](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.24...@pyroscope/panel-plugin@1.3.25) (2022-07-15) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.24](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.23...@pyroscope/panel-plugin@1.3.24) (2022-07-15) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.23](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.22...@pyroscope/panel-plugin@1.3.23) (2022-07-13) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.22](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.21...@pyroscope/panel-plugin@1.3.22) (2022-07-13) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.21](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.20...@pyroscope/panel-plugin@1.3.21) (2022-07-13) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.20](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.19...@pyroscope/panel-plugin@1.3.20) (2022-07-12) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.19](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.18...@pyroscope/panel-plugin@1.3.19) (2022-07-11) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.18](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.17...@pyroscope/panel-plugin@1.3.18) (2022-07-11) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.17](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.16...@pyroscope/panel-plugin@1.3.17) (2022-07-11) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.16](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.15...@pyroscope/panel-plugin@1.3.16) (2022-07-07) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.15](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.14...@pyroscope/panel-plugin@1.3.15) (2022-07-06) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.14](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.13...@pyroscope/panel-plugin@1.3.14) (2022-07-06) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.13](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.12...@pyroscope/panel-plugin@1.3.13) (2022-07-05) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.12](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.11...@pyroscope/panel-plugin@1.3.12) (2022-07-01) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.11](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.10...@pyroscope/panel-plugin@1.3.11) (2022-07-01) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.10](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.9...@pyroscope/panel-plugin@1.3.10) (2022-06-30) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.9](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.8...@pyroscope/panel-plugin@1.3.9) (2022-06-30) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.8](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.7...@pyroscope/panel-plugin@1.3.8) (2022-06-29) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.7](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.6...@pyroscope/panel-plugin@1.3.7) (2022-06-29) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.6](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.5...@pyroscope/panel-plugin@1.3.6) (2022-06-27) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.5](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.4...@pyroscope/panel-plugin@1.3.5) (2022-06-13) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.4](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.3...@pyroscope/panel-plugin@1.3.4) (2022-06-12) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.3](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.2...@pyroscope/panel-plugin@1.3.3) (2022-06-10) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.2](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.1...@pyroscope/panel-plugin@1.3.2) (2022-06-10) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.3.1](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.3.0...@pyroscope/panel-plugin@1.3.1) (2022-06-09) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -# [1.3.0](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.25...@pyroscope/panel-plugin@1.3.0) (2022-05-30) - - -### Features - -* Color mode ([#1103](https://github.com/pyroscope-io/pyroscope/issues/1103)) ([8855859](https://github.com/pyroscope-io/pyroscope/commit/885585958012775f0d51ea82208d641d10215574)) - - - - - -## [1.2.25](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.24...@pyroscope/panel-plugin@1.2.25) (2022-05-26) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.24](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.23...@pyroscope/panel-plugin@1.2.24) (2022-05-25) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.23](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.22...@pyroscope/panel-plugin@1.2.23) (2022-05-12) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.22](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.21...@pyroscope/panel-plugin@1.2.22) (2022-05-09) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.21](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.20...@pyroscope/panel-plugin@1.2.21) (2022-05-02) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.20](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.19...@pyroscope/panel-plugin@1.2.20) (2022-05-02) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.19](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.18...@pyroscope/panel-plugin@1.2.19) (2022-04-27) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.18](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.17...@pyroscope/panel-plugin@1.2.18) (2022-04-25) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.17](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.16...@pyroscope/panel-plugin@1.2.17) (2022-04-15) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.16](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.15...@pyroscope/panel-plugin@1.2.16) (2022-04-12) - - -### Bug Fixes - -* **flamegraph:** inject its styles via css only ([#1023](https://github.com/pyroscope-io/pyroscope/issues/1023)) ([c20a137](https://github.com/pyroscope-io/pyroscope/commit/c20a137a56141f944967c8e229c16c773ec4a607)) - - - - - -## [1.2.15](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.14...@pyroscope/panel-plugin@1.2.15) (2022-04-11) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.14](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.13...@pyroscope/panel-plugin@1.2.14) (2022-04-11) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.13](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.12...@pyroscope/panel-plugin@1.2.13) (2022-04-06) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.12](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.11...@pyroscope/panel-plugin@1.2.12) (2022-03-25) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.11](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.10...@pyroscope/panel-plugin@1.2.11) (2022-03-24) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.10](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.9...@pyroscope/panel-plugin@1.2.10) (2022-03-23) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.9](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.8...@pyroscope/panel-plugin@1.2.9) (2022-03-15) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.8](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.7...@pyroscope/panel-plugin@1.2.8) (2022-03-14) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.7](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.6...@pyroscope/panel-plugin@1.2.7) (2022-03-14) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.6](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.5...@pyroscope/panel-plugin@1.2.6) (2022-03-09) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.5](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.4...@pyroscope/panel-plugin@1.2.5) (2022-03-08) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.4](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.3...@pyroscope/panel-plugin@1.2.4) (2022-03-07) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -## [1.2.3](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.2...@pyroscope/panel-plugin@1.2.3) (2022-02-24) - - -### Bug Fixes - -* **panel-plugin:** don't load CSS file since it's loaded using css modules ([#891](https://github.com/pyroscope-io/pyroscope/issues/891)) ([183eaa0](https://github.com/pyroscope-io/pyroscope/commit/183eaa0e0e719d4f1c408195a2f2b5912b5071d3)) - - - - - -## [1.2.2](https://github.com/pyroscope-io/pyroscope/compare/@pyroscope/panel-plugin@1.2.1...@pyroscope/panel-plugin@1.2.2) (2022-02-24) - - -### Bug Fixes - -* disable pyroscope logo ([#890](https://github.com/pyroscope-io/pyroscope/issues/890)) ([0477cff](https://github.com/pyroscope-io/pyroscope/commit/0477cff8565406c330b48c819c0ed16a69653cee)) - - - - - -## 1.2.1 (2022-02-24) - -**Note:** Version bump only for package @pyroscope/panel-plugin - - - - - -# Change Log - -## 1.2.0 -* Remove broken export button -* Improve flamegraph coloring for go - - -## 1.1.0 -* Add context menu (triggered by right clicking the flamegraph) -* Add toolbar -* Allow focusing on a subtree -* Allow searching nodes that match a specific string -* Visual updates - -## 1.0.0 - -Initial release. diff --git a/packages/pyroscope-panel-plugin/CONTRIBUTING.md b/packages/pyroscope-panel-plugin/CONTRIBUTING.md deleted file mode 100644 index d9272d4a3a..0000000000 --- a/packages/pyroscope-panel-plugin/CONTRIBUTING.md +++ /dev/null @@ -1,31 +0,0 @@ -# Pyroscope Grafana Panel Plugin - -**Important: Grafana version 7.2 or later required** - -# Developing - -1. to build the app: -`yarn dev:panel` - -2. open grafana: -`docker-compose up` - -3. open the dashboard -http://localhost:3000/d/ZNBMoutnz/pyroscope-demo?orgId=1 - -4. every time you change code the app will be rebuilt, and you will have to refresh the dashboard page - - -# Testing -## E2E -From the root of this repository, run either -* `cy:panel:open` -> to develop locally -* `cy:panel:ci` -> to run in ci (it will use headless mode) -* `cy:panel:ss` -> to take screenshots, it will start a container using `docker` -* `cy:panel:ss-check` -> to verify the screenshots match, it will start a container using `docker` - -All these commands assume: -* an anonymous grafana instance (as in there's no login required) -* running on http://localhost:3000 -* a dashboard with UID `single-panel` - diff --git a/packages/pyroscope-panel-plugin/LICENSE b/packages/pyroscope-panel-plugin/LICENSE deleted file mode 100644 index 8dada3edaf..0000000000 --- a/packages/pyroscope-panel-plugin/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/packages/pyroscope-panel-plugin/README.md b/packages/pyroscope-panel-plugin/README.md deleted file mode 100644 index c3571b4305..0000000000 --- a/packages/pyroscope-panel-plugin/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# Pyroscope Grafana Panel Plugin - -**Important: Grafana version 7.2 or later required** - -## Getting started - -1. Install the plugin (Installation tab) -2. Install [datasource plugin](https://grafana.com/grafana/plugins/pyroscope-datasource/) -3. Open Grafana and go to **Configuration -> Plugins** -4. Check that plugins are available -5. Set up data source plugin: - * **Configuration -> Data Sources -> Add data source** - * click on `pyroscope-datasource` - * Specify Pyroscope host in `Endpoint` field -6. Set up panel plugin: - * Add an empty panel on your dashboard - * Select `pyroscope-panel` from Visualization list - * Under panel view in Query tab select `pyroscope-datasource` - * In `Application name` input specify app name - * Click `Apply` - -Congratulations! Now you can monitor application flamegraph on your Grafana dashboard! diff --git a/packages/pyroscope-panel-plugin/cypress.json b/packages/pyroscope-panel-plugin/cypress.json deleted file mode 100644 index d06190160d..0000000000 --- a/packages/pyroscope-panel-plugin/cypress.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "baseUrl": "http://localhost:3000", - "integrationFolder": "cypress/integration/panel", - "reporter": "cypress-image-snapshot/reporter", - "retries": { - "runMode": 5 - } -} diff --git a/packages/pyroscope-panel-plugin/docker-compose.yml b/packages/pyroscope-panel-plugin/docker-compose.yml deleted file mode 100644 index c54fdc642e..0000000000 --- a/packages/pyroscope-panel-plugin/docker-compose.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -version: '3.9' -services: - grafana: - image: grafana/grafana:8.1.1 - volumes: - - ./dist:/var/lib/grafana/plugins/pyroscope-panel - - ./grafana.ini:/etc/grafana/grafana.ini - - ./grafana-provisioning:/etc/grafana/provisioning - environment: - - GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=pyroscope-panel - - GF_INSTALL_PLUGINS=https://github.com/pyroscope-io/grafana-datasource-plugin/releases/download/v1.1.0/pyroscope-datasource-1.1.0.zip;pyroscope-datasource - ports: - - 3000:3000 - - pyroscope: - image: - 'pyroscope/pyroscope:latest' - # ports: - # - 4040:4040 - command: - - server - environment: - - PYROSCOPE_LOG_LEVEL=info diff --git a/packages/pyroscope-panel-plugin/grafana-provisioning/dashboards/dashboard.json b/packages/pyroscope-panel-plugin/grafana-provisioning/dashboards/dashboard.json deleted file mode 100644 index 78220f5c0a..0000000000 --- a/packages/pyroscope-panel-plugin/grafana-provisioning/dashboards/dashboard.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "links": [], - "panels": [ - { - "datasource": "Pyroscope", - "gridPos": { - "h": 10, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "options": { - "seriesCountSize": "sm", - "showSeriesCount": false, - "text": "Default value of text input option" - }, - "targets": [ - { - "format": "json", - "from": "now-1h", - "name": "pyroscope.server.cpu", - "queryType": "randomWalk", - "refId": "A", - "until": "now" - } - ], - "title": "Panel Title", - "type": "pyroscope-panel" - }, - { - "datasource": "Pyroscope", - "gridPos": { - "h": 8, - "w": 7, - "x": 0, - "y": 10 - }, - "id": 3, - "options": { - "seriesCountSize": "sm", - "showSeriesCount": false, - "text": "Default value of text input option" - }, - "targets": [ - { - "format": "json", - "from": "now-1h", - "name": "pyroscope.server.cpu", - "queryType": "randomWalk", - "refId": "A", - "until": "now" - } - ], - "title": "Panel Title", - "type": "pyroscope-panel" - }, - { - "datasource": "Pyroscope", - "gridPos": { - "h": 8, - "w": 11, - "x": 7, - "y": 10 - }, - "id": 4, - "options": { - "seriesCountSize": "sm", - "showSeriesCount": false, - "text": "Default value of text input option" - }, - "targets": [ - { - "format": "json", - "from": "now-1h", - "name": "pyroscope.server.cpu", - "queryType": "randomWalk", - "refId": "A", - "until": "now" - } - ], - "title": "Panel Title", - "type": "pyroscope-panel" - }, - { - "datasource": "Pyroscope", - "gridPos": { - "h": 8, - "w": 6, - "x": 18, - "y": 10 - }, - "id": 5, - "options": { - "seriesCountSize": "sm", - "showSeriesCount": false, - "text": "Default value of text input option" - }, - "targets": [ - { - "format": "json", - "from": "now-1h", - "name": "pyroscope.server.cpu", - "queryType": "randomWalk", - "refId": "A", - "until": "now" - } - ], - "title": "Panel Title", - "type": "pyroscope-panel" - } - ], - "refresh": "", - "schemaVersion": 30, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Pyroscope demo", - "uid": "ZNBMoutnz", - "version": 3 -} diff --git a/packages/pyroscope-panel-plugin/grafana-provisioning/dashboards/main.yml b/packages/pyroscope-panel-plugin/grafana-provisioning/dashboards/main.yml deleted file mode 100644 index 736aa1f750..0000000000 --- a/packages/pyroscope-panel-plugin/grafana-provisioning/dashboards/main.yml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: 1 - -providers: - - name: dashboards - type: file - updateIntervalSeconds: 5 - options: - path: /etc/grafana/provisioning/dashboards diff --git a/packages/pyroscope-panel-plugin/grafana-provisioning/dashboards/single-panel.json b/packages/pyroscope-panel-plugin/grafana-provisioning/dashboards/single-panel.json deleted file mode 100644 index cf42437ae9..0000000000 --- a/packages/pyroscope-panel-plugin/grafana-provisioning/dashboards/single-panel.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "links": [], - "panels": [ - { - "datasource": "Pyroscope", - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 2, - "options": { - "showToolbar": false - }, - "targets": [ - { - "format": "json", - "from": "now-1h", - "name": "pyroscope.server.cpu", - "queryType": "randomWalk", - "refId": "A", - "until": "now" - } - ], - "title": "Panel Title", - "type": "pyroscope-panel" - } - ], - "schemaVersion": 30, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Single Panel Dashboard", - "uid": "single-panel", - "version": 3 -} diff --git a/packages/pyroscope-panel-plugin/grafana-provisioning/datasources/datasources.yml b/packages/pyroscope-panel-plugin/grafana-provisioning/datasources/datasources.yml deleted file mode 100644 index 984bbd0366..0000000000 --- a/packages/pyroscope-panel-plugin/grafana-provisioning/datasources/datasources.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: 1 - -datasources: - - name: Pyroscope - type: pyroscope-datasource - access: proxy - orgId: 1 - uid: pyroscope - jsonData: - path: http://pyroscope:4040 diff --git a/packages/pyroscope-panel-plugin/grafana.ini b/packages/pyroscope-panel-plugin/grafana.ini deleted file mode 100644 index 9939cbb6a3..0000000000 --- a/packages/pyroscope-panel-plugin/grafana.ini +++ /dev/null @@ -1,976 +0,0 @@ -##################### Grafana Configuration Example ##################### -# -# Everything has defaults so you only need to uncomment things you want to -# change - -# possible values : production, development -;app_mode = production - -# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty -;instance_name = ${HOSTNAME} - -#################################### Paths #################################### -[paths] -# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used) -;data = /var/lib/grafana - -# Temporary files in `data` directory older than given duration will be removed -;temp_data_lifetime = 24h - -# Directory where grafana can store logs -;logs = /var/log/grafana - -# Directory where grafana will automatically scan and look for plugins -;plugins = /var/lib/grafana/plugins - -# folder that contains provisioning config files that grafana will apply on startup and while running. -provisioning = /etc/grafana/provisioning - -#################################### Server #################################### -[server] -# Protocol (http, https, h2, socket) -;protocol = http - -# The ip address to bind to, empty will bind to all interfaces -;http_addr = - -# The http port to use -;http_port = 3000 - -# The public facing domain name used to access grafana from a browser -;domain = localhost - -# Redirect to correct domain if host header does not match domain -# Prevents DNS rebinding attacks -;enforce_domain = false - -# The full public facing url you use in browser, used for redirects and emails -# If you use reverse proxy and sub path specify full url (with sub path) -;root_url = %(protocol)s://%(domain)s:%(http_port)s/ - -# Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons. -;serve_from_sub_path = false - -# Log web requests -;router_logging = false - -# the path relative working path -;static_root_path = public - -# enable gzip -;enable_gzip = false - -# https certs & key file -;cert_file = -;cert_key = - -# Unix socket path -;socket = - -# CDN Url -;cdn_url = - -# Sets the maximum time using a duration format (5s/5m/5ms) before timing out read of an incoming request and closing idle connections. -# `0` means there is no timeout for reading the request. -;read_timeout = 0 - -#################################### Database #################################### -[database] -# You can configure the database connection by specifying type, host, name, user and password -# as separate properties or as on string using the url properties. - -# Either "mysql", "postgres" or "sqlite3", it's your choice -;type = sqlite3 -;host = 127.0.0.1:3306 -;name = grafana -;user = root -# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;""" -;password = - -# Use either URL or the previous fields to configure the database -# Example: mysql://user:secret@host:port/database -;url = - -# For "postgres" only, either "disable", "require" or "verify-full" -;ssl_mode = disable - -# Database drivers may support different transaction isolation levels. -# Currently, only "mysql" driver supports isolation levels. -# If the value is empty - driver's default isolation level is applied. -# For "mysql" use "READ-UNCOMMITTED", "READ-COMMITTED", "REPEATABLE-READ" or "SERIALIZABLE". -;isolation_level = - -;ca_cert_path = -;client_key_path = -;client_cert_path = -;server_cert_name = - -# For "sqlite3" only, path relative to data_path setting -;path = grafana.db - -# Max idle conn setting default is 2 -;max_idle_conn = 2 - -# Max conn setting default is 0 (mean not set) -;max_open_conn = - -# Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours) -;conn_max_lifetime = 14400 - -# Set to true to log the sql calls and execution times. -;log_queries = - -# For "sqlite3" only. cache mode setting used for connecting to the database. (private, shared) -;cache_mode = private - -################################### Data sources ######################### -[datasources] -# Upper limit of data sources that Grafana will return. This limit is a temporary configuration and it will be deprecated when pagination will be introduced on the list data sources API. -;datasource_limit = 5000 - -#################################### Cache server ############################# -[remote_cache] -# Either "redis", "memcached" or "database" default is "database" -;type = database - -# cache connectionstring options -# database: will use Grafana primary database. -# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=0,ssl=false`. Only addr is required. ssl may be 'true', 'false', or 'insecure'. -# memcache: 127.0.0.1:11211 -;connstr = - -#################################### Data proxy ########################### -[dataproxy] - -# This enables data proxy logging, default is false -;logging = false - -# How long the data proxy waits to read the headers of the response before timing out, default is 30 seconds. -# This setting also applies to core backend HTTP data sources where query requests use an HTTP client with timeout set. -;timeout = 30 - -# How long the data proxy waits to establish a TCP connection before timing out, default is 10 seconds. -;dialTimeout = 10 - -# How many seconds the data proxy waits before sending a keepalive probe request. -;keep_alive_seconds = 30 - -# How many seconds the data proxy waits for a successful TLS Handshake before timing out. -;tls_handshake_timeout_seconds = 10 - -# How many seconds the data proxy will wait for a server's first response headers after -# fully writing the request headers if the request has an "Expect: 100-continue" -# header. A value of 0 will result in the body being sent immediately, without -# waiting for the server to approve. -;expect_continue_timeout_seconds = 1 - -# The maximum number of idle connections that Grafana will keep alive. -;max_idle_connections = 100 - -# The maximum number of idle connections per host that Grafana will keep alive. -;max_idle_connections_per_host = 2 - -# How many seconds the data proxy keeps an idle connection open before timing out. -;idle_conn_timeout_seconds = 90 - -# If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request, default is false. -;send_user_header = false - -#################################### Analytics #################################### -[analytics] -# Server reporting, sends usage counters to stats.grafana.org every 24 hours. -# No ip addresses are being tracked, only simple counters to track -# running instances, dashboard and error counts. It is very helpful to us. -# Change this option to false to disable reporting. -;reporting_enabled = true - -# The name of the distributor of the Grafana instance. Ex hosted-grafana, grafana-labs -;reporting_distributor = grafana-labs - -# Set to false to disable all checks to https://grafana.net -# for new versions (grafana itself and plugins), check is used -# in some UI views to notify that grafana or plugin update exists -# This option does not cause any auto updates, nor send any information -# only a GET request to http://grafana.com to get latest versions -;check_for_updates = true - -# Google Analytics universal tracking code, only enabled if you specify an id here -;google_analytics_ua_id = - -# Google Tag Manager ID, only enabled if you specify an id here -;google_tag_manager_id = - -#################################### Security #################################### -[security] -# disable creation of admin user on first start of grafana -;disable_initial_admin_creation = false - -# default admin user, created on startup -;admin_user = admin - -# default admin password, can be changed before first start of grafana, or in profile settings -;admin_password = admin - -# used for signing -;secret_key = SW2YcwTIb9zpOOhoPsMm - -# disable gravatar profile images -;disable_gravatar = false - -# data source proxy whitelist (ip_or_domain:port separated by spaces) -;data_source_proxy_whitelist = - -# disable protection against brute force login attempts -;disable_brute_force_login_protection = false - -# set to true if you host Grafana behind HTTPS. default is false. -;cookie_secure = false - -# set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled" -;cookie_samesite = lax - -# set to true if you want to allow browsers to render Grafana in a ,