diff options
author | Julius Volz <julius@soundcloud.com> | 2015-09-10 00:33:12 +0200 |
---|---|---|
committer | Julius Volz <julius@soundcloud.com> | 2015-09-11 14:32:18 +0200 |
commit | 7b39ccc1446e52a552e09fa9a52c43143221c72c (patch) | |
tree | 8327fb5f00414976a81e08c52b3d5cbf52a594a6 /node_exporter.go | |
parent | 02956d2bcc9d107dd480bb16bcadd75d0c81f81b (diff) | |
download | prometheus_node_collector-7b39ccc1446e52a552e09fa9a52c43143221c72c.tar.bz2 prometheus_node_collector-7b39ccc1446e52a552e09fa9a52c43143221c72c.tar.xz prometheus_node_collector-7b39ccc1446e52a552e09fa9a52c43143221c72c.zip |
Add Linux uname collector.
This creates a single metric like:
node_uname_info{domainname="(none)",machine="x86_64",nodename="desktop",release="3.16.0-48-generic",sysname="Linux",version="#64~14.04.1-Ubuntu SMP Thu Aug 20 23:03:57 UTC 2015"} 1
Diffstat (limited to 'node_exporter.go')
-rw-r--r-- | node_exporter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_exporter.go b/node_exporter.go index 890e527..872e502 100644 --- a/node_exporter.go +++ b/node_exporter.go | |||
@@ -28,7 +28,7 @@ var ( | |||
28 | memProfile = flag.String("debug.memprofile-file", "", "Write memory profile to this file upon receipt of SIGUSR1.") | 28 | memProfile = flag.String("debug.memprofile-file", "", "Write memory profile to this file upon receipt of SIGUSR1.") |
29 | listenAddress = flag.String("web.listen-address", ":9100", "Address on which to expose metrics and web interface.") | 29 | listenAddress = flag.String("web.listen-address", ":9100", "Address on which to expose metrics and web interface.") |
30 | metricsPath = flag.String("web.telemetry-path", "/metrics", "Path under which to expose metrics.") | 30 | metricsPath = flag.String("web.telemetry-path", "/metrics", "Path under which to expose metrics.") |
31 | enabledCollectors = flag.String("collectors.enabled", "diskstats,filesystem,loadavg,meminfo,stat,textfile,time,netdev,netstat,sockstat,filefd", "Comma-separated list of collectors to use.") | 31 | enabledCollectors = flag.String("collectors.enabled", "diskstats,filefd,filesystem,loadavg,meminfo,netdev,netstat,sockstat,stat,textfile,time,uname", "Comma-separated list of collectors to use.") |
32 | printCollectors = flag.Bool("collectors.print", false, "If true, print available collectors and exit.") | 32 | printCollectors = flag.Bool("collectors.print", false, "If true, print available collectors and exit.") |
33 | authUser = flag.String("auth.user", "", "Username for basic auth.") | 33 | authUser = flag.String("auth.user", "", "Username for basic auth.") |
34 | authPass = flag.String("auth.pass", "", "Password for basic auth.") | 34 | authPass = flag.String("auth.pass", "", "Password for basic auth.") |