Skip to content

Fix stale Prometheus metrics directory not being restored

Stan Hu requested to merge sh-fix-stale-prometrics-config into master

metrics_server_spec.rb used a temporary directory to store Prometheus metrics, but there is a class variable that stores the current configuration. When the directory was wiped, the configuration was not properly restored, so any subsequent specs that attempted to log metrics would fail.

We fix this by restoring the old metrics dir in the config after the spec runs.

Closes #347499 (closed)

Edited by Stan Hu

Merge request reports

Loading