Description:
After upgrading from Benthos 4.10.0 to 4.27.0, we are unable to get the metrics of each switch case individually. In version 4.10.0, metrics were obtained separately for each switch case, but in version 4.27.0, the metrics are not separated by switch cases.
To Reproduce:
Use the following configuration in Benthos 4.10.0:
Description: After upgrading from Benthos 4.10.0 to 4.27.0, we are unable to get the metrics of each switch case individually. In version 4.10.0, metrics were obtained separately for each switch case, but in version 4.27.0, the metrics are not separated by switch cases.
To Reproduce:
4.10.0
and executecurl localhost:4195/metrics
.root.output.switch.0.output.fallback.0
.curl localhost:4195/metrics
.root.output.switch.output.retry.output.fallback.0
without individual case differentiation.Expected behavior:
Metrics should be separated by switch cases as in the previous version, for example: