Investigate "error: The metric already exists."
mariliamelo opened this issue · comments
Marilia Melo commented
When investigating an alert, we noticed the logs had many entries like
"Errors during metric descriptor creation: {(metric: custom.googleapis.com/opencensus/en-verification-server/api/issue/realm_token_used_count, error: The metric already exists.)}."
We fixed the issue now: The fix is just "delete the metric and hope the CreateMetricDescriptor RPC happen before CreateTimeSeries RPC so correct metric descriptor can be created".
Marilia Melo commented
This is fixed and not firing anymore.