common: github.com/prometheus/common/version Index | Files

package version

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

Index

Package Files

info.go

Variables

var (
    Version   string
    Revision  string
    Branch    string
    BuildUser string
    BuildDate string
    GoVersion = runtime.Version()
)

Build information. Populated at build-time.

func BuildContext Uses

func BuildContext() string

BuildContext returns goVersion, buildUser and buildDate information.

func Info Uses

func Info() string

Info returns version, branch and revision information.

func NewCollector Uses

func NewCollector(program string) *prometheus.GaugeVec

NewCollector returns a collector which exports metrics about current version information.

func Print Uses

func Print(program string) string

Print returns version information.

Package version imports 6 packages (graph) and is imported by 191 packages. Updated 2016-07-18. Refresh now. Tools for package owners.