-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: add lease preference metrics
There were no existing metrics to monitor the lease preference conformance. This commit adds two metric gauges: `leases.preferences.violating` and `leases.preferences.less-preferred`. These metrics are reported by the store. `leases.preferences.violating` indicates the number of valid leases a store owns, which satisfy none of the preferences applied. `leases.preferences.less-preferred` indicates the number of valid leases a store owns, which satisfy some of the preferences applied, but not the first one. For example, with a lease preference `'[[+zone=a],[+zone=b]]'`, the metric values with different leaseholders are: ``` leaseholder_locality="zone=c" leases.preferences.less-preferred: 0 leases.preferences.violating: 1 ``` ``` leaseholder_locality="zone=b" leases.preferences.less-preferred: 1 leases.preferences.violating: 0 ``` ``` leaseholder_locality="zone=a" leases.preferences.less-preferred: 0 leases.preferences.violating: 0 ``` When no preferences are applied, the lease is not counted in either metric. Epic: none Informs: #106100 Release note (ops change): Introduce two new metrics to monitor lease range preference conformance. `leases.preferences.violating` indicates the number of valid leases a store owns, which satisfy none of the preferences applied. `leases.preferences.less-preferred` indicates the number of valid leases a store owns, which satisfy some of the preferences applied, but not the first one.
- Loading branch information
Showing
4 changed files
with
155 additions
and
65 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
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