mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-12-22 21:46:28 +00:00
Add Version variable
This commit is contained in:
parent
1f1c0f7030
commit
e26a5e4728
1 changed files with 4 additions and 1 deletions
5
main.go
5
main.go
|
@ -25,6 +25,9 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
// Version of statsd_exporter. Set at build time.
|
||||
Version = "0.0.0.dev"
|
||||
|
||||
listenAddress = flag.String("web.listen-address", ":9102", "The address on which to expose the web interface and generated Prometheus metrics.")
|
||||
metricsEndpoint = flag.String("web.telemetry-path", "/metrics", "Path under which to expose metrics.")
|
||||
statsdListenAddress = flag.String("statsd.listen-address", ":9125", "The UDP address on which to receive statsd metric lines.")
|
||||
|
@ -112,7 +115,7 @@ func main() {
|
|||
if *addSuffix {
|
||||
log.Println("Warning: Using -statsd.add-suffix is discouraged. We recommend explicitly naming metrics appropriately in the mapping configuration.")
|
||||
}
|
||||
log.Println("Starting StatsD -> Prometheus Exporter...")
|
||||
log.Printf("Starting StatsD -> Prometheus Exporter v%s...", Version)
|
||||
log.Println("Accepting StatsD Traffic on", *statsdListenAddress)
|
||||
log.Println("Accepting Prometheus Requests on", *listenAddress)
|
||||
|
||||
|
|
Loading…
Reference in a new issue