mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 10:12:35 +00:00
bolt.write.time should actually be a counter, not a gauge (#22468)
* bolt.write.time should actually be a counter, not a gauge * add changelog * Update website/content/docs/upgrading/upgrade-to-1.14.x.mdx Co-authored-by: Paul Banks <pbanks@hashicorp.com> * correct changelog --------- Co-authored-by: Paul Banks <pbanks@hashicorp.com>
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
```release-note:bug
|
|
||||||
core/metrics: vault.raft_storage.bolt.write.time should be a gauge not a summary
|
|
||||||
```
|
|
||||||
3
changelog/22468.txt
Normal file
3
changelog/22468.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:bug
|
||||||
|
core/metrics: vault.raft_storage.bolt.write.time should be a counter not a summary
|
||||||
|
```
|
||||||
@@ -671,7 +671,7 @@ func (b *RaftBackend) collectMetricsWithStats(stats bolt.Stats, sink *metricsuti
|
|||||||
sink.SetGaugeWithLabels([]string{"raft_storage", "bolt", "spill", "count"}, float32(txstats.GetSpill()), labels)
|
sink.SetGaugeWithLabels([]string{"raft_storage", "bolt", "spill", "count"}, float32(txstats.GetSpill()), labels)
|
||||||
sink.AddSampleWithLabels([]string{"raft_storage", "bolt", "spill", "time"}, float32(txstats.GetSpillTime().Milliseconds()), labels)
|
sink.AddSampleWithLabels([]string{"raft_storage", "bolt", "spill", "time"}, float32(txstats.GetSpillTime().Milliseconds()), labels)
|
||||||
sink.SetGaugeWithLabels([]string{"raft_storage", "bolt", "write", "count"}, float32(txstats.GetWrite()), labels)
|
sink.SetGaugeWithLabels([]string{"raft_storage", "bolt", "write", "count"}, float32(txstats.GetWrite()), labels)
|
||||||
sink.SetGaugeWithLabels([]string{"raft_storage", "bolt", "write", "time"}, float32(txstats.GetWriteTime().Milliseconds()), labels)
|
sink.IncrCounterWithLabels([]string{"raft_storage", "bolt", "write", "time"}, float32(txstats.GetWriteTime().Milliseconds()), labels)
|
||||||
}
|
}
|
||||||
|
|
||||||
// RaftServer has information about a server in the Raft configuration
|
// RaftServer has information about a server in the Raft configuration
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ Official images separately.
|
|||||||
|
|
||||||
## Important changes
|
## Important changes
|
||||||
|
|
||||||
There are no major changes to announce at this time.
|
`vault.raft_storage.bolt.write.time` has been corrected from a summary to a counter to more accurately reflect that it
|
||||||
|
is measuring cumulative time writing, and not the distribution of individual write times.
|
||||||
|
|
||||||
## Known issues and workarounds
|
## Known issues and workarounds
|
||||||
|
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
Metric type | Value | Description
|
Metric type | Value | Description
|
||||||
----------- | ----- | -----------
|
----------- | ----- | -----------
|
||||||
gauge | ms | Total time the Bolt database has spent writing to disk
|
counter | ms | Total cumulative time the Bolt database has spent writing to disk.
|
||||||
|
|||||||
Reference in New Issue
Block a user