-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize counter metric when reconciler starts
Due to how Opencensus Count metrics work, resource_conflict, resource_fight, and internal_errors won't show up in queries unless they've actually been recorded or increased. To ensure visibility even when no errors are present, we record with a special label value to these metrics when reconciler starts, initially setting their value to 1. However, when using Cloud Monitoring's default Rate aggregation for these Count metrics, this initial value will be normalized to 0 during normal operation, correctly indicating no errors.
- Loading branch information
1 parent
c8f1ddf
commit 55a2b91
Showing
3 changed files
with
27 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters