Documentation ¶
Overview ¶
Package standalone provides utility functions for Agent CLI commands that set up a new in-process Agent runtime (ex: check, jmx commands), as opposed to CLI commands that query a running Agent's IPC API.
Index ¶
- func ExecJMXCommandConsole(command string, selectedChecks []string, logLevel string) error
- func ExecJmxListWithMetricsJSON(selectedChecks []string, logLevel string) error
- func ExecJmxListWithRateMetricsJSON(selectedChecks []string, logLevel string) error
- func PrintWindowsUserWarning(op string)
- func SetupCLI(loggerName config.LoggerName, confFilePath, configName string, ...) (string, *config.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecJMXCommandConsole ¶
ExecJMXCommandConsole is not supported when the 'jmx' build tag isn't included
func ExecJmxListWithMetricsJSON ¶
ExecJmxListWithMetricsJSON is not supported when the 'jmx' build tag isn't included
func ExecJmxListWithRateMetricsJSON ¶
ExecJmxListWithRateMetricsJSON is not supported when the 'jmx' build tag isn't included
func PrintWindowsUserWarning ¶
func PrintWindowsUserWarning(op string)
PrintWindowsUserWarning prints a warning for standalone CLI commands on Windows.
func SetupCLI ¶
func SetupCLI(loggerName config.LoggerName, confFilePath, configName string, cliLogLevel string, defaultLogLevel string) (string, *config.Warnings, error)
SetupCLI sets up the shared utilities for a standalone CLI command: - config, with defaults to avoid conflicting with an agent process running in parallel - logger and returns the log level resolved from cliLogLevel and defaultLogLevel
Types ¶
This section is empty.