Skip to content

Commit 09c6ae2

Browse files
craig[bot]rmloveland
andcommitted
Merge #155395
155395: storage: mark add'l WAL latency metric essential r=rmloveland a=rmloveland This change marks the `storage.wal.failover.write_and_sync.latency` metric as "Essential" so it gets automatically pulled into the 'Essential Metrics' documentation at e.g., https://www.cockroachlabs.com/docs/stable/essential-metrics-self-hosted.html#storage This is necessary since we are adding some words about this metric to the docs via cockroachdb/docs#20566 We would like to then backport this change to all supported versions of CockroachDB which have WAL failover (i.e., v24.1 and later). Addresses part of DOC-13184 Co-authored-by: Rich Loveland <rich@cockroachlabs.com>
2 parents 4657cdd + 84ed83f commit 09c6ae2

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

docs/generated/metrics/metrics.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10461,6 +10461,16 @@ layers:
1046110461
derivative: NON_NEGATIVE_DERIVATIVE
1046210462
how_to_use: This metric reports the number of a node's LSM compactions. If the number of compactions remains elevated while the LSM health does not improve, compactions are not keeping up with the workload. If the condition persists for an extended period, the cluster will initially exhibit performance issues that will eventually escalate into stability issues.
1046310463
essential: true
10464+
- name: storage.wal.failover.write_and_sync.latency
10465+
exported_name: storage_wal_failover_write_and_sync_latency
10466+
description: The observed latency for writing and syncing to the logical Write-Ahead Log.
10467+
y_axis_label: Nanoseconds
10468+
type: HISTOGRAM
10469+
unit: NANOSECONDS
10470+
aggregation: AVG
10471+
derivative: NONE
10472+
how_to_use: Only populated when WAL failover is configured. Without WAL failover, the relevant metric is storage.wal.fsync.latency.
10473+
essential: true
1046410474
- name: storage.wal.fsync.latency
1046510475
exported_name: storage_wal_fsync_latency
1046610476
description: The fsync latency to the Write-Ahead Log device.
@@ -17262,15 +17272,6 @@ layers:
1726217272
aggregation: AVG
1726317273
derivative: NON_NEGATIVE_DERIVATIVE
1726417274
how_to_use: Only populated when WAL failover is configured. A high switch count indicates that many disk stalls were encountered.
17265-
- name: storage.wal.failover.write_and_sync.latency
17266-
exported_name: storage_wal_failover_write_and_sync_latency
17267-
description: The observed latency for writing and syncing to the logical Write-Ahead Log.
17268-
y_axis_label: Nanoseconds
17269-
type: HISTOGRAM
17270-
unit: NANOSECONDS
17271-
aggregation: AVG
17272-
derivative: NONE
17273-
how_to_use: Only populated when WAL failover is configured. Without WAL failover, the relevant metric is storage.wal.fsync.latency.
1727417275
- name: storage.write-amplification
1727517276
exported_name: storage_write_amplification
1727617277
description: |-

pkg/kv/kvserver/metrics.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2823,6 +2823,8 @@ Note that the measurement does not include the duration for replicating the eval
28232823
Name: "storage.wal.failover.write_and_sync.latency",
28242824
Help: "The observed latency for writing and syncing to the logical Write-Ahead Log.",
28252825
Measurement: "Nanoseconds",
2826+
Category: metric.Metadata_STORAGE,
2827+
Essential: true,
28262828
Unit: metric.Unit_NANOSECONDS,
28272829
HowToUse: "Only populated when WAL failover is configured. Without WAL failover, the relevant " +
28282830
"metric is storage.wal.fsync.latency.",

0 commit comments

Comments
 (0)