package version

import "github.com/prometheus/common/version"

Index

Variables

var (
	Version   string
	Revision  string
	Branch    string
	BuildUser string
	BuildDate string
	GoVersion = runtime.Version()
	GoOS      = runtime.GOOS
	GoArch    = runtime.GOARCH
)

Build information. Populated at build-time.

Functions

func BuildContext

func BuildContext() string

BuildContext returns goVersion, platform, buildUser and buildDate information.

func GetRevision

func GetRevision() string

func GetTags

func GetTags() string

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

func Print(program string) string

Print returns version information.

Source Files

info.go info_go118.go

Version
v0.48.0
Published
Feb 20, 2024
Platform
js/wasm
Imports
7 packages
Last checked
2 hours ago

Tools for package owners.