Upgrade Collector before upgrading WarehousePG Enterprise Manager (WEM). No service shutdown is required before running the upgrade commands.
Upgrading Collector
Run these commands from the WarehousePG coordinator.
On the coordinator, download the new Collector package from the EDB repository:
export EDB_SUBSCRIPTION_TOKEN=<your-token> export EDB_REPO=gpsupp curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_REPO/setup.rpm.sh" | sudo -E bash sudo dnf download edb-whpg-observability-collector
Create a file named
all_hostslisting every host in the cluster:cdw scdw sdw1 sdw2
Copy the package to all hosts:
gpsync -f all_hosts edb-whpg-observability-collector*.rpm =:/tmp/
gpscp -f all_hosts edb-whpg-observability-collector*.rpm =:/tmp/
Upgrade the package on all hosts:
gpssh -f all_hosts -u gpadmin -e "sudo dnf upgrade -y /tmp/edb-whpg-observability-collector*.rpm"
Redeploy the updated Collector service across all hosts:
cd /var/lib/whpg-observability/ ./deploy-observability
Upgrading WEM
Run these commands on the WEM host:
Download the new WEM package from the EDB repository:
export EDB_SUBSCRIPTION_TOKEN=<your-token> export EDB_REPO=gpsupp curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_REPO/setup.rpm.sh" | sudo -E bash sudo dnf download whpg-enterprise-manager
Install the new WEM package:
sudo dnf upgrade whpg-enterprise-manager*.rpmUpgrading to 1.2: service identity change
WEM 1.2 changes the service identity from
roottogpadmin. The upgrade handles both common cases automatically:gpadminexists on the WEM host (typical when WEM is co-located with WHPG): The upgrade adjusts file ownership so thegpadmin-run service can write logs. The service user change takes effect onsystemctl restart wem.gpadminis missing (older standalone WEM host that ran asroot): The upgrade automatically setsWHPG_ALLOW_ROOT=1inwem.confso the service continues running as root, with instructions written to the service configuration for switching togpadminlater.
If you have a custom service configuration override that sets
User=root, the service refuses to start after the upgrade. Either remove the override or setWHPG_ALLOW_ROOT=1in/etc/wem/wem.conf.Restart the WEM service to apply the update:
systemctl restart wem
WEM 1.2 introduces an optional remote write receiver that allows WEM to accept inbound metrics from Grafana Alloy or any Prometheus-compatible client via a POST /write endpoint. This feature is disabled by default and requires explicit configuration to enable. See Remote write receiver (optional) in the Configuring WEM section for details.