Once PCF Metric is installed, opening https://metrics.<system-domain> in the browser returns the following message:
404 Not Found: Requested route ('metrics.system-dev.cf.pivotal.io') does not exist.
Note: This issue is Fixed in PCF Metrics version 1.0.8.
During the uninstall of PCF Metrics, not all resources (i.e. apps and routes) are removed. Updates or upgrades of other PCF Tiles may also cause this issue to arise if the PCF Metrics Tile errands are rerun.
Log on to Apps Manager via CLI and run the following commands:
cf target -o system -s metrics cf stop metrics cf stop metrics-api cf unmap-route metrics <system-domain> --hostname metrics cf unmap-route metrics-api <system-domain> --hostname metrics cf map-route metrics <system-domain> --hostname metrics cf map-route metrics-api <system-domain> --hostname metrics --path v2 cf start metrics cf start metrics-api
After executing a cf routes
, you should have something similar to the following:
cf routes Getting routes for org system / space metrics as admin ... space host domain port path type apps service metrics metrics <system-domain> /v2 metrics-api metrics metrics <system-domain> metrics
If you execute cf routes
command and notice that no applications exists (see below), Please run cf delete-orphaned-routes
to delete routes, then try the map-route
commands from above:
Getting routes for org system / space metrics as admin ... space host domain path apps service metrics metrics <system-domain> /v2 metrics metrics <system-domain>