google / exposure-notifications-verification-server

Verification component for COVID-19 Exposure Notifications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Investigate "error: The metric already exists."

mariliamelo opened this issue · comments

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".

This is fixed and not firing anymore.