application_monitor

package
v0.0.0-...-eca726b Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 7 Imported by: 0

README

Application Monitor plugin

Plugin arguments
  • msrCpu boolean: If true, the plugin will collect CPU metrics
  • msrVirMem boolean: If true, the plugin will collect Virtual Memory metrics
  • appName string: The name of the application which is to be monitored
Configuration:
[[inputs.application_monitor]]
    ## Whether to include CPU measurements from the file
    msrCPU = true
    ## Whether to include IO measurements from the file
    msrIO = true
    ## The name of the application you want to monitor
    appName = "Monitor"
Description

The Application Monitor plugin monitors software on the Application layer of the OSI model. It is designed to collect performance metrics from any application to determine its performance. It is specifically designed to work with the FORCE framework, but can be altered to work with any other application.

Documentation

Index

Constants

View Source
const (
	CPU            = 1
	VIRTUAL_MEMORY = 2
)

Variables

View Source
var FILE = user.HomeDir + "/Desktop/monitor.log.txt"

Functions

func Check

func Check(err error)

Checks if an error occurs and ends the program if anything happens

func ReadFile

func ReadFile(measure int)

*

  • readFile(int)
  • Reads a file from the desktop and converts the data
  • Requires an integer value to determine which data to gather
  • 1 = CPU
  • 2 = Virtual Memory

Types

type ApplicationMonitor

type ApplicationMonitor struct {
	MsrCPU bool `toml:"msrCPU"`
	MsrVM  bool `toml:"msrVM"`
	// contains filtered or unexported fields
}

TODO: Setup communication with logging application file

func (*ApplicationMonitor) Description

func (_ *ApplicationMonitor) Description() string

func (*ApplicationMonitor) Gather

func (i *ApplicationMonitor) Gather(accumulator telegraf.Accumulator) error

func (*ApplicationMonitor) SampleConfig

func (_ *ApplicationMonitor) SampleConfig() string

Jump to

Keyboard shortcuts

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