Hello,
I just tried these commands to enable the /metrics URL in a VM provisioned with the 1.14 Vagrant box:
echo "ARCHIVEMATICA_DASHBOARD_DASHBOARD_PROMETHEUS_ENABLED=true" | sudo tee -a /etc/default/archivematica-dashboard
sudo service archivematica-dashboard restart
After restarting the dashboard I can see the metrics page with Django's standard metrics.
You mentioned that you set the environment variables in /etc/profile.d/metrics.sh. I recommend using Archivematica's files in /etc/default (Ubuntu systems) or /etc/sysconfig (Rocky Linux/Red Hat systems) for doing that:
* archivematica-mcp-server
ARCHIVEMATICA_MCPSERVER_MCPSERVER_PROMETHEUS_BIND_PORT=7998
ARCHIVEMATICA_MCPSERVER_MCPSERVER_PROMETHEUS_BIND_ADDRESS=0.0.0.0
* archivematica-mcp-client
ARCHIVEMATICA_MCPCLIENT_MCPCLIENT_PROMETHEUS_BIND_PORT=7999
ARCHIVEMATICA_MCPCLIENT_MCPCLIENT_PROMETHEUS_BIND_ADDRESS=0.0.0.0
* archivematica-dashboard
ARCHIVEMATICA_DASHBOARD_DASHBOARD_PROMETHEUS_ENABLED=true
* archivematica-storage-service
SS_PROMETHEUS_ENABLED=true
Hope this helps.