-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changefeedccl: Add ability to track per-changefeed metrics.
Changefeeds can now be created with a new option: `metrics_label`. Metrics label allow the operator to group metrics related to service level indicators (SLI) by attaching a label to those metrics. Examples of SLI related metrics are: * Error rates * Number of emitted messages and the size of data (pre & post compression). * Admit and commit message latency This experimental feature is controlled via an environment variable `COCKROACH_EXPERIMENTAL_ENABLE_PER_CHANGEFEED_METRICS` which can be set to true to enable this feature. While the admistrator is free to create as many of those scoped labels as they need (up to a hard limit of 1024), excessive number of labels should be avoided since each custom label increases the cardinality of the metrics exported to prometheus. SLI scopes let operators label one or more changefeeds, based on criteria of their choosing. This labeling effectively creates a monitoring scope, based on relative priority of those changefeeds, which lets the operator monitor those changefeed independently of other changefeeds For example, production changefeed might fall under `prod` scope, while perhaps less important, changefeeds might fall under `low_pri` scope. The use of `metrics_label` is supported by enterprise changefeeds only. Release Notes (enterprise change): Changefeeds can be created with a new option called `metrics_label` which lets operators configure changefeeds to use dedicated set of metrics for those changefeed(s) so that they can be monitored independently of other changefeed(s) in the system.
- Loading branch information
Yevgeniy Miretskiy
committed
Nov 19, 2021
1 parent
35e3995
commit 707af75
Showing
15 changed files
with
323 additions
and
308 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
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
Oops, something went wrong.