Skip to content

Commit 70ca5cc

Browse files
all: rename plugin IDs from pcp-*-* to performancecopilot-*-*
All nested plugins need to conform to the Grafana plugin naming guidelines.
1 parent bfbc8ab commit 70ca5cc

26 files changed

+44
-32
lines changed

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,28 @@
22

33
## 5.0.0 (2022-06-30)
44

5+
### Important: Upgrade instructions
6+
Due to a breaking change (see section below), the following instructions are required before upgrading to grafana-pcp v5:
7+
* Go to Configuration -> Data sources and delete any PCP Redis, PCP Vector or PCP bpftrace data sources
8+
* Go to Configuration -> Plugins, select the Performance Co-Pilot app and click the Disable button
9+
* Go to Dashboards -> Browse and delete any remaining dashboards installed by grafana-pcp
10+
* If you installed grafana-pcp through the RPM package, open the `/etc/grafana/grafana.ini` configuration file and update the following setting: `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`
11+
* Perform the upgrade to grafana-pcp v5
12+
* Enable the plugin, setup all data sources and import all dashboards again
13+
* If you have custom dashboards, update all panels with the correct data source
14+
15+
### Enhancements / Bug Fixes
16+
- **all**: rename plugin IDs from `pcp-*-*` to `performancecopilot-*-*`
517
- **all**: remove `window.setGrafanaPcpLogLevel()` debug function
618
- **chore**: remove deprecated `dependencies.grafanaVersion` field from plugin metadata
719

20+
### Breaking Changes
21+
- the internal plugin IDs of the data source and panel plugins were renamed from `pcp-X-Y` to `performancecopilot-X-Y`, for example `pcp-redis-datasource` was renamed to `performancecopilot-redis-datasource` in order to conform to the Grafana plugin id naming conventions
22+
23+
824
## 4.0.0 (2022-06-29)
925

1026
### Enhancements / Bug Fixes
11-
1227
- **redis, vector**: add buttons to disable rate conversation and time utilization conversation
1328
- **redis**: use LRU cache for series metadata
1429
- **redis**: fix label_names() function to return all label names if no parameter is specified (now the label name auto-completion in the query editor works again)

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ test-ui-start-pod: ## Start PCP and Redis in a pod
107107

108108
test-ui-start-grafana-dist: ## Start Grafana with grafana-pcp from the dist/ folder
109109
podman run --pod grafana-pcp-tests --name grafana-pcp-tests-grafana -d --replace \
110-
-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" \
110+
-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" \
111111
-v $$(pwd)/dist:/var/lib/grafana/plugins/performancecopilot-pcp-app \
112112
$(GRAFANA_IMAGE)
113113

114114
test-ui-start-grafana-build: ## Start Grafana with grafana-pcp from build/performancecopilot-pcp-app-*.zip
115115
podman run --pod grafana-pcp-tests --name grafana-pcp-tests-grafana -d --replace \
116-
-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" \
116+
-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" \
117117
-e GF_INSTALL_PLUGINS="/tmp/plugin.zip;performancecopilot-pcp-app" \
118118
-v $$(pwd)/build/$$(basename build/performancecopilot-pcp-app-*.zip):/tmp/plugin.zip \
119119
$(GRAFANA_IMAGE)

cypress/integration/checklist.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ describe('PCP Vector Checklist', () => {
33
cy.task('grafana:reset');
44
cy.login();
55
cy.enablePlugin();
6-
cy.addDatasource('pcp-vector-datasource', 'PCP Vector datasource');
6+
cy.addDatasource('performancecopilot-vector-datasource', 'PCP Vector datasource');
77
});
88

99
beforeEach(() => {

cypress/integration/datasources/redis.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ describe('PCP Redis datasource', () => {
33
cy.task('grafana:reset');
44
cy.login();
55
cy.enablePlugin();
6-
cy.addDatasource('pcp-redis-datasource', 'PCP Redis datasource');
6+
cy.addDatasource('performancecopilot-redis-datasource', 'PCP Redis datasource');
77
});
88

99
beforeEach(() => {

cypress/integration/datasources/vector.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ describe('PCP Vector datasource', () => {
33
cy.task('grafana:reset');
44
cy.login();
55
cy.enablePlugin();
6-
cy.addDatasource('pcp-vector-datasource', 'PCP Vector datasource');
6+
cy.addDatasource('performancecopilot-vector-datasource', 'PCP Vector datasource');
77
});
88

99
beforeEach(() => {

docs/installation.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ Replace X.Y.Z with the version of grafana-pcp you wish to install.
3737
3838
$ wget https://github.com/performancecopilot/grafana-pcp/releases/download/vX.Y.Z/performancecopilot-pcp-app-X.Y.Z.zip
3939
$ sudo unzip -d /var/lib/grafana/plugins performancecopilot-pcp-app-X.Y.Z.zip
40-
$ 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
4140
$ sudo systemctl restart grafana-server
4241
4342
@@ -52,15 +51,13 @@ Replace X.Y.Z with the version of grafana-pcp you wish to install.
5251
5352
$ podman run \
5453
-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" \
55-
-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" \
5654
-p 3000:3000 \
5755
docker.io/grafana/grafana
5856
5957
.. code-block:: shell
6058
6159
$ docker run \
6260
-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" \
63-
-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" \
6461
-p 3000:3000 \
6562
grafana/grafana
6663
@@ -75,7 +72,7 @@ The `yarn package manager <https://yarnpkg.com>`_, `Go compiler <https://golang.
7572
$ git clone https://github.com/performancecopilot/grafana-pcp.git
7673
$ make build
7774
$ sudo ln -s $(pwd) /var/lib/grafana/plugins
78-
$ 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
75+
$ sudo sed -i 's/;allow_loading_unsigned_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/' /etc/grafana/grafana.ini
7976
$ sudo systemctl restart grafana-server
8077
8178
To list all available Makefile targets, run ``make help``.

src/dashboards/redis/preview/pcp-redis-metric-preview-graph.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ grafana.dashboard.new(
1111
.addTemplate(
1212
grafana.template.datasource(
1313
'datasource',
14-
'pcp-redis-datasource',
14+
'performancecopilot-redis-datasource',
1515
'PCP Redis',
1616
hide='variable',
1717
)

src/dashboards/redis/preview/pcp-redis-metric-preview-table.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ grafana.dashboard.new(
1111
.addTemplate(
1212
grafana.template.datasource(
1313
'datasource',
14-
'pcp-redis-datasource',
14+
'performancecopilot-redis-datasource',
1515
'PCP Redis',
1616
hide='variable',
1717
)

src/dashboards/vector/checklist/_breadcrumbspanel.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
items=[],
1919
):: {
2020
title: title,
21-
type: 'pcp-breadcrumbs-panel',
21+
type: 'performancecopilot-breadcrumbs-panel',
2222
options: {
2323
items: items,
2424
},

src/dashboards/vector/checklist/_troubleshootingpanel.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
unit=null
1818
):: {
1919
title: title,
20-
type: 'pcp-troubleshooting-panel',
20+
type: 'performancecopilot-troubleshooting-panel',
2121
datasource: datasource,
2222
options: {
2323
troubleshooting: troubleshooting,

0 commit comments

Comments
 (0)