standalone

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecJMXCommandConsole

func ExecJMXCommandConsole(command string, selectedChecks []string, logLevel string) error

ExecJMXCommandConsole is not supported when the 'jmx' build tag isn't included

func ExecJmxListWithMetricsJSON

func ExecJmxListWithMetricsJSON(selectedChecks []string, logLevel string) error

ExecJmxListWithMetricsJSON is not supported when the 'jmx' build tag isn't included

func ExecJmxListWithRateMetricsJSON

func ExecJmxListWithRateMetricsJSON(selectedChecks []string, logLevel string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL