Affected by GO-2024-2528
and 2 other vulnerabilities
GO-2024-2528 : Etcd Gateway TLS endpoint validation only confirms TCP reachability in go.etcd.io/etcd
GO-2024-2529 : Etcd embed auto compaction retention negative value causing a compaction loop or a crash in go.etcd.io/etcd
GO-2024-2530 : Etcd auth Inaccurate logging of authentication attempts for users with CN-based auth only in go.etcd.io/etcd
The highest tagged major version is
v3 .
Discover Packages
go.etcd.io/etcd
pkg
metrics
package
Version:
v2.0.4+incompatible
Opens a new window with list of versions in this module.
Published: Feb 27, 2015
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package metrics provides metrics view of variables which is exposed through
expvar package.
Naming conventions:
1. volatile path components should be kept as deep into the hierarchy as possible
2. each path component should have a clear and well-defined purpose
3. components.separated.with.dot, and put package prefix at the head
4. words_separated_with_underscore, and put clarifiers last, e.g., requests_total
Do calls f for each exported variable.
The global variable map is locked during the iteration,
but existing entries may be concurrently updated.
Get retrieves a named exported variable.
Publish declares a named exported variable.
If the name is already registered then this will overwrite the old one.
Counter is a number that increases over time monotonically.
Convenience functions for creating new exported variables.
Gauge returns instantaneous value that is expected to fluctuate over time.
Map aggregates Counters and Gauges.
GetMap returns the map if it exists, or inits the given name map if it does
not exist.
TODO: remove the var from the map to avoid memory boom
String returns JSON format string that represents the group.
It does not print out nilVar.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.