Exporter for machine metrics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
420 B

package main
import (
"flag"
"github.com/prometheus/node_exporter/exporter"
"log"
)
var (
configFile = flag.String("config", "node_exporter.conf", "config file.")
memprofile = flag.String("memprofile", "", "write memory profile to this file")
)
func main() {
flag.Parse()
exporter, err := exporter.New(*configFile)
if err != nil {
log.Fatalf("Couldn't instantiate exporter: %s", err)
}
exporter.Loop()
}