This PR will configure copydb to consume metric events and dispatch them to statsd (datadog-go/statsd flavoured). The consumer in sharding have been cleaned up and tested.
I had to upgrade testify to get access to assert.PanicsWithError.
Breaking change (sharding only)
It's now also possible to disable consumption of metrics if StatsdAddress isn't configured, this is a breaking change if you rely on the default fallback to 127.0.0.1:8125. If you are using this fallback, configure StatsdAddress to 127.0.0.1:8125 in your config.
The metric prefix have also been updated to include ghostferry.
Old metric key: sharding.RowEvent
New metric key: ghostferry.sharding.RowEvent
This PR will configure copydb to consume metric events and dispatch them to statsd (datadog-go/statsd flavoured). The consumer in sharding have been cleaned up and tested.
I had to upgrade
testify
to get access toassert.PanicsWithError
.Breaking change (sharding only)
It's now also possible to disable consumption of metrics if
StatsdAddress
isn't configured, this is a breaking change if you rely on the default fallback to127.0.0.1:8125
. If you are using this fallback, configureStatsdAddress
to127.0.0.1:8125
in your config.The metric prefix have also been updated to include
ghostferry
.Old metric key:
sharding.RowEvent
New metric key:ghostferry.sharding.RowEvent
Suggested new metrics