github.com/mackerelio/mackerel-agent-plugins@v0.89.3/mackerel-plugin-linux/lib/flags.go (about)

     1  package mplinux
     2  
     3  import (
     4  	"github.com/urfave/cli"
     5  )
     6  
     7  var flags = []cli.Flag{
     8  	cliTempFile,
     9  	cliType,
    10  }
    11  
    12  var cliTempFile = cli.StringFlag{
    13  	Name:   "tempfile, t",
    14  	Value:  "",
    15  	Usage:  "Set temporary file path.",
    16  	EnvVar: "ENVVAR_TEMPFILE",
    17  }
    18  
    19  var cliType = cli.StringSliceFlag{
    20  	Name:   "type, p",
    21  	Value:  &cli.StringSlice{},
    22  	Usage:  "Select metrics type(s) to fetch: all, swap, netstat, diskstats, proc_stat, users",
    23  	EnvVar: "ENVVAR_TYPE",
    24  }