Repository navigation
adapter: Add more metrics - #22049
Merged
Merged
Conversation
…rics to table writes, improve slow message tagging
madelynnblue
approved these changes
Sep 28, 2023
| var_labels: ["notice_type"], | ||
| )), | ||
| append_table_seconds: registry.register(metric!( | ||
| name: "mz_append_table_seconds", |
Contributor
There was a problem hiding this comment.
Suggested change
| name: "mz_append_table_seconds", | |
| name: "mz_append_table_duration_seconds", |
Prometheus seems to recommend using duration for this stuff: https://prometheus.io/docs/practices/naming/#metric-names
| var_labels: ["cause"], | ||
| )), | ||
| query_latency_seconds: registry.register(metric!( | ||
| name: "mz_query_latency", |
Contributor
There was a problem hiding this comment.
Suggested change
| name: "mz_query_latency", | |
| name: "mz_query_latency_seconds", |
ParkMyCar
enabled auto-merge (squash)
September 29, 2023 14:10
antiguru
added a commit
to antiguru/materialize
that referenced
this pull request
Aug 26, 2026
Merge each reference's Hazards and Invariants into a single section. The split produced near-verbatim duplication in every reference, between three and five entries each, because almost every hazard is an invariant with a measurement attached. Each entry now leads with the property that holds at any fleet size and gives the measurement inline. Correct the compute reference's response queue row. It claimed mz_compute_controller_response_queue_size exists directly, but no metric! invocation registers that name and Prometheus carries no such series. The response channel is an instrumented_unbounded_channel, which takes a send and a receive counter and exports no depth gauge, so the difference of the two is the only way to read depth. Record the counter-reset hazard that follows, since both counters reset when a pod is replaced. Add scripts/, holding the batched-query builder that step 5 needs and the panel-query slicer that step 4 refers to. Guard the references against metric renames from two directions. At run time, catalog-diff.sh reads doc/user/data/metrics.yml at the release tags on either side of a sign-off boundary, which separates an empty panel that is a finding from one that is a metric arriving or departing with the release. At commit time, ci/test/lint-skill-metrics.sh resolves every mz_* name in the skill against the catalog, glob patterns included, and fails on any that neither resolves nor carries a documented exemption in metrics-allowlist.txt. It also fails on an exemption that has started resolving, so entries cannot outlive their reason. Record three dead dashboard panels found while building the lint. mz_query_latency was added in MaterializeInc#22049 and deleted in MaterializeInc#26647 along with the stash, and environmentd-health still plots its _bucket family. mz_persist_columnar_validation_count and mz_txn_placeholder_schema_apply have never appeared in this repository, yet both are arms of the persist dashboard's `should be small` panel, so two of its sixteen series are permanent zeros that make the panel read healthier than it is. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In response to incident_74 we want to add more metrics around how long it takes us to query CRDB. This PR adds the following metrics:
It also improves the tagging for the "slow coordinator message" metrics to include the subtype of
Commandthat the coordinator is running.Motivation
Incident 74
Checklist
$T ⇔ Proto$Tmapping (possibly in a backwards-incompatible way), then it is tagged with aT-protolabel.