package version
import "github.com/prometheus/common/version"
Index ¶
- Variables
- func BuildContext() string
- func Info() string
- func NewCollector(program string) prometheus.Collector
- func Print(program string) string
Variables ¶
var ( Version string Revision string Branch string BuildUser string BuildDate string GoVersion = runtime.Version() )
Build information. Populated at build-time.
Functions ¶
func BuildContext ¶
func BuildContext() string
BuildContext returns goVersion, buildUser and buildDate information.
func Info ¶
func Info() string
Info returns version, branch and revision information.
func NewCollector ¶
func NewCollector(program string) prometheus.Collector
NewCollector returns a collector that exports metrics about current version information.
func Print ¶
Print returns version information.
Source Files ¶
- Version
- v0.31.0
- Published
- Sep 26, 2021
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 2 hours ago –
Tools for package owners.