forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.go
31 lines (26 loc) · 874 Bytes
/
app.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package app
import (
"fmt"
"os"
ddconfig "github.com/StackVista/stackstate-agent/pkg/config"
"github.com/spf13/cobra"
)
var (
// SysprobeCmd is the root command
SysprobeCmd = &cobra.Command{
Use: fmt.Sprintf("%s [command]", os.Args[0]),
Short: "Datadog Agent System Probe",
Long: `
The Datadog Agent System Probe runs as superuser in order to instrument
your machine at a deeper level. It is required for features such as Network Performance Monitoring,
Runtime Security Monitoring, and others.`,
SilenceUsage: true,
}
configPath string
flagNoColor bool
)
const loggerName = ddconfig.LoggerName("SYS-PROBE")
func init() {
SysprobeCmd.PersistentFlags().StringVarP(&configPath, "config", "c", "", "Path to system-probe config formatted as YAML")
SysprobeCmd.PersistentFlags().BoolVarP(&flagNoColor, "no-color", "n", false, "disable color output")
}