inputs

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: Apache-2.0 Imports: 35 Imported by: 0

README

inputs

-- import "github.com/newrelic/nri-flex/internal/inputs"

Usage

func NetDialWithTimeout
func NetDialWithTimeout(dataStore *[]interface{}, command load.Command, dataSample *map[string]interface{}, api load.API, processType *string)

NetDialWithTimeout performs network dial without timeout

func ParseJMX
func ParseJMX(dataStore *[]interface{}, dataInterface interface{}, command load.Command, dataSample *map[string]interface{})

ParseJMX Processes JMX Data

func ParseReader
func ParseReader(in io.Reader, ch chan<- *dto.MetricFamily) error

ParseReader consumes an io.Reader and pushes it to the MetricFamily channel. It returns when all MetricFamilies are parsed and put on the channel.

func ProcessQueries
func ProcessQueries(dataStore *[]interface{}, yml *load.Config, apiNo int)

ProcessQueries processes database queries

func Prometheus
func Prometheus(dataStore *[]interface{}, input io.Reader, cfg *load.Config, api *load.API)

Prometheus from http io

func RunCommands
func RunCommands(dataStore *[]interface{}, yml *load.Config, apiNo int)

RunCommands executes the given commands to create one merged sampled

func RunFile
func RunFile(dataStore *[]interface{}, cfg *load.Config, apiNo int)

RunFile runs file read data collection

func RunHTTP
func RunHTTP(dataStore *[]interface{}, doLoop *bool, yml *load.Config, api load.API, reqURL *string)

RunHTTP Executes HTTP Requests

func SetJMXCommand
func SetJMXCommand(dataStore *[]interface{}, runCommand *string, command load.Command, api load.API, config *load.Config)

SetJMXCommand Add parameters to JMX call

type Family
type Family struct {
	//Time    time.Time
	Name    string                         `json:"name"`
	Help    string                         `json:"help"`
	Type    string                         `json:"type"`
	Metrics map[int]map[string]interface{} `json:"metrics,omitempty"` // Either metric or summary.
}

Family mirrors the MetricFamily proto message.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetDialWithTimeout

func NetDialWithTimeout(dataStore *[]interface{}, command load.Command, dataSample *map[string]interface{}, api load.API, processType *string)

NetDialWithTimeout performs network dial without timeout

func ParseJMX

func ParseJMX(dataStore *[]interface{}, dataInterface interface{}, command load.Command, dataSample *map[string]interface{})

ParseJMX Processes JMX Data

func ParseReader

func ParseReader(in io.Reader, ch chan<- *dto.MetricFamily) error

ParseReader consumes an io.Reader and pushes it to the MetricFamily channel. It returns when all MetricFamilies are parsed and put on the channel.

func ProcessQueries

func ProcessQueries(dataStore *[]interface{}, yml *load.Config, apiNo int)

ProcessQueries processes database queries

func Prometheus

func Prometheus(dataStore *[]interface{}, input io.Reader, cfg *load.Config, api *load.API)

Prometheus from http io

func RunCommands

func RunCommands(dataStore *[]interface{}, yml *load.Config, apiNo int)

RunCommands executes the given commands to create one merged sampled

func RunFile

func RunFile(dataStore *[]interface{}, cfg *load.Config, apiNo int)

RunFile runs file read data collection

func RunHTTP

func RunHTTP(dataStore *[]interface{}, doLoop *bool, yml *load.Config, api load.API, reqURL *string)

RunHTTP Executes HTTP Requests

func SetJMXCommand

func SetJMXCommand(dataStore *[]interface{}, runCommand *string, command load.Command, api load.API, config *load.Config)

SetJMXCommand Add parameters to JMX call

Types

type Family

type Family struct {
	//Time    time.Time
	Name    string                         `json:"name"`
	Help    string                         `json:"help"`
	Type    string                         `json:"type"`
	Metrics map[int]map[string]interface{} `json:"metrics,omitempty"` // Either metric or summary.
}

Family mirrors the MetricFamily proto message.

Jump to

Keyboard shortcuts

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