Skip to content

compute*: command history metrics#19964

Merged
teskje merged 3 commits into
MaterializeInc:mainfrom
teskje:compute-history-metrics
Jun 17, 2023
Merged

compute*: command history metrics#19964
teskje merged 3 commits into
MaterializeInc:mainfrom
teskje:compute-history-metrics

Conversation

@teskje

@teskje teskje commented Jun 15, 2023

Copy link
Copy Markdown
Contributor

This PR adds command history metrics to the compute controller as proposed in the design doc (#19717):

  • count of commands, by command type
  • count of dataflows

In addition, this PR modifies the existing replica metrics to be consistent with the controller metrics. This includes adjusting their names and adding a command type label to the command count metric.

Motivation

  • This PR adds a known-desirable feature.

Part of MaterializeInc/database-issues#5547.
Closes MaterializeInc/database-issues#4621.

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:
    • N/A

teskje added 3 commits June 15, 2023 16:06
This commit adds command history metrics to the compute controller:
 * count of commands, by command type
 * count of dataflows

In addition, this commit modifies the existing replica metrics to be
consistent with the controller metrics. This includes adjusting their
names and adding a command type label to the command count metric.
This commit updates the mzcompose test that verifies that the compute
command history doesn't grow unexpectedly. Specifically it:

 * ... adjusts for the renamed replica metrics
 * ... adds testing of the controller history as well
@teskje teskje force-pushed the compute-history-metrics branch from 7833ebb to df487a1 Compare June 15, 2023 14:06
@teskje teskje marked this pull request as ready for review June 15, 2023 15:32
@teskje teskje requested review from a team and vmarcos June 15, 2023 15:32

@vmarcos vmarcos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@teskje teskje merged commit aa454e8 into MaterializeInc:main Jun 17, 2023
@teskje

teskje commented Jun 17, 2023

Copy link
Copy Markdown
Contributor Author

TFTR!

@teskje teskje deleted the compute-history-metrics branch July 23, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants