Commit b1528807 authored by João Pereira's avatar João Pereira
Browse files

fix(handlers): always add the migration_path label to HTTP metrics

When `migration.enabled` was `false`, the `migration_path` label would
not be added to the HTTP metrics, but Prometheus expects it to be always
present (either set or not). This was breaking the metrics emission.

This change makes sure that the label is always present. When
`migration.enabled` is `false`, the label is set to an empty string.
When `migration.enabled` is `true`, the label is set to either `old` or
`new`.
parent b6a3566b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment