From 51c9183dee84afb43c35bbb8e486062952571d45 Mon Sep 17 00:00:00 2001 From: Andreas Gerstmayr Date: Thu, 7 Jul 2022 15:43:01 +0200 Subject: [PATCH] Revert "all: rename plugin IDs from pcp-*-* to performancecopilot-*-*" This partially reverts commit 70ca5cc307e231cea14281e1cd2268ae4f1f445c. diff --git a/Makefile b/Makefile index f2b58e7..2fba81f 100644 --- a/Makefile +++ b/Makefile @@ -107,13 +107,13 @@ test-ui-start-pod: ## Start PCP and Redis in a pod test-ui-start-grafana-dist: ## Start Grafana with grafana-pcp from the dist/ folder podman run --pod grafana-pcp-tests --name grafana-pcp-tests-grafana -d --replace \ - -e GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS="performancecopilot-pcp-app,performancecopilot-redis-datasource,performancecopilot-vector-datasource,performancecopilot-bpftrace-datasource,performancecopilot-flamegraph-panel,performancecopilot-breadcrumbs-panel,performancecopilot-troubleshooting-panel" \ + -e GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS="performancecopilot-pcp-app,pcp-redis-datasource,pcp-vector-datasource,pcp-bpftrace-datasource,pcp-flamegraph-panel,pcp-breadcrumbs-panel,pcp-troubleshooting-panel" \ -v $$(pwd)/dist:/var/lib/grafana/plugins/performancecopilot-pcp-app \ $(GRAFANA_IMAGE) test-ui-start-grafana-build: ## Start Grafana with grafana-pcp from build/performancecopilot-pcp-app-*.zip podman run --pod grafana-pcp-tests --name grafana-pcp-tests-grafana -d --replace \ - -e GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS="performancecopilot-pcp-app,performancecopilot-redis-datasource,performancecopilot-vector-datasource,performancecopilot-bpftrace-datasource,performancecopilot-flamegraph-panel,performancecopilot-breadcrumbs-panel,performancecopilot-troubleshooting-panel" \ + -e GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS="performancecopilot-pcp-app,pcp-redis-datasource,pcp-vector-datasource,pcp-bpftrace-datasource,pcp-flamegraph-panel,pcp-breadcrumbs-panel,pcp-troubleshooting-panel" \ -e GF_INSTALL_PLUGINS="/tmp/plugin.zip;performancecopilot-pcp-app" \ -v $$(pwd)/build/$$(basename build/performancecopilot-pcp-app-*.zip):/tmp/plugin.zip \ $(GRAFANA_IMAGE) diff --git a/cypress/integration/checklist.spec.ts b/cypress/integration/checklist.spec.ts index dd96757..7dd3744 100644 --- a/cypress/integration/checklist.spec.ts +++ b/cypress/integration/checklist.spec.ts @@ -3,7 +3,7 @@ describe('PCP Vector Checklist', () => { cy.task('grafana:reset'); cy.login(); cy.enablePlugin(); - cy.addDatasource('performancecopilot-vector-datasource', 'PCP Vector data source'); + cy.addDatasource('pcp-vector-datasource', 'PCP Vector data source'); }); beforeEach(() => { diff --git a/cypress/integration/datasources/redis.spec.ts b/cypress/integration/datasources/redis.spec.ts index 15be89b..5630611 100644 --- a/cypress/integration/datasources/redis.spec.ts +++ b/cypress/integration/datasources/redis.spec.ts @@ -3,7 +3,7 @@ describe('PCP Redis data source', () => { cy.task('grafana:reset'); cy.login(); cy.enablePlugin(); - cy.addDatasource('performancecopilot-redis-datasource', 'PCP Redis data source'); + cy.addDatasource('pcp-redis-datasource', 'PCP Redis data source'); }); beforeEach(() => { diff --git a/cypress/integration/datasources/vector.spec.ts b/cypress/integration/datasources/vector.spec.ts index d6e01de..a2ec2b1 100644 --- a/cypress/integration/datasources/vector.spec.ts +++ b/cypress/integration/datasources/vector.spec.ts @@ -3,7 +3,7 @@ describe('PCP Vector data source', () => { cy.task('grafana:reset'); cy.login(); cy.enablePlugin(); - cy.addDatasource('performancecopilot-vector-datasource', 'PCP Vector data source'); + cy.addDatasource('pcp-vector-datasource', 'PCP Vector data source'); }); beforeEach(() => { diff --git a/docs/installation.rst b/docs/installation.rst index 0e356ea..718e27f 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -37,6 +37,7 @@ Replace X.Y.Z with the version of grafana-pcp you wish to install. $ wget https://github.com/performancecopilot/grafana-pcp/releases/download/vX.Y.Z/performancecopilot-pcp-app-X.Y.Z.zip $ sudo unzip -d /var/lib/grafana/plugins performancecopilot-pcp-app-X.Y.Z.zip + $ sudo sed -i 's/;allow_loading_unsigned_plugins =/allow_loading_unsigned_plugins = performancecopilot-pcp-app,pcp-redis-datasource,pcp-vector-datasource,pcp-bpftrace-datasource,pcp-flamegraph-panel,pcp-breadcrumbs-panel,pcp-troubleshooting-panel/' /etc/grafana/grafana.ini $ sudo systemctl restart grafana-server @@ -51,6 +52,7 @@ Replace X.Y.Z with the version of grafana-pcp you wish to install. $ podman run \ -e GF_INSTALL_PLUGINS="https://github.com/performancecopilot/grafana-pcp/releases/download/vX.Y.Z/performancecopilot-pcp-app-X.Y.Z.zip;performancecopilot-pcp-app" \ + -e GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS="performancecopilot-pcp-app,pcp-redis-datasource,pcp-vector-datasource,pcp-bpftrace-datasource,pcp-flamegraph-panel,pcp-breadcrumbs-panel,pcp-troubleshooting-panel" \ -p 3000:3000 \ docker.io/grafana/grafana @@ -58,6 +60,7 @@ Replace X.Y.Z with the version of grafana-pcp you wish to install. $ docker run \ -e GF_INSTALL_PLUGINS="https://github.com/performancecopilot/grafana-pcp/releases/download/vX.Y.Z/performancecopilot-pcp-app-X.Y.Z.zip;performancecopilot-pcp-app" \ + -e GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS="performancecopilot-pcp-app,pcp-redis-datasource,pcp-vector-datasource,pcp-bpftrace-datasource,pcp-flamegraph-panel,pcp-breadcrumbs-panel,pcp-troubleshooting-panel" \ -p 3000:3000 \ grafana/grafana @@ -72,7 +75,7 @@ The `yarn package manager `_, `Go compiler