SYMBOL INDEX (10004 symbols across 1085 files) FILE: accumulator.go type Accumulator (line 8) | type Accumulator interface type TrackingID (line 58) | type TrackingID type TrackingData (line 60) | type TrackingData interface type DeliveryInfo (line 69) | type DeliveryInfo interface type TrackingAccumulator (line 81) | type TrackingAccumulator interface FILE: agent/accumulator.go type MetricMaker (line 10) | type MetricMaker interface type accumulator (line 16) | type accumulator struct method AddFields (line 34) | func (ac *accumulator) AddFields( method AddGauge (line 43) | func (ac *accumulator) AddGauge( method AddCounter (line 52) | func (ac *accumulator) AddCounter( method AddSummary (line 61) | func (ac *accumulator) AddSummary( method AddHistogram (line 70) | func (ac *accumulator) AddHistogram( method AddMetric (line 79) | func (ac *accumulator) AddMetric(m telegraf.Metric) { method addMeasurement (line 86) | func (ac *accumulator) addMeasurement( method AddError (line 101) | func (ac *accumulator) AddError(err error) { method SetPrecision (line 108) | func (ac *accumulator) SetPrecision(precision time.Duration) { method getTime (line 112) | func (ac *accumulator) getTime(t []time.Time) time.Time { method WithTracking (line 122) | func (ac *accumulator) WithTracking(maxTracked int) telegraf.TrackingA... function NewAccumulator (line 22) | func NewAccumulator( type trackingAccumulator (line 129) | type trackingAccumulator struct method AddTrackingMetric (line 134) | func (a *trackingAccumulator) AddTrackingMetric(m telegraf.Metric) tel... method AddTrackingMetricGroup (line 140) | func (a *trackingAccumulator) AddTrackingMetricGroup(group []telegraf.... method Delivered (line 148) | func (a *trackingAccumulator) Delivered() <-chan telegraf.DeliveryInfo { method onDelivery (line 152) | func (a *trackingAccumulator) onDelivery(info telegraf.DeliveryInfo) { FILE: agent/accumulator_test.go function TestAddFields (line 17) | func TestAddFields(t *testing.T) { function TestAccAddError (line 49) | func TestAccAddError(t *testing.T) { function TestSetPrecision (line 72) | func TestSetPrecision(t *testing.T) { function TestAddTrackingMetricGroupEmpty (line 128) | func TestAddTrackingMetricGroupEmpty(t *testing.T) { type TestMetricMaker (line 143) | type TestMetricMaker struct method Name (line 146) | func (*TestMetricMaker) Name() string { method LogName (line 150) | func (tm *TestMetricMaker) LogName() string { method MakeMetric (line 154) | func (*TestMetricMaker) MakeMetric(metric telegraf.Metric) telegraf.Me... method Log (line 158) | func (*TestMetricMaker) Log() telegraf.Logger { FILE: agent/agent.go type Agent (line 26) | type Agent struct method Run (line 106) | func (a *Agent) Run(ctx context.Context) error { method InitPlugins (line 223) | func (a *Agent) InitPlugins() error { method initPersister (line 264) | func (a *Agent) initPersister() error { method startInputs (line 345) | func (*Agent) startInputs(dst chan<- telegraf.Metric, inputs []*models... method runInputs (line 396) | func (a *Agent) runInputs(ctx context.Context, startTime time.Time, un... method testStartInputs (line 455) | func (*Agent) testStartInputs(dst chan<- telegraf.Metric, inputs []*mo... method testRunInputs (line 483) | func (a *Agent) testRunInputs( method gatherLoop (line 564) | func (a *Agent) gatherLoop( method gatherOnce (line 585) | func (*Agent) gatherOnce(acc telegraf.Accumulator, input *models.Runni... method startProcessors (line 614) | func (*Agent) startProcessors(dst chan<- telegraf.Metric, runningProce... method runProcessors (line 650) | func (*Agent) runProcessors(units []*processorUnit) { method startAggregators (line 673) | func (*Agent) startAggregators(aggC, outputC chan<- telegraf.Metric, a... method runAggregators (line 686) | func (a *Agent) runAggregators( method push (line 759) | func (*Agent) push(ctx context.Context, aggregator *models.RunningAggr... method startOutputs (line 779) | func (a *Agent) startOutputs( method connectOutput (line 808) | func (*Agent) connectOutput(ctx context.Context, output *models.Runnin... method runOutputs (line 828) | func (a *Agent) runOutputs( method flushLoop (line 883) | func (a *Agent) flushLoop(ctx context.Context, output *models.RunningO... method flushOnce (line 919) | func (*Agent) flushOnce(output *models.RunningOutput, timer *clock.Tim... method flushBatch (line 939) | func (*Agent) flushBatch(output *models.RunningOutput, writeFunc func(... method Test (line 947) | func (a *Agent) Test(ctx context.Context, wait time.Duration) error { method runTest (line 980) | func (a *Agent) runTest(ctx context.Context, wait time.Duration, outpu... method Once (line 1062) | func (a *Agent) Once(ctx context.Context, wait time.Duration) error { method runOnce (line 1085) | func (a *Agent) runOnce(ctx context.Context, wait time.Duration) error { function NewAgent (line 31) | func NewAgent(cfg *config.Config) *Agent { type inputUnit (line 49) | type inputUnit struct type processorUnit (line 58) | type processorUnit struct type aggregatorUnit (line 80) | type aggregatorUnit struct type outputUnit (line 100) | type outputUnit struct function stopRunningInputs (line 549) | func stopRunningInputs(inputs []*models.RunningInput) { function stopRunningOutputs (line 556) | func stopRunningOutputs(outputs []*models.RunningOutput) { function updateWindow (line 743) | func updateWindow(start time.Time, roundInterval bool, period time.Durat... function getPrecision (line 1175) | func getPrecision(precision, interval time.Duration) time.Duration { function panicRecover (line 1193) | func panicRecover(input *models.RunningInput) { function stopTickers (line 1206) | func stopTickers(tickers []*clock.Ticker) { FILE: agent/agent_posix.go constant flushSignal (line 11) | flushSignal = syscall.SIGUSR1 function watchForFlushSignal (line 13) | func watchForFlushSignal(flushRequested chan os.Signal) { function stopListeningForFlushSignal (line 17) | func stopListeningForFlushSignal(flushRequested chan os.Signal) { FILE: agent/agent_test.go function TestAgent_OmitHostname (line 26) | func TestAgent_OmitHostname(t *testing.T) { function TestAgent_LoadPlugin (line 33) | func TestAgent_LoadPlugin(t *testing.T) { function TestAgent_LoadOutput (line 70) | func TestAgent_LoadOutput(t *testing.T) { function TestWindow (line 121) | func TestWindow(t *testing.T) { function TestCases (line 180) | func TestCases(t *testing.T) { function collect (line 232) | func collect(ctx context.Context, a *Agent, wait time.Duration) ([]teleg... FILE: agent/agent_windows.go function watchForFlushSignal (line 7) | func watchForFlushSignal(_ chan os.Signal) { function stopListeningForFlushSignal (line 11) | func stopListeningForFlushSignal(_ chan os.Signal) { FILE: aggregator.go type Aggregator (line 7) | type Aggregator interface FILE: cmd/telegraf/cmd_config.go function getConfigCommands (line 22) | func getConfigCommands(configHandlingFlags []cli.Flag, outputBuffer io.W... FILE: cmd/telegraf/cmd_plugins.go function pluginNames (line 21) | func pluginNames[M ~map[string]V, V any](m M, prefix string) []byte { function getPluginCommands (line 30) | func getPluginCommands(outputBuffer io.Writer) []*cli.Command { FILE: cmd/telegraf/cmd_secretstore.go function processFilterOnlySecretStoreFlags (line 16) | func processFilterOnlySecretStoreFlags(ctx *cli.Context) Filters { function getSecretStoreCommands (line 36) | func getSecretStoreCommands(m App) []*cli.Command { FILE: cmd/telegraf/cmd_win_service.go function cliFlags (line 15) | func cliFlags() []cli.Flag { function getServiceCommands (line 46) | func getServiceCommands(outputBuffer io.Writer) []*cli.Command { FILE: cmd/telegraf/cmd_win_service_notwindows.go function cliFlags (line 11) | func cliFlags() []cli.Flag { function getServiceCommands (line 15) | func getServiceCommands(io.Writer) []*cli.Command { FILE: cmd/telegraf/main.go type TelegrafConfig (line 31) | type TelegrafConfig interface type Filters (line 36) | type Filters struct function appendFilter (line 45) | func appendFilter(a, b string) string { function processFilterFlags (line 55) | func processFilterFlags(ctx *cli.Context) Filters { function deleteEmpty (line 91) | func deleteEmpty(s []string) []string { function runApp (line 103) | func runApp(args []string, outputBuffer io.Writer, pprof Server, c Teleg... function main (line 447) | func main() { FILE: cmd/telegraf/main_test.go type MockTelegraf (line 42) | type MockTelegraf struct method Init (line 51) | func (m *MockTelegraf) Init(_ <-chan error, _ Filters, g GlobalFlags, ... method Run (line 56) | func (*MockTelegraf) Run() error { method ListSecretStores (line 60) | func (*MockTelegraf) ListSecretStores() ([]string, error) { method GetSecretStore (line 68) | func (*MockTelegraf) GetSecretStore(id string) (telegraf.SecretStore, ... function NewMockTelegraf (line 47) | func NewMockTelegraf() *MockTelegraf { type MockSecretStore (line 77) | type MockSecretStore struct method Init (line 81) | func (*MockSecretStore) Init() error { method SampleConfig (line 85) | func (*MockSecretStore) SampleConfig() string { method Get (line 89) | func (s *MockSecretStore) Get(key string) ([]byte, error) { method Set (line 97) | func (s *MockSecretStore) Set(key, value string) error { method List (line 104) | func (s *MockSecretStore) List() ([]string, error) { method GetResolver (line 112) | func (s *MockSecretStore) GetResolver(key string) (telegraf.ResolveFun... type MockConfig (line 119) | type MockConfig struct method CollectDeprecationInfos (line 130) | func (m *MockConfig) CollectDeprecationInfos(_, _, _, _ []string) map[... method PrintDeprecationList (line 134) | func (m *MockConfig) PrintDeprecationList(plugins []config.PluginDepre... function NewMockConfig (line 124) | func NewMockConfig(buffer io.Writer) *MockConfig { type MockServer (line 140) | type MockServer struct method Start (line 148) | func (m *MockServer) Start(_ string) { method ErrChan (line 152) | func (*MockServer) ErrChan() <-chan error { function NewMockServer (line 144) | func NewMockServer() *MockServer { function TestUsageFlag (line 156) | func TestUsageFlag(t *testing.T) { function TestInputListFlag (line 200) | func TestInputListFlag(t *testing.T) { function TestOutputListFlag (line 218) | func TestOutputListFlag(t *testing.T) { function TestDeprecationListFlag (line 236) | func TestDeprecationListFlag(t *testing.T) { function TestPprofAddressFlag (line 262) | func TestPprofAddressFlag(t *testing.T) { function TestPluginDirectoryFlag (line 275) | func TestPluginDirectoryFlag(t *testing.T) { function TestCommandConfig (line 283) | func TestCommandConfig(t *testing.T) { function TestCommandVersion (line 430) | func TestCommandVersion(t *testing.T) { function TestFlagVersion (line 476) | func TestFlagVersion(t *testing.T) { function TestGlobablBoolFlags (line 521) | func TestGlobablBoolFlags(t *testing.T) { function TestFlagsAreSet (line 542) | func TestFlagsAreSet(t *testing.T) { FILE: cmd/telegraf/main_win_test.go function TestWindowsFlagsAreSet (line 13) | func TestWindowsFlagsAreSet(t *testing.T) { FILE: cmd/telegraf/pprof.go type Server (line 11) | type Server interface type PprofServer (line 16) | type PprofServer struct method Start (line 26) | func (p *PprofServer) Start(address string) { method ErrChan (line 50) | func (p *PprofServer) ErrChan() <-chan error { function NewPprofServer (line 20) | func NewPprofServer() *PprofServer { FILE: cmd/telegraf/printer.go function printSampleConfig (line 104) | func printSampleConfig(outputBuffer io.Writer, filters Filters) { function printFilteredProcessors (line 215) | func printFilteredProcessors(processorFilters []string, commented bool, ... function printFilteredAggregators (line 233) | func printFilteredAggregators(aggregatorFilters []string, commented bool... function printFilteredInputs (line 251) | func printFilteredInputs(inputFilters []string, commented bool, outputBu... function printFilteredOutputs (line 297) | func printFilteredOutputs(outputFilters []string, commented bool, output... function printFilteredSecretstores (line 328) | func printFilteredSecretstores(secretstoreFilters []string, commented bo... function printFilteredGlobalSections (line 346) | func printFilteredGlobalSections(sectionFilters []string, outputBuffer i... function printConfig (line 356) | func printConfig(name string, p telegraf.PluginDescriber, op string, com... function PrintInputConfig (line 389) | func PrintInputConfig(name string, outputBuffer io.Writer) error { function PrintOutputConfig (line 400) | func PrintOutputConfig(name string, outputBuffer io.Writer) error { FILE: cmd/telegraf/telegraf.go type GlobalFlags (line 36) | type GlobalFlags struct type WindowFlags (line 58) | type WindowFlags struct type App (line 67) | type App interface type Telegraf (line 76) | type Telegraf struct method Init (line 90) | func (t *Telegraf) Init(pprofErr <-chan error, f Filters, g GlobalFlag... method ListSecretStores (line 115) | func (t *Telegraf) ListSecretStores() ([]string, error) { method GetSecretStore (line 128) | func (t *Telegraf) GetSecretStore(id string) (telegraf.SecretStore, er... method reloadLoop (line 143) | func (t *Telegraf) reloadLoop() error { method watchLocalConfig (line 218) | func (t *Telegraf) watchLocalConfig(ctx context.Context, signals chan ... method watchRemoteConfigs (line 340) | func (*Telegraf) watchRemoteConfigs(ctx context.Context, signals chan ... method loadConfiguration (line 392) | func (t *Telegraf) loadConfiguration() (*config.Config, error) { method getConfigFiles (line 410) | func (t *Telegraf) getConfigFiles() error { method runAgent (line 435) | func (t *Telegraf) runAgent(ctx context.Context, reloadConfig bool) er... function isURL (line 570) | func isURL(str string) bool { FILE: cmd/telegraf/telegraf_posix.go method Run (line 11) | func (t *Telegraf) Run() error { function getLockedMemoryLimit (line 23) | func getLockedMemoryLimit() uint64 { FILE: cmd/telegraf/telegraf_windows.go function getLockedMemoryLimit (line 23) | func getLockedMemoryLimit() uint64 { method Run (line 33) | func (t *Telegraf) Run() error { method Execute (line 100) | func (t *Telegraf) Execute(_ []string, r <-chan svc.ChangeRequest, chang... type serviceConfig (line 168) | type serviceConfig struct function installService (line 179) | func installService(name string, cfg *serviceConfig) error { function uninstallService (line 260) | func uninstallService(name string) error { function startService (line 291) | func startService(name string) error { function stopService (line 323) | func stopService(name string) error { function queryService (line 367) | func queryService(name string) (string, error) { function stateDescription (line 396) | func stateDescription(state svc.State) string { FILE: config/config.go constant EmptySourcePath (line 76) | EmptySourcePath string = "" type Config (line 81) | type Config struct method InputNames (line 316) | func (c *Config) InputNames() []string { method InputNamesWithSources (line 325) | func (c *Config) InputNamesWithSources() string { method AggregatorNames (line 337) | func (c *Config) AggregatorNames() []string { method AggregatorNamesWithSources (line 346) | func (c *Config) AggregatorNamesWithSources() string { method ProcessorNames (line 358) | func (c *Config) ProcessorNames() []string { method ProcessorNamesWithSources (line 367) | func (c *Config) ProcessorNamesWithSources() string { method OutputNames (line 379) | func (c *Config) OutputNames() []string { method OutputNamesWithSources (line 388) | func (c *Config) OutputNamesWithSources() string { method SecretstoreNames (line 400) | func (c *Config) SecretstoreNames() []string { method SecretstoreNamesWithSources (line 409) | func (c *Config) SecretstoreNamesWithSources() string { method ListTags (line 445) | func (c *Config) ListTags() string { method LoadConfig (line 549) | func (c *Config) LoadConfig(path string) error { method LoadAll (line 566) | func (c *Config) LoadAll(configFiles ...string) error { method LoadConfigData (line 608) | func (c *Config) LoadConfigData(data []byte, path string) error { method addAggregator (line 975) | func (c *Config) addAggregator(name, source string, table *ast.Table) ... method addSecretStore (line 1012) | func (c *Config) addSecretStore(name, source string, table *ast.Table)... method LinkSecrets (line 1076) | func (c *Config) LinkSecrets() error { method probeParser (line 1100) | func (c *Config) probeParser(parentCategory, parentName string, table ... method addParser (line 1119) | func (c *Config) addParser(parentcategory, parentname string, table *a... method probeSerializer (line 1158) | func (c *Config) probeSerializer(table *ast.Table) bool { method addSerializer (line 1177) | func (c *Config) addSerializer(parentname string, table *ast.Table) (*... method addProcessor (line 1202) | func (c *Config) addProcessor(name, source string, table *ast.Table) e... method setupProcessor (line 1270) | func (c *Config) setupProcessor(name string, creator processors.Stream... method addOutput (line 1332) | func (c *Config) addOutput(name, source string, table *ast.Table) error { method addInput (line 1423) | func (c *Config) addInput(name, source string, table *ast.Table) error { method buildAggregator (line 1519) | func (c *Config) buildAggregator(name, source string, tbl *ast.Table) ... method buildProcessor (line 1572) | func (c *Config) buildProcessor(category, name, source string, tbl *as... method buildFilter (line 1601) | func (c *Config) buildFilter(plugin string, tbl *ast.Table) (models.Fi... method buildInput (line 1681) | func (c *Config) buildInput(name, source string, tbl *ast.Table) (*mod... method buildOutput (line 1729) | func (c *Config) buildOutput(name, source string, tbl *ast.Table) (*mo... method missingTomlField (line 1779) | func (c *Config) missingTomlField(_ reflect.Type, key string) error { method setLocalMissingTomlFieldTracker (line 1810) | func (c *Config) setLocalMissingTomlFieldTracker(counter map[string]in... method resetMissingTomlFieldTracker (line 1840) | func (c *Config) resetMissingTomlFieldTracker() { method getFieldString (line 1844) | func (*Config) getFieldString(tbl *ast.Table, fieldName string) string { method getFieldDuration (line 1856) | func (c *Config) getFieldDuration(tbl *ast.Table, fieldName string) (t... method getFieldBool (line 1873) | func (c *Config) getFieldBool(tbl *ast.Table, fieldName string) bool { method getFieldInt (line 1901) | func (c *Config) getFieldInt(tbl *ast.Table, fieldName string) int { method getFieldInt64 (line 1918) | func (c *Config) getFieldInt64(tbl *ast.Table, fieldName string) int64 { method getFieldStringSlice (line 1937) | func (c *Config) getFieldStringSlice(tbl *ast.Table, fieldName string)... method getFieldTagFilter (line 1957) | func (c *Config) getFieldTagFilter(tbl *ast.Table, fieldName string) [... method getFieldMap (line 1984) | func (*Config) getFieldMap(tbl *ast.Table, fieldName string) map[strin... method matchesLabelSelection (line 2001) | func (c *Config) matchesLabelSelection(tbl *ast.Table) (bool, error) { method hasErrs (line 2031) | func (c *Config) hasErrs() bool { method firstErr (line 2035) | func (c *Config) firstErr() error { method addError (line 2042) | func (c *Config) addError(tbl *ast.Table, err error) { type OrderedPlugin (line 119) | type OrderedPlugin struct type OrderedPlugins (line 123) | type OrderedPlugins method Len (line 125) | func (op OrderedPlugins) Len() int { return len(op) } method Swap (line 126) | func (op OrderedPlugins) Swap(i, j int) { op[i], op[j] = op[j], o... method Less (line 127) | func (op OrderedPlugins) Less(i, j int) bool { return op[i].Line < op[... function NewConfig (line 132) | func NewConfig() *Config { type AgentConfig (line 181) | type AgentConfig struct function PluginNameCounts (line 424) | func PluginNameCounts(plugins []string) []string { function sliceContains (line 456) | func sliceContains(name string, list []string) bool { function WalkDirectory (line 466) | func WalkDirectory(path string) ([]string, error) { function GetDefaultConfigPath (line 496) | func GetDefaultConfigPath() ([]string, error) { function isURL (line 543) | func isURL(str string) bool { type cfgDataOptions (line 595) | type cfgDataOptions struct type cfgDataOption (line 599) | type cfgDataOption function WithSourcePath (line 601) | func WithSourcePath(path string) cfgDataOption { function trimBOM (line 834) | func trimBOM(f []byte) []byte { function LoadConfigFile (line 841) | func LoadConfigFile(config string) ([]byte, bool, error) { function LoadConfigFileWithRetries (line 845) | func LoadConfigFileWithRetries(config string, urlRetryAttempts int) ([]b... function GetSources (line 885) | func GetSources() []string { function fetchConfig (line 891) | func fetchConfig(u *url.URL, urlRetryAttempts int) ([]byte, error) { function requestURLConfig (line 932) | func requestURLConfig(req *http.Request) ([]byte, error) { function parseConfig (line 954) | func parseConfig(contents []byte) (*ast.Table, error) { function keys (line 2014) | func keys(m map[string]bool) []string { function setDefaultParser (line 2022) | func setDefaultParser(category, name string) string { FILE: config/config_test.go function TestReadBinaryFile (line 43) | func TestReadBinaryFile(t *testing.T) { function TestConfig_LoadSingleInputWithEnvVars (line 59) | func TestConfig_LoadSingleInputWithEnvVars(t *testing.T) { function TestConfig_LoadSingleInput (line 106) | func TestConfig_LoadSingleInput(t *testing.T) { function TestConfig_LoadSingleInput_WithSeparators (line 149) | func TestConfig_LoadSingleInput_WithSeparators(t *testing.T) { function TestConfig_LoadSingleInput_WithCommentInArray (line 194) | func TestConfig_LoadSingleInput_WithCommentInArray(t *testing.T) { function TestConfig_LoadDirectory (line 203) | func TestConfig_LoadDirectory(t *testing.T) { function TestConfig_WrongCertPath (line 338) | func TestConfig_WrongCertPath(t *testing.T) { function TestConfig_DefaultParser (line 343) | func TestConfig_DefaultParser(t *testing.T) { function TestConfig_DefaultExecParser (line 348) | func TestConfig_DefaultExecParser(t *testing.T) { function TestConfig_LoadSpecialTypes (line 353) | func TestConfig_LoadSpecialTypes(t *testing.T) { function TestConfig_DeprecatedFilters (line 372) | func TestConfig_DeprecatedFilters(t *testing.T) { function TestConfig_FieldNotDefined (line 381) | func TestConfig_FieldNotDefined(t *testing.T) { function TestConfig_WrongFieldType (line 458) | func TestConfig_WrongFieldType(t *testing.T) { function TestConfig_InlineTables (line 470) | func TestConfig_InlineTables(t *testing.T) { function TestConfig_SliceComment (line 484) | func TestConfig_SliceComment(t *testing.T) { function TestConfig_BadOrdering (line 494) | func TestConfig_BadOrdering(t *testing.T) { function TestConfig_AzureMonitorNamespacePrefix (line 507) | func TestConfig_AzureMonitorNamespacePrefix(t *testing.T) { function TestGetDefaultConfigPathFromEnvURL (line 521) | func TestGetDefaultConfigPathFromEnvURL(t *testing.T) { function TestConfig_URLLikeFileName (line 540) | func TestConfig_URLLikeFileName(t *testing.T) { function TestConfig_Filtering (line 557) | func TestConfig_Filtering(t *testing.T) { function TestConfig_SerializerInterfaceNewFormat (line 617) | func TestConfig_SerializerInterfaceNewFormat(t *testing.T) { function TestConfig_ParserInterface (line 700) | func TestConfig_ParserInterface(t *testing.T) { function TestConfig_MultipleProcessorsOrder (line 821) | func TestConfig_MultipleProcessorsOrder(t *testing.T) { function TestConfig_ProcessorsWithParsers (line 918) | func TestConfig_ProcessorsWithParsers(t *testing.T) { function TestConfigPluginIDsDifferent (line 1052) | func TestConfigPluginIDsDifferent(t *testing.T) { function TestConfigPluginIDsSame (line 1075) | func TestConfigPluginIDsSame(t *testing.T) { function TestPersisterInputStoreLoad (line 1094) | func TestPersisterInputStoreLoad(t *testing.T) { function TestPersisterProcessorRegistration (line 1167) | func TestPersisterProcessorRegistration(t *testing.T) { function TestConfigEnvVarsStrict (line 1197) | func TestConfigEnvVarsStrict(t *testing.T) { function TestConfigEnvVarsStrictFailNonString (line 1289) | func TestConfigEnvVarsStrictFailNonString(t *testing.T) { function TestConfigEnvVarsNonStrict (line 1308) | func TestConfigEnvVarsNonStrict(t *testing.T) { function TestConfigEnvVarsNonStrictMalicious (line 1418) | func TestConfigEnvVarsNonStrictMalicious(t *testing.T) { type MockupInputPluginParserNew (line 1447) | type MockupInputPluginParserNew struct method SampleConfig (line 1452) | func (*MockupInputPluginParserNew) SampleConfig() string { method Gather (line 1455) | func (*MockupInputPluginParserNew) Gather(telegraf.Accumulator) error { method SetParser (line 1458) | func (m *MockupInputPluginParserNew) SetParser(parser telegraf.Parser) { method SetParserFunc (line 1461) | func (m *MockupInputPluginParserNew) SetParserFunc(f telegraf.ParserFu... type MockupInputPlugin (line 1466) | type MockupInputPlugin struct method SampleConfig (line 1485) | func (*MockupInputPlugin) SampleConfig() string { method Gather (line 1488) | func (*MockupInputPlugin) Gather(telegraf.Accumulator) error { method SetParser (line 1491) | func (m *MockupInputPlugin) SetParser(parser telegraf.Parser) { type MockupInputPluginParserFunc (line 1496) | type MockupInputPluginParserFunc struct method SampleConfig (line 1500) | func (*MockupInputPluginParserFunc) SampleConfig() string { method Gather (line 1503) | func (*MockupInputPluginParserFunc) Gather(telegraf.Accumulator) error { method SetParserFunc (line 1506) | func (m *MockupInputPluginParserFunc) SetParserFunc(pf telegraf.Parser... type MockupInputPluginParserOnly (line 1511) | type MockupInputPluginParserOnly struct method SampleConfig (line 1515) | func (*MockupInputPluginParserOnly) SampleConfig() string { method Gather (line 1518) | func (*MockupInputPluginParserOnly) Gather(telegraf.Accumulator) error { method SetParser (line 1521) | func (m *MockupInputPluginParserOnly) SetParser(p telegraf.Parser) { type MockupProcessorPluginParser (line 1526) | type MockupProcessorPluginParser struct method Start (line 1531) | func (*MockupProcessorPluginParser) Start(telegraf.Accumulator) error { method Stop (line 1534) | func (*MockupProcessorPluginParser) Stop() { method SampleConfig (line 1536) | func (*MockupProcessorPluginParser) SampleConfig() string { method Apply (line 1539) | func (*MockupProcessorPluginParser) Apply(...telegraf.Metric) []telegr... method Add (line 1542) | func (*MockupProcessorPluginParser) Add(telegraf.Metric, telegraf.Accu... method SetParser (line 1545) | func (m *MockupProcessorPluginParser) SetParser(parser telegraf.Parser) { method SetParserFunc (line 1548) | func (m *MockupProcessorPluginParser) SetParserFunc(f telegraf.ParserF... type MockupProcessorPlugin (line 1553) | type MockupProcessorPlugin struct method SampleConfig (line 1558) | func (*MockupProcessorPlugin) SampleConfig() string { method Apply (line 1561) | func (*MockupProcessorPlugin) Apply(in ...telegraf.Metric) []telegraf.... method GetState (line 1569) | func (m *MockupProcessorPlugin) GetState() interface{} { method SetState (line 1572) | func (m *MockupProcessorPlugin) SetState(state interface{}) error { type MockupProcessorPluginParserOnly (line 1583) | type MockupProcessorPluginParserOnly struct method Start (line 1587) | func (*MockupProcessorPluginParserOnly) Start(telegraf.Accumulator) er... method Stop (line 1590) | func (*MockupProcessorPluginParserOnly) Stop() { method SampleConfig (line 1592) | func (*MockupProcessorPluginParserOnly) SampleConfig() string { method Apply (line 1595) | func (*MockupProcessorPluginParserOnly) Apply(...telegraf.Metric) []te... method Add (line 1598) | func (*MockupProcessorPluginParserOnly) Add(telegraf.Metric, telegraf.... method SetParser (line 1601) | func (m *MockupProcessorPluginParserOnly) SetParser(parser telegraf.Pa... type MockupProcessorPluginParserFunc (line 1606) | type MockupProcessorPluginParserFunc struct method Start (line 1610) | func (*MockupProcessorPluginParserFunc) Start(telegraf.Accumulator) er... method Stop (line 1613) | func (*MockupProcessorPluginParserFunc) Stop() { method SampleConfig (line 1615) | func (*MockupProcessorPluginParserFunc) SampleConfig() string { method Apply (line 1618) | func (*MockupProcessorPluginParserFunc) Apply(...telegraf.Metric) []te... method Add (line 1621) | func (*MockupProcessorPluginParserFunc) Add(telegraf.Metric, telegraf.... method SetParserFunc (line 1624) | func (m *MockupProcessorPluginParserFunc) SetParserFunc(pf telegraf.Pa... type MockupOutputPlugin (line 1629) | type MockupOutputPlugin struct method Connect (line 1638) | func (*MockupOutputPlugin) Connect() error { method Close (line 1641) | func (*MockupOutputPlugin) Close() error { method SampleConfig (line 1644) | func (*MockupOutputPlugin) SampleConfig() string { method Write (line 1647) | func (*MockupOutputPlugin) Write([]telegraf.Metric) error { type MockupOutputPluginSerializerNew (line 1651) | type MockupOutputPluginSerializerNew struct method SetSerializer (line 1655) | func (m *MockupOutputPluginSerializerNew) SetSerializer(s telegraf.Ser... method Connect (line 1658) | func (*MockupOutputPluginSerializerNew) Connect() error { method Close (line 1661) | func (*MockupOutputPluginSerializerNew) Close() error { method SampleConfig (line 1664) | func (*MockupOutputPluginSerializerNew) SampleConfig() string { method Write (line 1667) | func (*MockupOutputPluginSerializerNew) Write(_ []telegraf.Metric) err... type MockupState (line 1672) | type MockupState struct type MockupStatePluginSettings (line 1680) | type MockupStatePluginSettings struct type MockupStatePlugin (line 1687) | type MockupStatePlugin struct method Init (line 1696) | func (m *MockupStatePlugin) Init() error { method GetState (line 1709) | func (m *MockupStatePlugin) GetState() interface{} { method SetState (line 1713) | func (m *MockupStatePlugin) SetState(state interface{}) error { method SampleConfig (line 1723) | func (*MockupStatePlugin) SampleConfig() string { method Gather (line 1727) | func (*MockupStatePlugin) Gather(telegraf.Accumulator) error { function init (line 1732) | func init() { FILE: config/deprecation.go type DeprecationInfo (line 22) | type DeprecationInfo struct method determineEscalation (line 30) | func (di *DeprecationInfo) determineEscalation() error { type PluginDeprecationInfo (line 68) | type PluginDeprecationInfo struct method incrementPluginDeprecations (line 75) | func (c *Config) incrementPluginDeprecations(category string) { method incrementPluginOptionDeprecations (line 83) | func (c *Config) incrementPluginOptionDeprecations(category string) { method collectDeprecationInfo (line 91) | func (c *Config) collectDeprecationInfo(category, name string, plugin in... method printUserDeprecation (line 169) | func (c *Config) printUserDeprecation(category, name string, plugin inte... method CollectDeprecationInfos (line 193) | func (c *Config) CollectDeprecationInfos(inFilter, outFilter, aggFilter,... method PrintDeprecationList (line 255) | func (*Config) PrintDeprecationList(plugins []PluginDeprecationInfo) { function printHistoricPluginDeprecationNotice (line 280) | func printHistoricPluginDeprecationNotice(category, name string, info te... function walkPluginStruct (line 290) | func walkPluginStruct(value reflect.Value, fn func(f reflect.StructField... function deprecationPrefix (line 332) | func deprecationPrefix(level telegraf.LogLevel) string { function printPluginDeprecationNotice (line 342) | func printPluginDeprecationNotice(level telegraf.LogLevel, name string, ... function PrintOptionDeprecationNotice (line 353) | func PrintOptionDeprecationNotice(plugin, option string, info telegraf.D... function PrintOptionValueDeprecationNotice (line 374) | func PrintOptionValueDeprecationNotice(plugin, option string, value inte... FILE: config/deprecation_test.go function TestPluginDeprecation (line 17) | func TestPluginDeprecation(t *testing.T) { function TestPluginOptionDeprecation (line 88) | func TestPluginOptionDeprecation(t *testing.T) { function TestPluginOptionValueDeprecation (line 175) | func TestPluginOptionValueDeprecation(t *testing.T) { FILE: config/envvar.go type trimmer (line 17) | type trimmer struct method process (line 31) | func (t *trimmer) process() error { method hasNQuotes (line 80) | func (t *trimmer) hasNQuotes(ref byte, limit int64) bool { method readWriteByte (line 99) | func (t *trimmer) readWriteByte() (byte, error) { method escape (line 107) | func (t *trimmer) escape() error { method singleQuote (line 116) | func (t *trimmer) singleQuote() error { method tripleSingleQuote (line 128) | func (t *trimmer) tripleSingleQuote() error { method doubleQuote (line 151) | func (t *trimmer) doubleQuote() error { method tripleDoubleQuote (line 177) | func (t *trimmer) tripleDoubleQuote() error { method comment (line 212) | func (t *trimmer) comment() error { function removeComments (line 22) | func removeComments(buf []byte) ([]byte, error) { function substituteEnvironmentStrict (line 225) | func substituteEnvironmentStrict(contents []byte, oldReplacementBehavior... function walk (line 280) | func walk(node interface{}, f func(interface{}) error) error { function substituteEnvironmentNonStrict (line 308) | func substituteEnvironmentNonStrict(contents []byte, oldReplacementBehav... FILE: config/internal_test.go function TestEnvironmentSubstitution (line 16) | func TestEnvironmentSubstitution(t *testing.T) { function TestEnvironmentSubstitutionOldBehavior (line 114) | func TestEnvironmentSubstitutionOldBehavior(t *testing.T) { function TestEnvironmentSubstitutionNewBehavior (line 214) | func TestEnvironmentSubstitutionNewBehavior(t *testing.T) { function TestParseConfig (line 308) | func TestParseConfig(t *testing.T) { function TestRemoveComments (line 357) | func TestRemoveComments(t *testing.T) { function TestURLRetries3Fails (line 377) | func TestURLRetries3Fails(t *testing.T) { function TestURLRetries3FailsThenPasses (line 395) | func TestURLRetries3FailsThenPasses(t *testing.T) { FILE: config/migration.go type section (line 20) | type section struct function splitToSections (line 27) | func splitToSections(root *ast.Table) ([]section, error) { function assignTextToSections (line 73) | func assignTextToSections(data []byte, sections []section) ([]section, e... function ApplyMigrations (line 132) | func ApplyMigrations(data []byte) ([]byte, uint64, error) { FILE: config/plugin_id.go type keyValuePair (line 12) | type keyValuePair struct function processTable (line 17) | func processTable(parent string, table *ast.Table) ([]keyValuePair, erro... function generatePluginID (line 56) | func generatePluginID(prefix string, table *ast.Table) (string, error) { FILE: config/plugin_printer.go type pluginPrinter (line 14) | type pluginPrinter struct type pluginNames (line 19) | type pluginNames function getPluginSourcesTable (line 21) | func getPluginSourcesTable(pluginNames []pluginPrinter) string { function getTableString (line 54) | func getTableString(headers []string, data [][]any) string { function convertToRow (line 100) | func convertToRow(data []string) table.Row { FILE: config/plugin_selector.go constant selectorSeparator (line 13) | selectorSeparator = ";" function CheckSelectionKeyValuePairs (line 28) | func CheckSelectionKeyValuePairs(k, v string) error { function CheckLabelKeyValuePairs (line 39) | func CheckLabelKeyValuePairs(k, v string) error { function SetPluginLabelSelections (line 52) | func SetPluginLabelSelections(selections []string) error { type labelSelector (line 56) | type labelSelector struct method setSelections (line 60) | func (l *labelSelector) setSelections(selections []string) error { method addGroup (line 74) | func (l *labelSelector) addGroup(selection []string) error { method matches (line 112) | func (l *labelSelector) matches(labels map[string]string) bool { FILE: config/plugin_selector_test.go function TestSetPluginLabelSelections (line 9) | func TestSetPluginLabelSelections(t *testing.T) { function TestKeyRegex (line 93) | func TestKeyRegex(t *testing.T) { function TestSelectorValueRegex (line 133) | func TestSelectorValueRegex(t *testing.T) { function TestLabelValueRegex (line 179) | func TestLabelValueRegex(t *testing.T) { function TestMatches (line 224) | func TestMatches(t *testing.T) { FILE: config/secret.go type secretImpl (line 37) | type secretImpl interface function EnableSecretProtection (line 43) | func EnableSecretProtection() { function DisableSecretProtection (line 47) | func DisableSecretProtection() { type secretContainer (line 53) | type secretContainer interface type SecretBuffer (line 62) | type SecretBuffer interface type Secret (line 86) | type Secret struct method UnmarshalText (line 110) | func (s *Secret) UnmarshalText(b []byte) error { method init (line 124) | func (s *Secret) init(secret []byte) { method Destroy (line 150) | func (s *Secret) Destroy() { method Empty (line 165) | func (s *Secret) Empty() bool { method EqualTo (line 170) | func (s *Secret) EqualTo(ref []byte) (bool, error) { method Get (line 183) | func (s *Secret) Get() (SecretBuffer, error) { method Set (line 230) | func (s *Secret) Set(value []byte) error { method GetUnlinked (line 246) | func (s *Secret) GetUnlinked() []string { method Link (line 252) | func (s *Secret) Link(resolvers map[string]telegraf.ResolveFunc) error { function NewSecret (line 103) | func NewSecret(b []byte) Secret { function resolve (line 282) | func resolve(secret []byte, resolvers map[string]telegraf.ResolveFunc) (... function splitLink (line 311) | func splitLink(s string) (storeID, key string) { FILE: config/secret_protected.go type protectedSecretImpl (line 9) | type protectedSecretImpl struct method Container (line 11) | func (*protectedSecretImpl) Container(secret []byte) secretContainer { method EmptyBuffer (line 17) | func (*protectedSecretImpl) EmptyBuffer() SecretBuffer { method Wipe (line 21) | func (*protectedSecretImpl) Wipe(secret []byte) { type lockedBuffer (line 25) | type lockedBuffer struct method Size (line 29) | func (lb *lockedBuffer) Size() int { method Grow (line 36) | func (lb *lockedBuffer) Grow(capacity int) { method Bytes (line 50) | func (lb *lockedBuffer) Bytes() []byte { method TemporaryString (line 57) | func (lb *lockedBuffer) TemporaryString() string { method String (line 64) | func (lb *lockedBuffer) String() string { method Destroy (line 71) | func (lb *lockedBuffer) Destroy() { type protectedSecretContainer (line 79) | type protectedSecretContainer struct method Destroy (line 83) | func (c *protectedSecretContainer) Destroy() { method Equals (line 96) | func (c *protectedSecretContainer) Equals(ref []byte) (bool, error) { method Buffer (line 111) | func (c *protectedSecretContainer) Buffer() (SecretBuffer, error) { method AsBuffer (line 125) | func (*protectedSecretContainer) AsBuffer(secret []byte) SecretBuffer { method Replace (line 129) | func (c *protectedSecretContainer) Replace(secret []byte) { FILE: config/secret_test.go function TestSecretConstantManually (line 19) | func TestSecretConstantManually(t *testing.T) { function TestLinking (line 29) | func TestLinking(t *testing.T) { function TestLinkingResolverError (line 45) | func TestLinkingResolverError(t *testing.T) { function TestGettingUnlinked (line 58) | func TestGettingUnlinked(t *testing.T) { function TestGettingMissingResolver (line 66) | func TestGettingMissingResolver(t *testing.T) { function TestGettingResolverError (line 81) | func TestGettingResolverError(t *testing.T) { function TestUninitializedEnclave (line 96) | func TestUninitializedEnclave(t *testing.T) { function TestEnclaveOpenError (line 106) | func TestEnclaveOpenError(t *testing.T) { function TestMissingResolver (line 119) | func TestMissingResolver(t *testing.T) { function TestSecretConstant (line 127) | func TestSecretConstant(t *testing.T) { function TestSecretUnquote (line 175) | func TestSecretUnquote(t *testing.T) { function TestSecretEnvironmentVariable (line 326) | func TestSecretEnvironmentVariable(t *testing.T) { function TestSecretCount (line 354) | func TestSecretCount(t *testing.T) { function TestSecretStoreStatic (line 379) | func TestSecretStoreStatic(t *testing.T) { function TestSecretStoreInvalidKeys (line 420) | func TestSecretStoreInvalidKeys(t *testing.T) { function TestSecretStoreDeclarationMissingID (line 466) | func TestSecretStoreDeclarationMissingID(t *testing.T) { function TestSecretStoreDeclarationInvalidID (line 476) | func TestSecretStoreDeclarationInvalidID(t *testing.T) { function TestSecretStoreDeclarationValidID (line 494) | func TestSecretStoreDeclarationValidID(t *testing.T) { type SecretImplTestSuite (line 512) | type SecretImplTestSuite struct method SetupSuite (line 517) | func (tsuite *SecretImplTestSuite) SetupSuite() { method TearDownSuite (line 525) | func (*SecretImplTestSuite) TearDownSuite() { method TearDownTest (line 529) | func (*SecretImplTestSuite) TearDownTest() { method TestSecretEqualTo (line 533) | func (tsuite *SecretImplTestSuite) TestSecretEqualTo() { method TestSecretStoreInvalidReference (line 548) | func (tsuite *SecretImplTestSuite) TestSecretStoreInvalidReference() { method TestSecretStoreStaticChanging (line 578) | func (tsuite *SecretImplTestSuite) TestSecretStoreStaticChanging() { method TestSecretStoreDynamic (line 620) | func (tsuite *SecretImplTestSuite) TestSecretStoreDynamic() { method TestSecretSet (line 656) | func (tsuite *SecretImplTestSuite) TestSecretSet() { method TestSecretSetResolve (line 682) | func (tsuite *SecretImplTestSuite) TestSecretSetResolve() { method TestSecretSetResolveInvalid (line 715) | func (tsuite *SecretImplTestSuite) TestSecretSetResolveInvalid() { method TestSecretInvalidWarn (line 746) | func (tsuite *SecretImplTestSuite) TestSecretInvalidWarn() { function TestSecretImplUnprotected (line 767) | func TestSecretImplUnprotected(t *testing.T) { function TestSecretImplTestSuiteUnprotected (line 782) | func TestSecretImplTestSuiteUnprotected(t *testing.T) { function TestSecretImplTestSuiteProtected (line 786) | func TestSecretImplTestSuiteProtected(t *testing.T) { type MockupSecretPlugin (line 791) | type MockupSecretPlugin struct method SampleConfig (line 796) | func (*MockupSecretPlugin) SampleConfig() string { retu... method Gather (line 797) | func (*MockupSecretPlugin) Gather(_ telegraf.Accumulator) error { retu... type MockupSecretStore (line 799) | type MockupSecretStore struct method Init (line 804) | func (*MockupSecretStore) Init() error { method SampleConfig (line 807) | func (*MockupSecretStore) SampleConfig() string { method Get (line 811) | func (s *MockupSecretStore) Get(key string) ([]byte, error) { method Set (line 819) | func (s *MockupSecretStore) Set(key, value string) error { method List (line 824) | func (s *MockupSecretStore) List() ([]string, error) { method GetResolver (line 831) | func (s *MockupSecretStore) GetResolver(key string) (telegraf.ResolveF... function init (line 839) | func init() { FILE: config/secret_unprotected.go type unprotectedSecretImpl (line 8) | type unprotectedSecretImpl struct method Container (line 10) | func (*unprotectedSecretImpl) Container(secret []byte) secretContainer { method EmptyBuffer (line 14) | func (*unprotectedSecretImpl) EmptyBuffer() SecretBuffer { method Wipe (line 18) | func (*unprotectedSecretImpl) Wipe(secret []byte) { type unlockedBuffer (line 24) | type unlockedBuffer struct method Size (line 32) | func (lb *unlockedBuffer) Size() int { method Grow (line 36) | func (*unlockedBuffer) Grow(int) { method Bytes (line 40) | func (lb *unlockedBuffer) Bytes() []byte { method TemporaryString (line 44) | func (lb *unlockedBuffer) TemporaryString() string { method String (line 49) | func (lb *unlockedBuffer) String() string { method Destroy (line 53) | func (lb *unlockedBuffer) Destroy() { function newUnlockedBuffer (line 28) | func newUnlockedBuffer(secret []byte) *unlockedBuffer { type unprotectedSecretContainer (line 58) | type unprotectedSecretContainer struct method Destroy (line 62) | func (c *unprotectedSecretContainer) Destroy() { method Equals (line 72) | func (c *unprotectedSecretContainer) Equals(ref []byte) (bool, error) { method Buffer (line 80) | func (c *unprotectedSecretContainer) Buffer() (SecretBuffer, error) { method AsBuffer (line 88) | func (*unprotectedSecretContainer) AsBuffer(secret []byte) SecretBuffer { method Replace (line 92) | func (c *unprotectedSecretContainer) Replace(secret []byte) { FILE: config/types.go type Duration (line 17) | type Duration method UnmarshalText (line 23) | func (d *Duration) UnmarshalText(b []byte) error { type Size (line 20) | type Size method UnmarshalText (line 68) | func (s *Size) UnmarshalText(b []byte) error { FILE: config/types_test.go function TestConfigDuration (line 15) | func TestConfigDuration(t *testing.T) { function TestDuration (line 36) | func TestDuration(t *testing.T) { function TestSize (line 61) | func TestSize(t *testing.T) { function TestTOMLParsingStringDurations (line 80) | func TestTOMLParsingStringDurations(t *testing.T) { function TestTOMLParsingIntegerDurations (line 136) | func TestTOMLParsingIntegerDurations(t *testing.T) { function TestTOMLParsingFloatDurations (line 166) | func TestTOMLParsingFloatDurations(t *testing.T) { function TestTOMLParsingStringSizes (line 194) | func TestTOMLParsingStringSizes(t *testing.T) { function TestTOMLParsingIntegerSizes (line 232) | func TestTOMLParsingIntegerSizes(t *testing.T) { type MockupTypesPlugin (line 265) | type MockupTypesPlugin struct method SampleConfig (line 270) | func (*MockupTypesPlugin) SampleConfig() string { retur... method Gather (line 271) | func (*MockupTypesPlugin) Gather(_ telegraf.Accumulator) error { retur... function init (line 274) | func init() { FILE: filter/filter.go type Filter (line 9) | type Filter interface function Compile (line 30) | func Compile(filters []string, separators ...rune) (Filter, error) { function MustCompile (line 57) | func MustCompile(filters []string, separators ...rune) Filter { type IncludeExcludeFilter (line 65) | type IncludeExcludeFilter struct method Match (line 90) | func (f *IncludeExcludeFilter) Match(s string) bool { function NewIncludeExcludeFilter (line 72) | func NewIncludeExcludeFilter(include, exclude []string) (Filter, error) { function NewIncludeExcludeFilterDefaults (line 76) | func NewIncludeExcludeFilterDefaults(include, exclude []string, includeD... FILE: filter/filter_test.go function TestCompile (line 9) | func TestCompile(t *testing.T) { function TestMultiple (line 52) | func TestMultiple(t *testing.T) { function TestIncludeExclude (line 100) | func TestIncludeExclude(t *testing.T) { function BenchmarkFilterSingleNoGlobFalse (line 120) | func BenchmarkFilterSingleNoGlobFalse(b *testing.B) { function BenchmarkFilterSingleNoGlobTrue (line 130) | func BenchmarkFilterSingleNoGlobTrue(b *testing.B) { function BenchmarkFilter (line 140) | func BenchmarkFilter(b *testing.B) { function BenchmarkFilterNoGlob (line 150) | func BenchmarkFilterNoGlob(b *testing.B) { function BenchmarkFilter2 (line 160) | func BenchmarkFilter2(b *testing.B) { function BenchmarkFilter2NoGlob (line 171) | func BenchmarkFilter2NoGlob(b *testing.B) { FILE: filter/implementations.go type filterSingle (line 5) | type filterSingle struct method Match (line 9) | func (f *filterSingle) Match(s string) bool { type filterNoGlob (line 13) | type filterNoGlob struct method Match (line 25) | func (f *filterNoGlob) Match(s string) bool { function newFilterNoGlob (line 17) | func newFilterNoGlob(filters []string) Filter { type filterGlobMultiple (line 30) | type filterGlobMultiple struct method Match (line 48) | func (f *filterGlobMultiple) Match(s string) bool { function newFilterGlobMultiple (line 34) | func newFilterGlobMultiple(filters []string, separators ...rune) (Filter... FILE: input.go type Input (line 3) | type Input interface type ServiceInput (line 11) | type ServiceInput interface FILE: internal/choice/choice.go function Contains (line 8) | func Contains(choice string, choices []string) bool { function Check (line 19) | func Check(choice string, available []string) error { function CheckSlice (line 28) | func CheckSlice(choices, available []string) error { FILE: internal/clock/options.go type config (line 9) | type config struct type Option (line 17) | type Option function WithClock (line 19) | func WithClock(clk clock.Clock) Option { function WithAlignment (line 25) | func WithAlignment(start time.Time) Option { function WithStartupNotification (line 32) | func WithStartupNotification(notifier chan bool) Option { FILE: internal/clock/ticker.go type Ticker (line 13) | type Ticker struct method Stop (line 71) | func (t *Ticker) Stop() { method run (line 76) | func (t *Ticker) run(ctx context.Context) { function NewTicker (line 26) | func NewTicker(interval, jitter, offset time.Duration, opt ...Option) *T... FILE: internal/clock/ticker_aligned_test.go function TestAlignedTicker (line 11) | func TestAlignedTicker(t *testing.T) { function TestAlignedTickerJitter (line 44) | func TestAlignedTickerJitter(t *testing.T) { function TestAlignedTickerOffset (line 71) | func TestAlignedTickerOffset(t *testing.T) { function TestAlignedTickerMissedTick (line 102) | func TestAlignedTickerMissedTick(t *testing.T) { function TestAlignedTickerJitterBehavior (line 145) | func TestAlignedTickerJitterBehavior(t *testing.T) { function TestAlignedTickerDistribution (line 197) | func TestAlignedTickerDistribution(t *testing.T) { function TestAlignedTickerDistributionWithOffset (line 218) | func TestAlignedTickerDistributionWithOffset(t *testing.T) { FILE: internal/clock/ticker_test.go type distribution (line 11) | type distribution struct method mean (line 39) | func (d *distribution) mean() float64 { method print (line 43) | func (d distribution) print() { function simulatedTickerDist (line 17) | func simulatedTickerDist(ticker *Ticker, clk *clock.Mock) distribution { FILE: internal/clock/ticker_unaligned_test.go function TestUnalignedTicker (line 11) | func TestUnalignedTicker(t *testing.T) { function TestUnalignedTickerJitterBehavior (line 56) | func TestUnalignedTickerJitterBehavior(t *testing.T) { function TestUnalignedTickerDistribution (line 106) | func TestUnalignedTickerDistribution(t *testing.T) { function TestUnalignedTickerDistributionWithOffset (line 126) | func TestUnalignedTickerDistributionWithOffset(t *testing.T) { FILE: internal/clock/timer.go type Timer (line 24) | type Timer struct method Stop (line 65) | func (t *Timer) Stop() { method run (line 70) | func (t *Timer) run(ctx context.Context) { function NewTimer (line 35) | func NewTimer(interval, jitter time.Duration, opt ...Option) *Timer { FILE: internal/clock/timer_test.go function TestTimer (line 11) | func TestTimer(t *testing.T) { function TestTimerJitterDrift (line 66) | func TestTimerJitterDrift(t *testing.T) { function TestTimerDistribution (line 119) | func TestTimerDistribution(t *testing.T) { function simulatedTimerDist (line 138) | func simulatedTimerDist(timer *Timer, clk *clock.Mock) distribution { FILE: internal/content_coding.go constant defaultMaxDecompressionSize (line 16) | defaultMaxDecompressionSize int64 = 500 * 1024 * 1024 type DecodingOption (line 20) | type DecodingOption type decoderConfig (line 22) | type decoderConfig struct function WithMaxDecompressionSize (line 26) | func WithMaxDecompressionSize(maxDecompressionSize int64) DecodingOption { type encoderConfig (line 32) | type encoderConfig struct type EncodingOption (line 38) | type EncodingOption function WithCompressionLevel (line 40) | func WithCompressionLevel(level int) EncodingOption { function NewStreamContentDecoder (line 48) | func NewStreamContentDecoder(encoding string, r io.Reader) (io.Reader, e... type GzipReader (line 60) | type GzipReader struct method Read (line 83) | func (r *GzipReader) Read(b []byte) (int, error) { function NewGzipReader (line 66) | func NewGzipReader(r io.Reader) (io.Reader, error) { function NewContentEncoder (line 106) | func NewContentEncoder(encoding string, options ...EncodingOption) (Cont... type AutoDecoder (line 121) | type AutoDecoder struct method SetEncoding (line 127) | func (a *AutoDecoder) SetEncoding(encoding string) { method Decode (line 131) | func (a *AutoDecoder) Decode(data []byte) ([]byte, error) { function NewAutoContentDecoder (line 138) | func NewAutoContentDecoder(options ...DecodingOption) *AutoDecoder { function NewContentDecoder (line 147) | func NewContentDecoder(encoding string, options ...DecodingOption) (Cont... type ContentEncoder (line 165) | type ContentEncoder interface type GzipEncoder (line 170) | type GzipEncoder struct method Encode (line 204) | func (e *GzipEncoder) Encode(data []byte) ([]byte, error) { method encodeSmall (line 215) | func (e *GzipEncoder) encodeSmall(data []byte) ([]byte, error) { method encodeBig (line 230) | func (e *GzipEncoder) encodeBig(data []byte) ([]byte, error) { function NewGzipEncoder (line 176) | func NewGzipEncoder(options ...EncodingOption) (*GzipEncoder, error) { type ZlibEncoder (line 245) | type ZlibEncoder struct method Encode (line 271) | func (e *ZlibEncoder) Encode(data []byte) ([]byte, error) { function NewZlibEncoder (line 250) | func NewZlibEncoder(options ...EncodingOption) (*ZlibEncoder, error) { type ZstdEncoder (line 286) | type ZstdEncoder struct method Encode (line 317) | func (e *ZstdEncoder) Encode(data []byte) ([]byte, error) { function NewZstdEncoder (line 290) | func NewZstdEncoder(options ...EncodingOption) (*ZstdEncoder, error) { type IdentityEncoder (line 322) | type IdentityEncoder struct method Encode (line 332) | func (*IdentityEncoder) Encode(data []byte) ([]byte, error) { function NewIdentityEncoder (line 324) | func NewIdentityEncoder(options ...EncodingOption) (*IdentityEncoder, er... type ContentDecoder (line 337) | type ContentDecoder interface type GzipDecoder (line 343) | type GzipDecoder struct method SetEncoding (line 364) | func (*GzipDecoder) SetEncoding(string) {} method Decode (line 366) | func (d *GzipDecoder) Decode(data []byte) ([]byte, error) { method decodeSmall (line 377) | func (d *GzipDecoder) decodeSmall(data []byte) ([]byte, error) { method decodeBig (line 398) | func (d *GzipDecoder) decodeBig(data []byte) ([]byte, error) { function NewGzipDecoder (line 350) | func NewGzipDecoder(options ...DecodingOption) *GzipDecoder { type ZlibDecoder (line 419) | type ZlibDecoder struct method SetEncoding (line 436) | func (*ZlibDecoder) SetEncoding(string) {} method Decode (line 438) | func (d *ZlibDecoder) Decode(data []byte) ([]byte, error) { function NewZlibDecoder (line 424) | func NewZlibDecoder(options ...DecodingOption) *ZlibDecoder { type ZstdDecoder (line 461) | type ZstdDecoder struct method SetEncoding (line 477) | func (*ZstdDecoder) SetEncoding(string) {} method Decode (line 479) | func (d *ZstdDecoder) Decode(data []byte) ([]byte, error) { function NewZstdDecoder (line 465) | func NewZstdDecoder(options ...DecodingOption) (*ZstdDecoder, error) { type IdentityDecoder (line 484) | type IdentityDecoder struct method SetEncoding (line 491) | func (*IdentityDecoder) SetEncoding(string) {} method Decode (line 493) | func (*IdentityDecoder) Decode(data []byte) ([]byte, error) { function NewIdentityDecoder (line 487) | func NewIdentityDecoder(_ ...DecodingOption) *IdentityDecoder { FILE: internal/content_coding_test.go constant maxDecompressionSize (line 13) | maxDecompressionSize = 1024 function TestGzipEncodeDecode (line 15) | func TestGzipEncodeDecode(t *testing.T) { function TestGzipReuse (line 29) | func TestGzipReuse(t *testing.T) { function TestZlibEncodeDecode (line 51) | func TestZlibEncodeDecode(t *testing.T) { function TestZlibEncodeDecodeWithTooLargeMessage (line 65) | func TestZlibEncodeDecodeWithTooLargeMessage(t *testing.T) { function TestZstdEncodeDecode (line 77) | func TestZstdEncodeDecode(t *testing.T) { function TestZstdReuse (line 92) | func TestZstdReuse(t *testing.T) { function TestIdentityEncodeDecode (line 115) | func TestIdentityEncodeDecode(t *testing.T) { function TestStreamIdentityDecode (line 129) | func TestStreamIdentityDecode(t *testing.T) { function TestStreamGzipDecode (line 144) | func TestStreamGzipDecode(t *testing.T) { function TestCompressionLevel (line 163) | func TestCompressionLevel(t *testing.T) { function BenchmarkGzipEncode (line 228) | func BenchmarkGzipEncode(b *testing.B) { function BenchmarkGzipDecode (line 247) | func BenchmarkGzipDecode(b *testing.B) { function BenchmarkGzipEncodeDecode (line 266) | func BenchmarkGzipEncodeDecode(b *testing.B) { function BenchmarkGzipEncodeBig (line 288) | func BenchmarkGzipEncodeBig(b *testing.B) { function BenchmarkGzipDecodeBig (line 307) | func BenchmarkGzipDecodeBig(b *testing.B) { function BenchmarkGzipEncodeDecodeBig (line 326) | func BenchmarkGzipEncodeDecodeBig(b *testing.B) { function BenchmarkZstdEncode (line 348) | func BenchmarkZstdEncode(b *testing.B) { function BenchmarkZstdDecode (line 368) | func BenchmarkZstdDecode(b *testing.B) { function BenchmarkZstdEncodeDecode (line 388) | func BenchmarkZstdEncodeDecode(b *testing.B) { function BenchmarkZstdEncodeBig (line 411) | func BenchmarkZstdEncodeBig(b *testing.B) { function BenchmarkZstdDecodeBig (line 431) | func BenchmarkZstdDecodeBig(b *testing.B) { function BenchmarkZstdEncodeDecodeBig (line 451) | func BenchmarkZstdEncodeDecodeBig(b *testing.B) { function BenchmarkZlibEncode (line 474) | func BenchmarkZlibEncode(b *testing.B) { function BenchmarkZlibDecode (line 493) | func BenchmarkZlibDecode(b *testing.B) { function BenchmarkZlibEncodeDecode (line 512) | func BenchmarkZlibEncodeDecode(b *testing.B) { function BenchmarkIdentityEncodeDecode (line 534) | func BenchmarkIdentityEncodeDecode(b *testing.B) { FILE: internal/customized_no.go constant Customized (line 5) | Customized = "" FILE: internal/customized_yes.go constant Customized (line 5) | Customized = " (customized)" FILE: internal/docker/docker.go function ParseImage (line 7) | func ParseImage(image string) (imageName, imageVersion string) { FILE: internal/docker/docker_test.go function TestParseImage (line 11) | func TestParseImage(t *testing.T) { FILE: internal/env.go function GetProcPath (line 6) | func GetProcPath() string { function GetSysPath (line 14) | func GetSysPath() string { FILE: internal/errors.go type StartupError (line 16) | type StartupError struct method Error (line 22) | func (e *StartupError) Error() string { method Unwrap (line 26) | func (e *StartupError) Unwrap() error { type FatalError (line 33) | type FatalError struct method Error (line 37) | func (e *FatalError) Error() string { method Unwrap (line 41) | func (e *FatalError) Unwrap() error { type PartialWriteError (line 50) | type PartialWriteError struct method Error (line 57) | func (e *PartialWriteError) Error() string { method Unwrap (line 61) | func (e *PartialWriteError) Unwrap() error { FILE: internal/exec.go function CombinedOutputTimeout (line 12) | func CombinedOutputTimeout(c *exec.Cmd, timeout time.Duration) ([]byte, ... function StdOutputTimeout (line 26) | func StdOutputTimeout(c *exec.Cmd, timeout time.Duration) ([]byte, error) { function RunTimeout (line 39) | func RunTimeout(c *exec.Cmd, timeout time.Duration) error { FILE: internal/exec_unix.go constant KillGrace (line 14) | KillGrace = 5 * time.Second function WaitTimeout (line 19) | func WaitTimeout(c *exec.Cmd, timeout time.Duration) error { FILE: internal/exec_windows.go function WaitTimeout (line 14) | func WaitTimeout(c *exec.Cmd, timeout time.Duration) error { FILE: internal/globpath/globpath.go type GlobPath (line 12) | type GlobPath struct method Match (line 47) | func (g *GlobPath) Match() []string { method MatchString (line 60) | func (g *GlobPath) MatchString(path string) bool { method GetRoots (line 75) | func (g *GlobPath) GetRoots() []string { function Compile (line 20) | func Compile(path string) (*GlobPath, error) { function hasMeta (line 90) | func hasMeta(path string) bool { function hasSuperMeta (line 95) | func hasSuperMeta(path string) bool { FILE: internal/globpath/globpath_test.go function TestCompileAndMatch (line 21) | func TestCompileAndMatch(t *testing.T) { function TestRootGlob (line 60) | func TestRootGlob(t *testing.T) { function TestFindNestedTextFile (line 78) | func TestFindNestedTextFile(t *testing.T) { function TestMatch_ErrPermission (line 87) | func TestMatch_ErrPermission(t *testing.T) { function TestWindowsSeparator (line 104) | func TestWindowsSeparator(t *testing.T) { function getTestdataDir (line 116) | func getTestdataDir() string { FILE: internal/goplugin/noplugin.go function LoadExternalPlugins (line 7) | func LoadExternalPlugins(_ string) error { FILE: internal/goplugin/plugin.go function LoadExternalPlugins (line 16) | func LoadExternalPlugins(rootDir string) error { FILE: internal/http.go type BasicAuthErrorFunc (line 15) | type BasicAuthErrorFunc function JWTAuthHandler (line 19) | func JWTAuthHandler(secret, username string, onError BasicAuthErrorFunc)... type jwtAuthHandler (line 30) | type jwtAuthHandler struct method ServeHTTP (line 37) | func (h *jwtAuthHandler) ServeHTTP(rw http.ResponseWriter, req *http.R... function BasicAuthHandler (line 87) | func BasicAuthHandler(username, password, realm string, onError BasicAut... type basicAuthHandler (line 99) | type basicAuthHandler struct method ServeHTTP (line 107) | func (h *basicAuthHandler) ServeHTTP(rw http.ResponseWriter, req *http... type GenericAuthErrorFunc (line 135) | type GenericAuthErrorFunc function GenericAuthHandler (line 138) | func GenericAuthHandler(credentials string, onError GenericAuthErrorFunc... type genericAuthHandler (line 149) | type genericAuthHandler struct method ServeHTTP (line 155) | func (h *genericAuthHandler) ServeHTTP(rw http.ResponseWriter, req *ht... type ErrorFunc (line 170) | type ErrorFunc function IPRangeHandler (line 174) | func IPRangeHandler(networks []*net.IPNet, onError ErrorFunc) func(h htt... type ipRangeHandler (line 184) | type ipRangeHandler struct method ServeHTTP (line 190) | func (h *ipRangeHandler) ServeHTTP(rw http.ResponseWriter, req *http.R... function OnClientError (line 218) | func OnClientError(client *http.Client, err error) { FILE: internal/internal.go constant alphanum (line 27) | alphanum string = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq... constant NoMetricsCreatedMsg (line 28) | NoMetricsCreatedMsg = "No metrics were created from a message. Verify yo... type ReadWaitCloser (line 47) | type ReadWaitCloser struct method Close (line 211) | func (r *ReadWaitCloser) Close() error { function FormatFullVersion (line 52) | func FormatFullVersion() string { function ProductToken (line 76) | func ProductToken() string { function ReadLines (line 86) | func ReadLines(filename string) ([]string, error) { function RandomString (line 103) | func RandomString(n int) (string, error) { function SnakeCase (line 117) | func SnakeCase(in string) string { function RandomSleep (line 141) | func RandomSleep(limit time.Duration, shutdown chan struct{}) { function RandomDuration (line 158) | func RandomDuration(limit time.Duration) time.Duration { function SleepContext (line 167) | func SleepContext(ctx context.Context, duration time.Duration) error { function AlignDuration (line 184) | func AlignDuration(tm time.Time, interval time.Duration) time.Duration { function AlignTime (line 190) | func AlignTime(tm time.Time, interval time.Duration) time.Time { function ExitStatus (line 201) | func ExitStatus(err error) (int, bool) { function CompressWithGzip (line 222) | func CompressWithGzip(data io.Reader) io.ReadCloser { function ParseTimestamp (line 271) | func ParseTimestamp(format string, timestamp interface{}, location *time... function parseUnix (line 297) | func parseUnix(format string, timestamp interface{}, separator []string)... function timeFromFraction (line 349) | func timeFromFraction(f *big.Rat, factor int64) time.Time { function sanitizeTimestamp (line 365) | func sanitizeTimestamp(timestamp string, decimalSeparator []string) stri... function parseTime (line 385) | func parseTime(format, timestamp string, location *time.Location) (time.... FILE: internal/internal_test.go type SnakeTest (line 18) | type SnakeTest struct function TestSnakeCase (line 40) | func TestSnakeCase(t *testing.T) { function TestRunTimeout (line 48) | func TestRunTimeout(t *testing.T) { function TestRunTimeoutFastExit (line 67) | func TestRunTimeoutFastExit(t *testing.T) { function TestCombinedOutputTimeout (line 91) | func TestCombinedOutputTimeout(t *testing.T) { function TestCombinedOutput (line 108) | func TestCombinedOutput(t *testing.T) { function TestCombinedOutputError (line 122) | func TestCombinedOutputError(t *testing.T) { function TestRunError (line 138) | func TestRunError(t *testing.T) { function TestRandomSleep (line 149) | func TestRandomSleep(t *testing.T) { function TestCompressWithGzip (line 176) | func TestCompressWithGzip(t *testing.T) { type mockReader (line 191) | type mockReader struct method Read (line 197) | func (r *mockReader) Read(p []byte) (n int, err error) { function TestCompressWithGzipEarlyClose (line 211) | func TestCompressWithGzipEarlyClose(t *testing.T) { function TestCompressWithGzipErrorPropagationCopy (line 231) | func TestCompressWithGzipErrorPropagationCopy(t *testing.T) { function TestCompressWithGzipErrorPropagationReadAll (line 244) | func TestCompressWithGzipErrorPropagationReadAll(t *testing.T) { function TestAlignDuration (line 257) | func TestAlignDuration(t *testing.T) { function TestAlignTime (line 309) | func TestAlignTime(t *testing.T) { function TestParseTimestamp (line 344) | func TestParseTimestamp(t *testing.T) { function TestParseTimestampInvalid (line 814) | func TestParseTimestampInvalid(t *testing.T) { function TestTimestampAbbrevWarning (line 887) | func TestTimestampAbbrevWarning(t *testing.T) { function TestGoVersion (line 910) | func TestGoVersion(t *testing.T) { function TestProductToken (line 938) | func TestProductToken(t *testing.T) { FILE: internal/limiter/limiter.go function NewRateLimiter (line 10) | func NewRateLimiter(n int, rate time.Duration) *rateLimiter { type rateLimiter (line 22) | type rateLimiter struct method Stop (line 31) | func (r *rateLimiter) Stop() { method limiter (line 37) | func (r *rateLimiter) limiter() { FILE: internal/network.go function ResolveLocalTCPAddress (line 10) | func ResolveLocalTCPAddress(addr string) (*net.TCPAddr, error) { FILE: internal/process/process.go type Process (line 18) | type Process struct method Start (line 61) | func (p *Process) Start() error { method Stop (line 81) | func (p *Process) Stop() { method Pid (line 93) | func (p *Process) Pid() int { method State (line 98) | func (p *Process) State() (state *os.ProcessState, running bool) { method cmdStart (line 105) | func (p *Process) cmdStart() error { method cmdLoop (line 138) | func (p *Process) cmdLoop(ctx context.Context) error { method cmdWait (line 165) | func (p *Process) cmdWait(ctx context.Context) error { function New (line 40) | func New(command, envs []string) (*Process, error) { function isQuitting (line 208) | func isQuitting(ctx context.Context) bool { function defaultReadPipe (line 212) | func defaultReadPipe(r io.Reader) { FILE: internal/process/process_posix.go method gracefulStop (line 12) | func (p *Process) gracefulStop(ctx context.Context, cmd *exec.Cmd, timeo... FILE: internal/process/process_test.go function TestRestartingRebindsPipes (line 22) | func TestRestartingRebindsPipes(t *testing.T) { function TestMain (line 63) | func TestMain(m *testing.M) { function externalProcess (line 76) | func externalProcess() { FILE: internal/process/process_windows.go method gracefulStop (line 11) | func (p *Process) gracefulStop(ctx context.Context, cmd *exec.Cmd, timeo... FILE: internal/rotate/file_writer.go constant FilePerm (line 19) | FilePerm = os.FileMode(0644) constant DateFormat (line 20) | DateFormat = "2006-01-02" type FileWriter (line 28) | type FileWriter struct method Write (line 76) | func (w *FileWriter) Write(p []byte) (n int, err error) { method Close (line 93) | func (w *FileWriter) Close() (err error) { method openCurrent (line 111) | func (w *FileWriter) openCurrent() (err error) { method rotateIfNeeded (line 134) | func (w *FileWriter) rotateIfNeeded() error { method rotate (line 146) | func (w *FileWriter) rotate() (err error) { method purgeArchivesIfNeeded (line 161) | func (w *FileWriter) purgeArchivesIfNeeded() (err error) { function NewFileWriter (line 41) | func NewFileWriter(filename string, interval time.Duration, maxSizeInByt... function openFile (line 62) | func openFile(filename string) (*os.File, error) { function getFilenameRotationTemplate (line 66) | func getFilenameRotationTemplate(filename string) string { FILE: internal/rotate/file_writer_test.go function TestFileWriter_NoRotation (line 12) | func TestFileWriter_NoRotation(t *testing.T) { function TestFileWriter_TimeRotation (line 27) | func TestFileWriter_TimeRotation(t *testing.T) { function TestFileWriter_ReopenTimeRotation (line 45) | func TestFileWriter_ReopenTimeRotation(t *testing.T) { function TestFileWriter_SizeRotation (line 62) | func TestFileWriter_SizeRotation(t *testing.T) { function TestFileWriter_ReopenSizeRotation (line 78) | func TestFileWriter_ReopenSizeRotation(t *testing.T) { function TestFileWriter_DeleteArchives (line 95) | func TestFileWriter_DeleteArchives(t *testing.T) { function TestFileWriter_CloseDoesNotRotate (line 139) | func TestFileWriter_CloseDoesNotRotate(t *testing.T) { FILE: internal/templating/engine.go constant DefaultSeparator (line 10) | DefaultSeparator = "." type Engine (line 15) | type Engine struct method Apply (line 24) | func (e *Engine) Apply(line string) (measurementName string, tags map[... function NewEngine (line 29) | func NewEngine(joiner string, defaultTemplate *Template, templates []str... function parseTemplateSpecs (line 45) | func parseTemplateSpecs(templates []string) templateSpecs { FILE: internal/templating/engine_test.go function TestEngineAlternateSeparator (line 9) | func TestEngineAlternateSeparator(t *testing.T) { function TestEngineWithWildcardTemplate (line 25) | func TestEngineWithWildcardTemplate(t *testing.T) { FILE: internal/templating/matcher.go type matcher (line 9) | type matcher struct method addSpec (line 22) | func (m *matcher) addSpec(tmplt templateSpec) error { method add (line 41) | func (m *matcher) add(filter string, template *Template) { method match (line 52) | func (m *matcher) match(line string) *Template { function newMatcher (line 15) | func newMatcher(defaultTemplate *Template) *matcher { FILE: internal/templating/node.go type node (line 10) | type node struct method insert (line 19) | func (n *node) insert(filter string, template *Template) { method recursiveInsert (line 25) | func (n *node) recursiveInsert(values []string, template *Template) { method search (line 51) | func (n *node) search(line string) *Template { method recursiveSearch (line 57) | func (n *node) recursiveSearch(lineParts []string) *Template { type nodes (line 100) | type nodes method Less (line 120) | func (n *nodes) Less(j, k int) bool { method Swap (line 133) | func (n *nodes) Swap(i, j int) { (*n)[i], (*n)[j] = (*n)[j], (*n)[i] } method Len (line 136) | func (n *nodes) Len() int { return len(*n) } FILE: internal/templating/template.go type Template (line 9) | type Template struct method Apply (line 21) | func (t *Template) Apply(line string, joiner string) (measurementName ... function NewDefaultTemplateWithPattern (line 80) | func NewDefaultTemplateWithPattern(pattern string) (*Template, error) { function NewTemplate (line 85) | func NewTemplate(separator, pattern string, defaultTags map[string]strin... type templateSpec (line 113) | type templateSpec struct type templateSpecs (line 121) | type templateSpecs method Less (line 125) | func (e templateSpecs) Less(j, k int) bool { method Swap (line 139) | func (e templateSpecs) Swap(i, j int) { e[i], e[j] = e[j], e[i] } method Len (line 142) | func (e templateSpecs) Len() int { return len(e) } FILE: internal/templating/template_test.go function BenchmarkTemplateLess (line 5) | func BenchmarkTemplateLess(b *testing.B) { FILE: internal/type_conversions.go function ToFloat64 (line 12) | func ToFloat64(value interface{}) (float64, error) { function ToFloat32 (line 55) | func ToFloat32(value interface{}) (float32, error) { function ToUint64 (line 104) | func ToUint64(value interface{}) (uint64, error) { function ToUint32 (line 171) | func ToUint32(value interface{}) (uint32, error) { function ToUint16 (line 245) | func ToUint16(value interface{}) (uint16, error) { function ToUint8 (line 322) | func ToUint8(value interface{}) (uint8, error) { function ToInt64 (line 402) | func ToInt64(value interface{}) (int64, error) { function ToInt32 (line 460) | func ToInt32(value interface{}) (int32, error) { function ToInt16 (line 531) | func ToInt16(value interface{}) (int16, error) { function ToInt8 (line 605) | func ToInt8(value interface{}) (int8, error) { function ToString (line 685) | func ToString(value interface{}) (string, error) { function ToBool (line 725) | func ToBool(value interface{}) (bool, error) { FILE: logger.go type LogLevel (line 4) | type LogLevel method String (line 37) | func (e LogLevel) String() string { method Indicator (line 53) | func (e LogLevel) Indicator() string { method Includes (line 69) | func (e LogLevel) Includes(level LogLevel) bool { constant None (line 8) | None LogLevel = iota constant Error (line 10) | Error constant Warn (line 12) | Warn constant Info (line 14) | Info constant Debug (line 16) | Debug constant Trace (line 18) | Trace function LogLevelFromString (line 21) | func LogLevelFromString(name string) LogLevel { type Logger (line 74) | type Logger interface FILE: logger/event_logger.go constant eidInfo (line 17) | eidInfo = 1 constant eidWarning (line 18) | eidWarning = 2 constant eidError (line 19) | eidError = 3 type eventLogger (line 22) | type eventLogger struct method Close (line 27) | func (l *eventLogger) Close() error { method Print (line 38) | func (l *eventLogger) Print(level telegraf.LogLevel, _ time.Time, pref... function createEventLogger (line 62) | func createEventLogger(cfg *Config) (sink, error) { function init (line 76) | func init() { FILE: logger/event_logger_test.go type Levels (line 17) | type Levels constant Info (line 20) | Info Levels = iota + 1 constant Warning (line 21) | Warning constant Error (line 22) | Error type Event (line 25) | type Event struct function getEventLog (line 30) | func getEventLog(t *testing.T, since time.Time) []Event { function TestEventLogIntegration (line 52) | func TestEventLogIntegration(t *testing.T) { function TestRestrictedEventLogIntegration (line 74) | func TestRestrictedEventLogIntegration(t *testing.T) { FILE: logger/handler.go type entry (line 16) | type entry struct type handler (line 24) | type handler struct method switchSink (line 53) | func (h *handler) switchSink(impl sink, level telegraf.LogLevel, tz *t... method add (line 74) | func (h *handler) add(level telegraf.LogLevel, ts time.Time, prefix st... method close (line 90) | func (h *handler) close() error { function defaultHandler (line 34) | func defaultHandler() *handler { function redirectHandler (line 43) | func redirectHandler(w io.Writer) *handler { type redirectLogger (line 111) | type redirectLogger struct method Print (line 115) | func (l *redirectLogger) Print(level telegraf.LogLevel, ts time.Time, ... method Close (line 134) | func (l *redirectLogger) Close() error { FILE: logger/logger.go type CallbackFunc (line 29) | type CallbackFunc type sink (line 38) | type sink interface type logger (line 43) | type logger struct method Level (line 87) | func (l *logger) Level() telegraf.LogLevel { method AddAttribute (line 95) | func (l *logger) AddAttribute(key string, value interface{}) { method Errorf (line 105) | func (l *logger) Errorf(format string, args ...interface{}) { method Error (line 109) | func (l *logger) Error(args ...interface{}) { method Warnf (line 117) | func (l *logger) Warnf(format string, args ...interface{}) { method Warn (line 121) | func (l *logger) Warn(args ...interface{}) { method Infof (line 126) | func (l *logger) Infof(format string, args ...interface{}) { method Info (line 130) | func (l *logger) Info(args ...interface{}) { method Debugf (line 135) | func (l *logger) Debugf(format string, args ...interface{}) { method Debug (line 139) | func (l *logger) Debug(args ...interface{}) { method Tracef (line 144) | func (l *logger) Tracef(format string, args ...interface{}) { method Trace (line 148) | func (l *logger) Trace(args ...interface{}) { method Print (line 152) | func (l *logger) Print(level telegraf.LogLevel, ts time.Time, args ...... method SetLevel (line 179) | func (l *logger) SetLevel(level telegraf.LogLevel) { method SetLogLevel (line 184) | func (l *logger) SetLogLevel(name string) error { method RegisterErrorCallback (line 197) | func (l *logger) RegisterErrorCallback(f func()) { function New (line 56) | func New(category, name, alias string) *logger { type Config (line 201) | type Config struct function SetupLogging (line 228) | func SetupLogging(cfg *Config) error { function RedirectLogging (line 309) | func RedirectLogging(w io.Writer) { function CloseLogging (line 313) | func CloseLogging() error { function AddCallback (line 328) | func AddCallback(callback CallbackFunc) (string, error) { function RemoveCallback (line 345) | func RemoveCallback(id string) { function init (line 351) | func init() { FILE: logger/logger_test.go function TestTextLogTargetDefault (line 12) | func TestTextLogTargetDefault(t *testing.T) { function TestErrorCounting (line 25) | func TestErrorCounting(t *testing.T) { FILE: logger/registry.go type creator (line 3) | type creator function add (line 7) | func add(name string, creator creator) { FILE: logger/stdlog_redirector.go type stdlogRedirector (line 7) | type stdlogRedirector struct method Write (line 11) | func (s *stdlogRedirector) Write(b []byte) (n int, err error) { FILE: logger/structured_logger.go type structuredLogger (line 16) | type structuredLogger struct method Close (line 23) | func (l *structuredLogger) Close() error { method Print (line 35) | func (l *structuredLogger) Print(level telegraf.LogLevel, ts time.Time... function init (line 64) | func init() { FILE: logger/structured_logger_test.go function TestStructuredStderr (line 18) | func TestStructuredStderr(t *testing.T) { function TestStructuredFile (line 32) | func TestStructuredFile(t *testing.T) { function TestStructuredFileDebug (line 68) | func TestStructuredFileDebug(t *testing.T) { function TestStructuredFileError (line 104) | func TestStructuredFileError(t *testing.T) { function TestStructuredAddDefaultLogLevel (line 142) | func TestStructuredAddDefaultLogLevel(t *testing.T) { function TestStructuredDerivedLogger (line 178) | func TestStructuredDerivedLogger(t *testing.T) { function TestStructuredDerivedLoggerWithAttributes (line 219) | func TestStructuredDerivedLoggerWithAttributes(t *testing.T) { function TestStructuredWriteToTruncatedFile (line 265) | func TestStructuredWriteToTruncatedFile(t *testing.T) { function TestStructuredWriteToFileInRotation (line 320) | func TestStructuredWriteToFileInRotation(t *testing.T) { function TestStructuredLogMessageKey (line 339) | func TestStructuredLogMessageKey(t *testing.T) { function BenchmarkTelegrafStructuredLogWrite (line 381) | func BenchmarkTelegrafStructuredLogWrite(b *testing.B) { FILE: logger/text_logger.go constant LogTargetFile (line 21) | LogTargetFile = "file" constant LogTargetStderr (line 22) | LogTargetStderr = "stderr" type textLogger (line 25) | type textLogger struct method Close (line 29) | func (l *textLogger) Close() error { method Print (line 43) | func (l *textLogger) Print(level telegraf.LogLevel, ts time.Time, pref... function createTextLogger (line 48) | func createTextLogger(cfg *Config) (sink, error) { function init (line 66) | func init() { FILE: logger/text_logger_test.go function TestTextStderr (line 16) | func TestTextStderr(t *testing.T) { function TestTextFile (line 30) | func TestTextFile(t *testing.T) { function TestTextFileDebug (line 55) | func TestTextFileDebug(t *testing.T) { function TestTextFileError (line 80) | func TestTextFileError(t *testing.T) { function TestTextAddDefaultLogLevel (line 106) | func TestTextAddDefaultLogLevel(t *testing.T) { function TestTextWriteToTruncatedFile (line 131) | func TestTextWriteToTruncatedFile(t *testing.T) { function TestTextWriteToFileInRotation (line 164) | func TestTextWriteToFileInRotation(t *testing.T) { function TestTextWriteDerivedLogger (line 183) | func TestTextWriteDerivedLogger(t *testing.T) { function TestTextWriteDerivedLoggerWithAttributes (line 211) | func TestTextWriteDerivedLoggerWithAttributes(t *testing.T) { function BenchmarkTelegrafTextLogWrite (line 244) | func BenchmarkTelegrafTextLogWrite(b *testing.B) { FILE: metric.go type ValueType (line 8) | type ValueType constant _ (line 12) | _ ValueType = iota constant Counter (line 13) | Counter constant Gauge (line 14) | Gauge constant Untyped (line 15) | Untyped constant Summary (line 16) | Summary constant Histogram (line 17) | Histogram type Tag (line 21) | type Tag struct type Field (line 27) | type Field struct type Metric (line 37) | type Metric interface type TemplateMetric (line 138) | type TemplateMetric interface type UnwrappableMetric (line 148) | type UnwrappableMetric interface type TrackingMetric (line 154) | type TrackingMetric interface FILE: metric/deserialize.go type serializedMetric (line 27) | type serializedMetric struct function ToBytes (line 32) | func ToBytes(m telegraf.Metric) ([]byte, error) { function FromBytes (line 55) | func FromBytes(b []byte) (telegraf.Metric, error) { FILE: metric/init.go function Init (line 5) | func Init() { FILE: metric/metric.go type metric (line 14) | type metric struct method String (line 90) | func (m *metric) String() string { method Name (line 94) | func (m *metric) Name() string { method Tags (line 98) | func (m *metric) Tags() map[string]string { method TagList (line 106) | func (m *metric) TagList() []*telegraf.Tag { method Fields (line 110) | func (m *metric) Fields() map[string]interface{} { method FieldList (line 119) | func (m *metric) FieldList() []*telegraf.Field { method Time (line 123) | func (m *metric) Time() time.Time { method Type (line 127) | func (m *metric) Type() telegraf.ValueType { method SetName (line 131) | func (m *metric) SetName(name string) { method AddPrefix (line 135) | func (m *metric) AddPrefix(prefix string) { method AddSuffix (line 139) | func (m *metric) AddSuffix(suffix string) { method AddTag (line 143) | func (m *metric) AddTag(key, value string) { method HasTag (line 163) | func (m *metric) HasTag(key string) bool { method GetTag (line 172) | func (m *metric) GetTag(key string) (string, bool) { method Tag (line 181) | func (m *metric) Tag(key string) string { method RemoveTag (line 186) | func (m *metric) RemoveTag(key string) { method AddField (line 197) | func (m *metric) AddField(key string, value interface{}) { method HasField (line 207) | func (m *metric) HasField(key string) bool { method GetField (line 216) | func (m *metric) GetField(key string) (interface{}, bool) { method Field (line 225) | func (m *metric) Field(key string) interface{} { method RemoveField (line 232) | func (m *metric) RemoveField(key string) { method SetTime (line 243) | func (m *metric) SetTime(t time.Time) { method SetType (line 247) | func (m *metric) SetType(t telegraf.ValueType) { method Copy (line 251) | func (m *metric) Copy() telegraf.Metric { method HashID (line 270) | func (m *metric) HashID() uint64 { method HashIDWithFieldsFiltered (line 283) | func (m *metric) HashIDWithFieldsFiltered(excludedTags, excludedFields... method Accept (line 309) | func (*metric) Accept() { method Reject (line 312) | func (*metric) Reject() { method Drop (line 315) | func (*metric) Drop() { function New (line 23) | func New( function FromMetric (line 71) | func FromMetric(other telegraf.Metric) telegraf.Metric { function convertField (line 319) | func convertField(v interface{}) interface{} { FILE: metric/metric_test.go function TestNewMetric (line 12) | func TestNewMetric(t *testing.T) { function baseMetric (line 33) | func baseMetric() telegraf.Metric { function TestHasTag (line 44) | func TestHasTag(t *testing.T) { function TestAddTagOverwrites (line 54) | func TestAddTagOverwrites(t *testing.T) { function TestRemoveTagNoEffectOnMissingTags (line 66) | func TestRemoveTagNoEffectOnMissingTags(t *testing.T) { function TestGetTag (line 78) | func TestGetTag(t *testing.T) { function TestHasField (line 95) | func TestHasField(t *testing.T) { function TestAddFieldOverwrites (line 105) | func TestAddFieldOverwrites(t *testing.T) { function TestAddFieldChangesType (line 118) | func TestAddFieldChangesType(t *testing.T) { function TestRemoveFieldNoEffectOnMissingFields (line 131) | func TestRemoveFieldNoEffectOnMissingFields(t *testing.T) { function TestGetField (line 143) | func TestGetField(t *testing.T) { function TestTagList_Sorted (line 160) | func TestTagList_Sorted(t *testing.T) { function TestEquals (line 173) | func TestEquals(t *testing.T) { function TestHashID (line 204) | func TestHashID(t *testing.T) { function TestHashID_Consistency (line 237) | func TestHashID_Consistency(t *testing.T) { function TestHashID_Delimiting (line 270) | func TestHashID_Delimiting(t *testing.T) { function TestSetName (line 296) | func TestSetName(t *testing.T) { function TestAddPrefix (line 302) | func TestAddPrefix(t *testing.T) { function TestAddSuffix (line 310) | func TestAddSuffix(t *testing.T) { function TestValueType (line 318) | func TestValueType(t *testing.T) { FILE: metric/series_grouper.go function NewSeriesGrouper (line 23) | func NewSeriesGrouper() *SeriesGrouper { type SeriesGrouper (line 31) | type SeriesGrouper struct method Add (line 39) | func (g *SeriesGrouper) Add( method AddMetric (line 65) | func (g *SeriesGrouper) AddMetric( method Metrics (line 82) | func (g *SeriesGrouper) Metrics() []telegraf.Metric { function groupID (line 86) | func groupID(seed maphash.Seed, measurement string, taglist []*telegraf.... FILE: metric/series_grouper_test.go function BenchmarkGroupID (line 33) | func BenchmarkGroupID(b *testing.B) { FILE: metric/tracking.go function WithTracking (line 16) | func WithTracking(metric telegraf.Metric, fn NotifyFunc) (telegraf.Metri... function WithGroupTracking (line 22) | func WithGroupTracking(metric []telegraf.Metric, fn NotifyFunc) ([]teleg... function newTrackingID (line 31) | func newTrackingID() telegraf.TrackingID { type trackingData (line 35) | type trackingData struct method incr (line 44) | func (d *trackingData) incr() { method RefCount (line 48) | func (d *trackingData) RefCount() int32 { method decr (line 52) | func (d *trackingData) decr() int32 { method accept (line 56) | func (d *trackingData) accept() { method reject (line 60) | func (d *trackingData) reject() { method notify (line 64) | func (d *trackingData) notify() { method ID (line 189) | func (d *trackingData) ID() telegraf.TrackingID { type trackingMetric (line 74) | type trackingMetric struct method Copy (line 125) | func (m *trackingMetric) Copy() telegraf.Metric { method Accept (line 133) | func (m *trackingMetric) Accept() { method Reject (line 138) | func (m *trackingMetric) Reject() { method Drop (line 143) | func (m *trackingMetric) Drop() { method decr (line 147) | func (m *trackingMetric) decr() { method TrackingID (line 162) | func (m *trackingMetric) TrackingID() telegraf.TrackingID { method TrackingData (line 166) | func (m *trackingMetric) TrackingData() telegraf.TrackingData { method Unwrap (line 171) | func (m *trackingMetric) Unwrap() telegraf.Metric { function newTrackingMetric (line 79) | func newTrackingMetric(metric telegraf.Metric, fn NotifyFunc) (telegraf.... function newTrackingMetricGroup (line 97) | func newTrackingMetricGroup(group []telegraf.Metric, fn NotifyFunc) ([]t... type deliveryInfo (line 175) | type deliveryInfo struct method ID (line 181) | func (r *deliveryInfo) ID() telegraf.TrackingID { method Delivered (line 185) | func (r *deliveryInfo) Delivered() bool { FILE: metric/tracking_test.go function mustMetric (line 13) | func mustMetric( type deliveries (line 24) | type deliveries struct method onDelivery (line 28) | func (d *deliveries) onDelivery(info telegraf.DeliveryInfo) { function TestNewTrackingID (line 32) | func TestNewTrackingID(t *testing.T) { function TestTracking (line 69) | func TestTracking(t *testing.T) { function TestGroupTracking (line 177) | func TestGroupTracking(t *testing.T) { FILE: migrations/common/filter_options.go type FilterOptions (line 3) | type FilterOptions struct FILE: migrations/common/input_options.go type InputOptions (line 3) | type InputOptions struct method Migrate (line 31) | func (io *InputOptions) Migrate() { FILE: migrations/common/output_options.go type OutputOptions (line 3) | type OutputOptions struct method Migrate (line 23) | func (oo *OutputOptions) Migrate() { FILE: migrations/general_common_tls/migration.go function migrate (line 13) | func migrate(category, name string, tbl *ast.Table) ([]byte, string, err... function init (line 80) | func init() { FILE: migrations/general_common_tls/migration_test.go function TestNoMigration (line 17) | func TestNoMigration(t *testing.T) { function TestConflict (line 104) | func TestConflict(t *testing.T) { function TestCases (line 166) | func TestCases(t *testing.T) { type MockupInputPlugin (line 217) | type MockupInputPlugin struct method SampleConfig (line 223) | func (*MockupInputPlugin) SampleConfig() string { method Gather (line 226) | func (*MockupInputPlugin) Gather(telegraf.Accumulator) error { FILE: migrations/general_metricfilter/migration.go function migrate (line 14) | func migrate(category, name string, tbl *ast.Table) ([]byte, string, err... function init (line 110) | func init() { FILE: migrations/general_metricfilter/migration_test.go function TestNoMigration (line 16) | func TestNoMigration(t *testing.T) { function TestCases (line 35) | func TestCases(t *testing.T) { type MockupInputPlugin (line 86) | type MockupInputPlugin struct method SampleConfig (line 91) | func (*MockupInputPlugin) SampleConfig() string { method Gather (line 94) | func (*MockupInputPlugin) Gather(telegraf.Accumulator) error { FILE: migrations/global_agent/migration.go function migrate (line 13) | func migrate(name string, tbl *ast.Table) ([]byte, string, error) { function init (line 73) | func init() { FILE: migrations/global_agent/migration_test.go function TestNoMigration (line 14) | func TestNoMigration(t *testing.T) { function TestLogTargetEventlogCollision (line 45) | func TestLogTargetEventlogCollision(t *testing.T) { function TestCases (line 60) | func TestCases(t *testing.T) { FILE: migrations/inputs_KNXListener/migration.go function migrate (line 11) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 28) | func init() { FILE: migrations/inputs_KNXListener/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 29) | func TestCases(t *testing.T) { FILE: migrations/inputs_amqp_consumer/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 64) | func init() { FILE: migrations/inputs_amqp_consumer/migration_test.go function TestNoMigration (line 16) | func TestNoMigration(t *testing.T) { function TestCases (line 28) | func TestCases(t *testing.T) { FILE: migrations/inputs_cassandra/migration.go type cassandra (line 17) | type cassandra struct type metricConfig (line 25) | type metricConfig struct type jolokiaAgent (line 32) | type jolokiaAgent struct method fillCommon (line 193) | func (j *jolokiaAgent) fillCommon(o common.InputOptions) { function migrate (line 61) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 245) | func init() { FILE: migrations/inputs_cassandra/migration_test.go function TestCases (line 15) | func TestCases(t *testing.T) { FILE: migrations/inputs_cisco_telemetry_gnmi/migration.go function migrate (line 11) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 29) | func init() { FILE: migrations/inputs_cisco_telemetry_gnmi/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 29) | func TestCases(t *testing.T) { FILE: migrations/inputs_cloudwatch/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 68) | func init() { FILE: migrations/inputs_cloudwatch/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_consul/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 60) | func init() { FILE: migrations/inputs_consul/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestDataCentreConflict (line 27) | func TestDataCentreConflict(t *testing.T) { function TestCases (line 41) | func TestCases(t *testing.T) { FILE: migrations/inputs_disk/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 65) | func init() { FILE: migrations/inputs_disk/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 40) | func TestCases(t *testing.T) { FILE: migrations/inputs_docker/migration.go function migrate (line 15) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 149) | func init() { FILE: migrations/inputs_docker/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 39) | func TestCases(t *testing.T) { FILE: migrations/inputs_elasticsearch/migration.go function migrate (line 13) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 56) | func init() { FILE: migrations/inputs_elasticsearch/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestTimeoutConflict (line 27) | func TestTimeoutConflict(t *testing.T) { function TestCases (line 42) | func TestCases(t *testing.T) { FILE: migrations/inputs_filecount/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 65) | func init() { FILE: migrations/inputs_filecount/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_gnmi/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 71) | func init() { FILE: migrations/inputs_gnmi/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestEnableTLSConflict (line 27) | func TestEnableTLSConflict(t *testing.T) { function TestCases (line 50) | func TestCases(t *testing.T) { FILE: migrations/inputs_http/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 60) | func init() { FILE: migrations/inputs_http/migration_test.go function TestNoMigration (line 16) | func TestNoMigration(t *testing.T) { function TestBearerToken (line 28) | func TestBearerToken(t *testing.T) { function TestCases (line 45) | func TestCases(t *testing.T) { FILE: migrations/inputs_http_listener/migration.go function migrate (line 11) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 29) | func init() { FILE: migrations/inputs_http_listener/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 29) | func TestCases(t *testing.T) { FILE: migrations/inputs_http_listener_v2/migration.go function migrate (line 17) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 117) | func init() { FILE: migrations/inputs_http_listener_v2/migration_test.go function TestNoMigration (line 16) | func TestNoMigration(t *testing.T) { function TestPortConflict (line 28) | func TestPortConflict(t *testing.T) { function TestCases (line 42) | func TestCases(t *testing.T) { FILE: migrations/inputs_http_response/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 65) | func init() { FILE: migrations/inputs_http_response/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_httpjson/migration.go constant msg (line 15) | msg = ` type httpJSON (line 21) | type httpJSON struct function migrate (line 34) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 141) | func init() { FILE: migrations/inputs_httpjson/migration_test.go function TestCases (line 23) | func TestCases(t *testing.T) { function TestParsing (line 71) | func TestParsing(t *testing.T) { FILE: migrations/inputs_icinga2/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 65) | func init() { FILE: migrations/inputs_icinga2/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_influxdb_listener/migration.go function migrate (line 11) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 42) | func init() { FILE: migrations/inputs_influxdb_listener/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_internet_speed/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 61) | func init() { FILE: migrations/inputs_internet_speed/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestEnableFileDownloadConflict (line 27) | func TestEnableFileDownloadConflict(t *testing.T) { function TestCases (line 40) | func TestCases(t *testing.T) { FILE: migrations/inputs_io/migration.go function migrate (line 11) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 30) | func init() { FILE: migrations/inputs_io/migration_test.go function TestCases (line 15) | func TestCases(t *testing.T) { FILE: migrations/inputs_jolokia/migration.go type jolokia (line 15) | type jolokia struct type server (line 26) | type server struct type metric (line 34) | type metric struct type jolokiaAgent (line 42) | type jolokiaAgent struct method fillCommon (line 240) | func (j *jolokiaAgent) fillCommon(o common.InputOptions) { type jolokiaProxy (line 72) | type jolokiaProxy struct method fillCommon (line 295) | func (j *jolokiaProxy) fillCommon(o common.InputOptions) { type targetConfig (line 103) | type targetConfig struct type metricConfig (line 109) | type metricConfig struct function migrate (line 118) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 351) | func init() { FILE: migrations/inputs_jolokia/migration_test.go function TestCases (line 16) | func TestCases(t *testing.T) { FILE: migrations/inputs_kafka_consumer_legacy/migration.go constant msg (line 9) | msg = ` function migrate (line 14) | func migrate(_ *ast.Table) ([]byte, string, error) { function init (line 19) | func init() { FILE: migrations/inputs_kafka_consumer_legacy/migration_test.go function TestNoMigration (line 13) | func TestNoMigration(t *testing.T) { FILE: migrations/inputs_kube_inventory/migration.go function migrate (line 11) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 48) | func init() { FILE: migrations/inputs_kube_inventory/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_kubernetes/migration.go function migrate (line 11) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 48) | func init() { FILE: migrations/inputs_kubernetes/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_logparser/migration.go function migrate (line 13) | func migrate(tbl *ast.Table) ([]byte, string, error) { function getGrok (line 132) | func getGrok(logparserPlugin map[string]interface{}) (map[string]interfa... function init (line 147) | func init() { FILE: migrations/inputs_logparser/migration_test.go function TestCases (line 16) | func TestCases(t *testing.T) { FILE: migrations/inputs_mqtt_consumer/migration.go function migrate (line 11) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 41) | func init() { FILE: migrations/inputs_mqtt_consumer/migration_test.go function TestNoMigration (line 16) | func TestNoMigration(t *testing.T) { function TestCases (line 115) | func TestCases(t *testing.T) { FILE: migrations/inputs_nats_consumer/migration.go function migrate (line 11) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 41) | func init() { FILE: migrations/inputs_nats_consumer/migration_test.go function TestNoMigration (line 16) | func TestNoMigration(t *testing.T) { function TestCases (line 89) | func TestCases(t *testing.T) { FILE: migrations/inputs_nsq_consumer/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 65) | func init() { FILE: migrations/inputs_nsq_consumer/migration_test.go function TestNoMigration (line 16) | func TestNoMigration(t *testing.T) { function TestCases (line 28) | func TestCases(t *testing.T) { FILE: migrations/inputs_ntpq/migration.go function migrate (line 16) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 76) | func init() { FILE: migrations/inputs_ntpq/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_openldap/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 90) | func init() { FILE: migrations/inputs_openldap/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_procstat/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 112) | func init() { FILE: migrations/inputs_procstat/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_rabbitmq/migration.go function migrate (line 15) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 100) | func init() { FILE: migrations/inputs_rabbitmq/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestNameConflict (line 27) | func TestNameConflict(t *testing.T) { function TestCases (line 50) | func TestCases(t *testing.T) { FILE: migrations/inputs_sflow/migration.go constant msg (line 13) | msg = ` type sflow (line 19) | type sflow struct function migrate (line 26) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 66) | func init() { FILE: migrations/inputs_sflow/migration_test.go function TestCases (line 16) | func TestCases(t *testing.T) { FILE: migrations/inputs_smart/migration.go function migrate (line 12) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 43) | func init() { FILE: migrations/inputs_smart/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestPathConflict (line 27) | func TestPathConflict(t *testing.T) { function TestCases (line 41) | func TestCases(t *testing.T) { FILE: migrations/inputs_snmp_legacy/migration.go constant msg (line 9) | msg = ` function migrate (line 14) | func migrate(_ *ast.Table) ([]byte, string, error) { function init (line 19) | func init() { FILE: migrations/inputs_snmp_legacy/migration_test.go function TestNoMigration (line 13) | func TestNoMigration(t *testing.T) { FILE: migrations/inputs_sqlserver/migration.go function migrate (line 11) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 74) | func init() { FILE: migrations/inputs_sqlserver/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_statsd/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 70) | func init() { FILE: migrations/inputs_statsd/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/inputs_tcp_listener/migration.go constant allowPendingMessagesMsg (line 12) | allowPendingMessagesMsg = ` type tcpListener (line 18) | type tcpListener function migrate (line 21) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 65) | func init() { FILE: migrations/inputs_tcp_listener/migration_test.go function TestCases (line 16) | func TestCases(t *testing.T) { FILE: migrations/inputs_udp_listener/migration.go constant allowPendingMessagesMsg (line 12) | allowPendingMessagesMsg = ` constant udpPacketSizeMsg (line 17) | udpPacketSizeMsg = ` type udpListener (line 22) | type udpListener function migrate (line 25) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 71) | func init() { FILE: migrations/inputs_udp_listener/migration_test.go function TestCases (line 16) | func TestCases(t *testing.T) { FILE: migrations/inputs_vsphere/migration.go function migrate (line 11) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 41) | func init() { FILE: migrations/inputs_vsphere/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/outputs_amqp/migration.go constant messagePrefix (line 10) | messagePrefix = "could not migrate one or more options from the 'outputs... function migrate (line 12) | func migrate(tbl *ast.Table) ([]byte, string, error) { function getHeaders (line 77) | func getHeaders(plugin map[string]interface{}) map[string]string { function getBrokers (line 88) | func getBrokers(plugin map[string]interface{}) []interface{} { function init (line 100) | func init() { FILE: migrations/outputs_amqp/migration_test.go function TestCases (line 16) | func TestCases(t *testing.T) { FILE: migrations/outputs_influxdb/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 72) | func init() { FILE: migrations/outputs_influxdb/migration_test.go function TestNoMigration (line 15) | func TestNoMigration(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/outputs_kinesis/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function getPartition (line 102) | func getPartition(plugin map[string]interface{}) (map[string]interface{}... function init (line 120) | func init() { FILE: migrations/outputs_kinesis/migration_test.go function TestPartitionKeyConflict (line 16) | func TestPartitionKeyConflict(t *testing.T) { function TestPartitionMethodConflict (line 31) | func TestPartitionMethodConflict(t *testing.T) { function TestCases (line 46) | func TestCases(t *testing.T) { FILE: migrations/outputs_librato/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 57) | func init() { FILE: migrations/outputs_librato/migration_test.go function TestCases (line 15) | func TestCases(t *testing.T) { FILE: migrations/outputs_mqtt/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 64) | func init() { FILE: migrations/outputs_mqtt/migration_test.go function TestNoMigration (line 16) | func TestNoMigration(t *testing.T) { function TestCases (line 28) | func TestCases(t *testing.T) { FILE: migrations/outputs_remotefile/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 59) | func init() { FILE: migrations/outputs_remotefile/migration_test.go function TestCases (line 16) | func TestCases(t *testing.T) { FILE: migrations/outputs_riemann_legacy/migration.go type riemannLegacy (line 12) | type riemannLegacy struct type riemann (line 20) | type riemann struct method fillCommon (line 65) | func (j *riemann) fillCommon(o common.OutputOptions) { function migrate (line 38) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 104) | func init() { FILE: migrations/outputs_riemann_legacy/migration_test.go function TestCases (line 15) | func TestCases(t *testing.T) { FILE: migrations/outputs_wavefront/migration.go function migrate (line 14) | func migrate(tbl *ast.Table) ([]byte, string, error) { function init (line 78) | func init() { FILE: migrations/outputs_wavefront/migration_test.go function TestCannotMigrateStringToNumber (line 15) | func TestCannotMigrateStringToNumber(t *testing.T) { function TestCases (line 27) | func TestCases(t *testing.T) { FILE: migrations/registry.go type PluginMigrationFunc (line 12) | type PluginMigrationFunc function AddPluginMigration (line 16) | func AddPluginMigration(name string, f PluginMigrationFunc) { type PluginOptionMigrationFunc (line 23) | type PluginOptionMigrationFunc function AddPluginOptionMigration (line 27) | func AddPluginOptionMigration(name string, f PluginOptionMigrationFunc) { type GeneralMigrationFunc (line 34) | type GeneralMigrationFunc function AddGeneralMigration (line 38) | func AddGeneralMigration(f GeneralMigrationFunc) { type GlobalMigrationFunc (line 42) | type GlobalMigrationFunc function AddGlobalMigration (line 46) | func AddGlobalMigration(f GlobalMigrationFunc) { FILE: migrations/utils.go type pluginTOMLStruct (line 7) | type pluginTOMLStruct method Add (line 17) | func (p *pluginTOMLStruct) Add(category, name string, plugin interface... function CreateTOMLStruct (line 9) | func CreateTOMLStruct(category, name string) pluginTOMLStruct { function AsStringSlice (line 22) | func AsStringSlice(raw interface{}) ([]string, error) { FILE: models/buffer.go type Transaction (line 20) | type Transaction struct method AcceptAll (line 37) | func (tx *Transaction) AcceptAll() { method KeepAll (line 44) | func (*Transaction) KeepAll() {} method InferKeep (line 46) | func (tx *Transaction) InferKeep() []int { type Buffer (line 64) | type Buffer interface type BufferStats (line 88) | type BufferStats struct method metricAdded (line 159) | func (b *BufferStats) metricAdded(count int64) { method metricWritten (line 163) | func (b *BufferStats) metricWritten(m telegraf.Metric) { method metricRejected (line 169) | func (b *BufferStats) metricRejected(m telegraf.Metric) { method metricDropped (line 175) | func (b *BufferStats) metricDropped(m telegraf.Metric) { function NewBuffer (line 100) | func NewBuffer(name, id, alias string, capacity int, strategy, path stri... function NewBufferStats (line 121) | func NewBufferStats(tags map[string]string, capacity int) BufferStats { FILE: models/buffer_disk.go type DiskBuffer (line 18) | type DiskBuffer struct method Len (line 59) | func (b *DiskBuffer) Len() int { method length (line 65) | func (b *DiskBuffer) length() int { method entries (line 69) | func (b *DiskBuffer) entries() int { method readIndex (line 77) | func (b *DiskBuffer) readIndex() uint64 { method writeIndex (line 86) | func (b *DiskBuffer) writeIndex() uint64 { method Add (line 94) | func (b *DiskBuffer) Add(metrics ...telegraf.Metric) int { method BeginTransaction (line 122) | func (b *DiskBuffer) BeginTransaction(batchSize int) *Transaction { method EndTransaction (line 184) | func (b *DiskBuffer) EndTransaction(tx *Transaction) { method Stats (line 257) | func (b *DiskBuffer) Stats() BufferStats { method Close (line 261) | func (b *DiskBuffer) Close() error { method resetBatch (line 268) | func (b *DiskBuffer) resetBatch() { function NewDiskBuffer (line 38) | func NewDiskBuffer(id, path string, stats BufferStats, diskSync bool) (*... FILE: models/buffer_disk_test.go function TestDiskBufferTruncate (line 19) | func TestDiskBufferTruncate(t *testing.T) { function TestDiskBufferEmptyReuse (line 77) | func TestDiskBufferEmptyReuse(t *testing.T) { function TestDiskBufferEmptyClose (line 125) | func TestDiskBufferEmptyClose(t *testing.T) { function TestDiskBufferRetainsTrackingInformation (line 180) | func TestDiskBufferRetainsTrackingInformation(t *testing.T) { function TestDiskBufferTrackingDroppedFromOldWal (line 200) | func TestDiskBufferTrackingDroppedFromOldWal(t *testing.T) { function TestDiskBufferTrackingOnOutputOutage (line 267) | func TestDiskBufferTrackingOnOutputOutage(t *testing.T) { FILE: models/buffer_mem.go type MemoryBuffer (line 10) | type MemoryBuffer struct method Len (line 32) | func (b *MemoryBuffer) Len() int { method Add (line 39) | func (b *MemoryBuffer) Add(metrics ...telegraf.Metric) int { method BeginTransaction (line 54) | func (b *MemoryBuffer) BeginTransaction(batchSize int) *Transaction { method EndTransaction (line 78) | func (b *MemoryBuffer) EndTransaction(tx *Transaction) { method Close (line 122) | func (*MemoryBuffer) Close() error { method Stats (line 126) | func (b *MemoryBuffer) Stats() BufferStats { method length (line 130) | func (b *MemoryBuffer) length() int { method addMetric (line 134) | func (b *MemoryBuffer) addMetric(m telegraf.Metric) int { method next (line 161) | func (b *MemoryBuffer) next(index int) int { method nextby (line 170) | func (b *MemoryBuffer) nextby(index, count int) int { method prevby (line 177) | func (b *MemoryBuffer) prevby(index, count int) int { method resetBatch (line 187) | func (b *MemoryBuffer) resetBatch() { function NewMemoryBuffer (line 24) | func NewMemoryBuffer(capacity int, stats BufferStats) (*MemoryBuffer, er... FILE: models/buffer_mem_test.go function TestMemoryBufferAcceptCallsMetricAccept (line 12) | func TestMemoryBufferAcceptCallsMetricAccept(t *testing.T) { function BenchmarkMemoryBufferAddMetrics (line 34) | func BenchmarkMemoryBufferAddMetrics(b *testing.B) { FILE: models/buffer_suite_test.go type BufferSuiteTest (line 15) | type BufferSuiteTest struct method SetupTest (line 23) | func (s *BufferSuiteTest) SetupTest() { method TearDownTest (line 35) | func (s *BufferSuiteTest) TearDownTest() { method newTestBuffer (line 50) | func (s *BufferSuiteTest) newTestBuffer(capacity int) Buffer { method TestBufferLenEmpty (line 61) | func (s *BufferSuiteTest) TestBufferLenEmpty() { method TestBufferLenOne (line 68) | func (s *BufferSuiteTest) TestBufferLenOne() { method TestBufferLenFull (line 77) | func (s *BufferSuiteTest) TestBufferLenFull() { method TestBufferLenOverfill (line 86) | func (s *BufferSuiteTest) TestBufferLenOverfill() { method TestBufferBatchLenZero (line 99) | func (s *BufferSuiteTest) TestBufferBatchLenZero() { method TestBufferBatchLenBufferEmpty (line 107) | func (s *BufferSuiteTest) TestBufferBatchLenBufferEmpty() { method TestBufferBatchLenUnderfill (line 115) | func (s *BufferSuiteTest) TestBufferBatchLenUnderfill() { method TestBufferBatchLenFill (line 125) | func (s *BufferSuiteTest) TestBufferBatchLenFill() { method TestBufferBatchLenExact (line 135) | func (s *BufferSuiteTest) TestBufferBatchLenExact() { method TestBufferBatchLenLargerThanBuffer (line 145) | func (s *BufferSuiteTest) TestBufferBatchLenLargerThanBuffer() { method TestBufferBatchWrap (line 155) | func (s *BufferSuiteTest) TestBufferBatchWrap() { method TestBufferBatchLatest (line 169) | func (s *BufferSuiteTest) TestBufferBatchLatest() { method TestBufferBatchLatestWrap (line 185) | func (s *BufferSuiteTest) TestBufferBatchLatestWrap() { method TestBufferMultipleBatch (line 207) | func (s *BufferSuiteTest) TestBufferMultipleBatch() { method TestBufferRejectWithRoom (line 237) | func (s *BufferSuiteTest) TestBufferRejectWithRoom() { method TestBufferRejectNothingNewFull (line 263) | func (s *BufferSuiteTest) TestBufferRejectNothingNewFull() { method TestBufferRejectNoRoom (line 289) | func (s *BufferSuiteTest) TestBufferRejectNoRoom() { method TestBufferRejectRoomExact (line 323) | func (s *BufferSuiteTest) TestBufferRejectRoomExact() { method TestBufferRejectRoomOverwriteOld (line 350) | func (s *BufferSuiteTest) TestBufferRejectRoomOverwriteOld() { method TestBufferRejectPartialRoom (line 382) | func (s *BufferSuiteTest) TestBufferRejectPartialRoom() { method TestBufferRejectNewMetricsWrapped (line 414) | func (s *BufferSuiteTest) TestBufferRejectNewMetricsWrapped() { method TestBufferRejectWrapped (line 464) | func (s *BufferSuiteTest) TestBufferRejectWrapped() { method TestBufferRejectAdjustFirst (line 502) | func (s *BufferSuiteTest) TestBufferRejectAdjustFirst() { method TestBufferAddDropsOverwrittenMetrics (line 561) | func (s *BufferSuiteTest) TestBufferAddDropsOverwrittenMetrics() { method TestBufferAcceptRemovesBatch (line 577) | func (s *BufferSuiteTest) TestBufferAcceptRemovesBatch() { method TestBufferRejectLeavesBatch (line 589) | func (s *BufferSuiteTest) TestBufferRejectLeavesBatch() { method TestBufferAcceptWritesOverwrittenBatch (line 601) | func (s *BufferSuiteTest) TestBufferAcceptWritesOverwrittenBatch() { method TestBufferBatchRejectDropsOverwrittenBatch (line 616) | func (s *BufferSuiteTest) TestBufferBatchRejectDropsOverwrittenBatch() { method TestBufferMetricsOverwriteBatchAccept (line 635) | func (s *BufferSuiteTest) TestBufferMetricsOverwriteBatchAccept() { method TestBufferMetricsOverwriteBatchReject (line 649) | func (s *BufferSuiteTest) TestBufferMetricsOverwriteBatchReject() { method TestBufferMetricsBatchAcceptRemoved (line 667) | func (s *BufferSuiteTest) TestBufferMetricsBatchAcceptRemoved() { method TestBufferWrapWithBatch (line 685) | func (s *BufferSuiteTest) TestBufferWrapWithBatch() { method TestBufferBatchNotRemoved (line 701) | func (s *BufferSuiteTest) TestBufferBatchNotRemoved() { method TestBufferBatchRejectAcceptNoop (line 712) | func (s *BufferSuiteTest) TestBufferBatchRejectAcceptNoop() { method TestBufferAddCallsMetricRejectWhenNoBatch (line 726) | func (s *BufferSuiteTest) TestBufferAddCallsMetricRejectWhenNoBatch() { method TestBufferAddCallsMetricRejectWhenNotInBatch (line 746) | func (s *BufferSuiteTest) TestBufferAddCallsMetricRejectWhenNotInBatch... method TestBufferRejectCallsMetricRejectWithOverwritten (line 770) | func (s *BufferSuiteTest) TestBufferRejectCallsMetricRejectWithOverwri... method TestBufferAddOverwriteAndReject (line 794) | func (s *BufferSuiteTest) TestBufferAddOverwriteAndReject() { method TestBufferAddOverwriteAndRejectOffset (line 821) | func (s *BufferSuiteTest) TestBufferAddOverwriteAndRejectOffset() { method TestBufferRejectEmptyBatch (line 858) | func (s *BufferSuiteTest) TestBufferRejectEmptyBatch() { method TestBufferFlushedPartial (line 874) | func (s *BufferSuiteTest) TestBufferFlushedPartial() { method TestBufferFlushedFull (line 889) | func (s *BufferSuiteTest) TestBufferFlushedFull() { method TestPartialWriteBackToFront (line 903) | func (s *BufferSuiteTest) TestPartialWriteBackToFront() { function TestMemoryBufferSuite (line 42) | func TestMemoryBufferSuite(t *testing.T) { function TestDiskBufferSuite (line 46) | func TestDiskBufferSuite(t *testing.T) { type mockMetric (line 937) | type mockMetric struct method Accept (line 944) | func (m *mockMetric) Accept() { method Reject (line 950) | func (m *mockMetric) Reject() { method Drop (line 956) | func (m *mockMetric) Drop() { FILE: models/common.go function logName (line 11) | func logName(pluginType, name, alias string) string { function SetLoggerOnPlugin (line 18) | func SetLoggerOnPlugin(i interface{}, logger telegraf.Logger) { function SetStatisticsOnPlugin (line 41) | func SetStatisticsOnPlugin(plugin interface{}, logger telegraf.Logger, t... FILE: models/filter.go type TagFilter (line 19) | type TagFilter struct method Compile (line 25) | func (tf *TagFilter) Compile() error { type Filter (line 35) | type Filter struct method Compile (line 67) | func (f *Filter) Compile() error { method Select (line 131) | func (f *Filter) Select(metric telegraf.Metric) (bool, error) { method Modify (line 165) | func (f *Filter) Modify(metric telegraf.Metric) { method IsActive (line 175) | func (f *Filter) IsActive() bool { method shouldNamePass (line 181) | func (f *Filter) shouldNamePass(key string) bool { method shouldTagsPass (line 203) | func (f *Filter) shouldTagsPass(tags []*telegraf.Tag) bool { method filterFields (line 208) | func (f *Filter) filterFields(metric telegraf.Metric) { method filterTags (line 222) | func (f *Filter) filterTags(metric telegraf.Metric) { method compileMetricFilter (line 236) | func (f *Filter) compileMetricFilter() error { function ShouldPassFilters (line 287) | func ShouldPassFilters(include, exclude filter.Filter, key string) bool { function ShouldTagsPass (line 298) | func ShouldTagsPass(passFilters, dropFilters []TagFilter, tags []*telegr... FILE: models/filter_test.go function TestFilterApplyEmpty (line 13) | func TestFilterApplyEmpty(t *testing.T) { function TestFilterApplyTagsDontPass (line 27) | func TestFilterApplyTagsDontPass(t *testing.T) { function TestFilterApplyDeleteFields (line 50) | func TestFilterApplyDeleteFields(t *testing.T) { function TestFilterApplyDeleteAllFields (line 72) | func TestFilterApplyDeleteAllFields(t *testing.T) { function TestFilterEmpty (line 94) | func TestFilterEmpty(t *testing.T) { function TestFilterNamePass (line 114) | func TestFilterNamePass(t *testing.T) { function TestFilterNamePass_WithSeparator (line 148) | func TestFilterNamePass_WithSeparator(t *testing.T) { function TestFilterNameDrop (line 184) | func TestFilterNameDrop(t *testing.T) { function TestFilterNameDrop_WithSeparator (line 218) | func TestFilterNameDrop_WithSeparator(t *testing.T) { function TestFilterFieldInclude (line 254) | func TestFilterFieldInclude(t *testing.T) { function TestFilterFieldExclude (line 284) | func TestFilterFieldExclude(t *testing.T) { function TestFilterTagPass (line 314) | func TestFilterTagPass(t *testing.T) { function TestFilterTagDrop (line 358) | func TestFilterTagDrop(t *testing.T) { function TestFilterTagsNoMatches (line 402) | func TestFilterTagsNoMatches(t *testing.T) { function TestFilterTagsMatches (line 430) | func TestFilterTagsMatches(t *testing.T) { function TestFilterNamePassAndDrop (line 469) | func TestFilterNamePassAndDrop(t *testing.T) { function TestFilterFieldIncludeAndExclude (line 488) | func TestFilterFieldIncludeAndExclude(t *testing.T) { function TestFilterTagsPassAndDrop (line 507) | func TestFilterTagsPassAndDrop(t *testing.T) { function TestFilterMetricPass (line 546) | func TestFilterMetricPass(t *testing.T) { function BenchmarkFilter (line 648) | func BenchmarkFilter(b *testing.B) { FILE: models/makemetric.go function makeMetric (line 8) | func makeMetric(metric telegraf.Metric, nameOverride, namePrefix, nameSu... FILE: models/running_aggregator.go type RunningAggregator (line 13) | type RunningAggregator struct method LogName (line 93) | func (r *RunningAggregator) LogName() string { method Init (line 97) | func (r *RunningAggregator) Init() error { method ID (line 107) | func (r *RunningAggregator) ID() string { method Period (line 114) | func (r *RunningAggregator) Period() time.Duration { method EndPeriod (line 118) | func (r *RunningAggregator) EndPeriod() time.Time { method UpdateWindow (line 122) | func (r *RunningAggregator) UpdateWindow(start, until time.Time) { method MakeMetric (line 128) | func (r *RunningAggregator) MakeMetric(telegrafMetric telegraf.Metric)... method Add (line 144) | func (r *RunningAggregator) Add(m telegraf.Metric) bool { method Push (line 178) | func (r *RunningAggregator) Push(acc telegraf.Accumulator) { method Log (line 204) | func (r *RunningAggregator) Log() telegraf.Logger { function NewRunningAggregator (line 27) | func NewRunningAggregator(aggregator telegraf.Aggregator, config *Aggreg... type AggregatorConfig (line 75) | type AggregatorConfig struct FILE: models/running_aggregator_test.go function TestRunningAggregatorAdd (line 14) | func TestRunningAggregatorAdd(t *testing.T) { function TestRunningAggregatorAddMetricsOutsideCurrentPeriod (line 43) | func TestRunningAggregatorAddMetricsOutsideCurrentPeriod(t *testing.T) { function TestRunningAggregatorAddMetricsOutsideCurrentPeriodWithGrace (line 93) | func TestRunningAggregatorAddMetricsOutsideCurrentPeriodWithGrace(t *tes... function TestRunningAggregatorAddAndPushOnePeriod (line 155) | func TestRunningAggregatorAddAndPushOnePeriod(t *testing.T) { function TestRunningAggregatorAddDropOriginal (line 184) | func TestRunningAggregatorAddDropOriginal(t *testing.T) { function TestRunningAggregatorAddDoesNotModifyMetric (line 217) | func TestRunningAggregatorAddDoesNotModifyMetric(t *testing.T) { type mockAggregator (line 243) | type mockAggregator struct method SampleConfig (line 247) | func (*mockAggregator) SampleConfig() string { method Reset (line 251) | func (t *mockAggregator) Reset() { method Push (line 255) | func (t *mockAggregator) Push(acc telegraf.Accumulator) { method Add (line 262) | func (t *mockAggregator) Add(in telegraf.Metric) { FILE: models/running_input.go type RunningInput (line 20) | type RunningInput struct method metricFiltered (line 110) | func (*RunningInput) metricFiltered(metric telegraf.Metric) { method LogName (line 114) | func (r *RunningInput) LogName() string { method Init (line 118) | func (r *RunningInput) Init() error { method Start (line 139) | func (r *RunningInput) Start(acc telegraf.Accumulator) error { method Probe (line 178) | func (r *RunningInput) Probe() error { method Stop (line 186) | func (r *RunningInput) Stop() { method ID (line 192) | func (r *RunningInput) ID() string { method MakeMetric (line 199) | func (r *RunningInput) MakeMetric(metric telegraf.Metric) telegraf.Met... method Gather (line 246) | func (r *RunningInput) Gather(acc telegraf.Accumulator) error { method SetDefaultTags (line 271) | func (r *RunningInput) SetDefaultTags(tags map[string]string) { method Log (line 275) | func (r *RunningInput) Log() telegraf.Logger { method IncrGatherTimeouts (line 279) | func (r *RunningInput) IncrGatherTimeouts() { function NewRunningInput (line 39) | func NewRunningInput(input telegraf.Input, config *InputConfig) *Running... type InputConfig (line 88) | type InputConfig struct FILE: models/running_input_test.go function TestRunningInputMakeMetricFilterAfterApplyingGlobalTags (line 16) | func TestRunningInputMakeMetricFilterAfterApplyingGlobalTags(t *testing.... function TestRunningInputMakeMetricNoFields (line 47) | func TestRunningInputMakeMetricNoFields(t *testing.T) { function TestRunningInputMakeMetricNilFields (line 63) | func TestRunningInputMakeMetricNilFields(t *testing.T) { function TestRunningInputMakeMetricWithPluginTags (line 90) | func TestRunningInputMakeMetricWithPluginTags(t *testing.T) { function TestRunningInputMakeMetricFilteredOut (line 120) | func TestRunningInputMakeMetricFilteredOut(t *testing.T) { function TestRunningInputMakeMetricWithDaemonTags (line 143) | func TestRunningInputMakeMetricWithDaemonTags(t *testing.T) { function TestRunningInputMakeMetricNameOverride (line 172) | func TestRunningInputMakeMetricNameOverride(t *testing.T) { function TestRunningInputMakeMetricNamePrefix (line 197) | func TestRunningInputMakeMetricNamePrefix(t *testing.T) { function TestRunningInputMakeMetricNameSuffix (line 222) | func TestRunningInputMakeMetricNameSuffix(t *testing.T) { function TestRunningInputMetricErrorCounters (line 247) | func TestRunningInputMetricErrorCounters(t *testing.T) { function TestRunningInputMakeMetricWithAlwaysKeepingPluginTagsDisabled (line 276) | func TestRunningInputMakeMetricWithAlwaysKeepingPluginTagsDisabled(t *te... function TestRunningInputMakeMetricWithAlwaysKeepingLocalPluginTagsEnabled (line 313) | func TestRunningInputMakeMetricWithAlwaysKeepingLocalPluginTagsEnabled(t... function TestRunningInputMakeMetricWithAlwaysKeepingGlobalPluginTagsEnabled (line 352) | func TestRunningInputMakeMetricWithAlwaysKeepingGlobalPluginTagsEnabled(... function TestRunningInputMakeMetricWithAlwaysKeepingPluginTagsEnabled (line 391) | func TestRunningInputMakeMetricWithAlwaysKeepingPluginTagsEnabled(t *tes... function TestRunningInputMakeMetricWithGatherMetricTimeSource (line 432) | func TestRunningInputMakeMetricWithGatherMetricTimeSource(t *testing.T) { function TestRunningInputMakeMetricWithGatherStartTimeSource (line 453) | func TestRunningInputMakeMetricWithGatherStartTimeSource(t *testing.T) { function TestRunningInputMakeMetricWithGatherEndTimeSource (line 474) | func TestRunningInputMakeMetricWithGatherEndTimeSource(t *testing.T) { function TestRunningInputProbingFailure (line 491) | func TestRunningInputProbingFailure(t *testing.T) { function TestRunningInputProbingSuccess (line 502) | func TestRunningInputProbingSuccess(t *testing.T) { type mockInput (line 536) | type mockInput struct method SampleConfig (line 540) | func (*mockInput) SampleConfig() string { method Probe (line 544) | func (m *mockInput) Probe() error { method Gather (line 548) | func (*mockInput) Gather(telegraf.Accumulator) error { FILE: models/running_output.go constant DefaultMetricBatchSize (line 18) | DefaultMetricBatchSize = 1000 constant DefaultMetricBufferLimit (line 21) | DefaultMetricBufferLimit = 10000 type OutputConfig (line 25) | type OutputConfig struct type RunningOutput (line 50) | type RunningOutput struct method LogName (line 142) | func (r *RunningOutput) LogName() string { method metricFiltered (line 146) | func (r *RunningOutput) metricFiltered(metric telegraf.Metric) { method ID (line 151) | func (r *RunningOutput) ID() string { method Init (line 158) | func (r *RunningOutput) Init() error { method Connect (line 174) | func (r *RunningOutput) Connect() error { method Close (line 205) | func (r *RunningOutput) Close() { method AddMetric (line 217) | func (r *RunningOutput) AddMetric(metric telegraf.Metric) { method AddMetricNoCopy (line 231) | func (r *RunningOutput) AddMetricNoCopy(metric telegraf.Metric) { method add (line 243) | func (r *RunningOutput) add(metric telegraf.Metric) { method triggerBatchCheck (line 274) | func (r *RunningOutput) triggerBatchCheck() { method Write (line 294) | func (r *RunningOutput) Write() error { method WriteBatch (line 341) | func (r *RunningOutput) WriteBatch() error { method doTransaction (line 364) | func (r *RunningOutput) doTransaction() error { method writeMetrics (line 376) | func (r *RunningOutput) writeMetrics(metrics []telegraf.Metric) error { method updateTransaction (line 393) | func (r *RunningOutput) updateTransaction(tx *Transaction, err error) { method LogBufferStatus (line 418) | func (r *RunningOutput) LogBufferStatus() { method Log (line 427) | func (r *RunningOutput) Log() telegraf.Logger { method BufferLength (line 431) | func (r *RunningOutput) BufferLength() int { function NewRunningOutput (line 76) | func NewRunningOutput(output telegraf.Output, config *OutputConfig, batc... FILE: models/running_output_test.go function TestRunningOutputDropFilter (line 37) | func TestRunningOutputDropFilter(t *testing.T) { function TestRunningOutputPassFilter (line 62) | func TestRunningOutputPassFilter(t *testing.T) { function TestRunningOutputTagIncludeNoMatch (line 87) | func TestRunningOutputTagIncludeNoMatch(t *testing.T) { function TestRunningOutputTagExcludeMatch (line 108) | func TestRunningOutputTagExcludeMatch(t *testing.T) { function TestRunningOutputTagExcludeNoMatch (line 129) | func TestRunningOutputTagExcludeNoMatch(t *testing.T) { function TestRunningOutputTagIncludeMatch (line 150) | func TestRunningOutputTagIncludeMatch(t *testing.T) { function TestRunningOutputNameOverride (line 171) | func TestRunningOutputNameOverride(t *testing.T) { function TestRunningOutputNamePrefix (line 189) | func TestRunningOutputNamePrefix(t *testing.T) { function TestRunningOutputNameSuffix (line 207) | func TestRunningOutputNameSuffix(t *testing.T) { function TestRunningOutputDefault (line 225) | func TestRunningOutputDefault(t *testing.T) { function TestRunningOutputWriteFail (line 246) | func TestRunningOutputWriteFail(t *testing.T) { function TestRunningOutputWriteFailOrder (line 278) | func TestRunningOutputWriteFailOrder(t *testing.T) { function TestRunningOutputWriteFailOrder2 (line 316) | func TestRunningOutputWriteFailOrder2(t *testing.T) { function TestRunningOutputWriteFailOrder3 (line 379) | func TestRunningOutputWriteFailOrder3(t *testing.T) { function TestRunningOutputBufferFullyDrained (line 418) | func TestRunningOutputBufferFullyDrained(t *testing.T) { function TestRunningOutputBufferImmediateRestartOnContinuousWrite (line 500) | func TestRunningOutputBufferImmediateRestartOnContinuousWrite(t *testing... function TestRunningOutputNoRetriggerOnError (line 579) | func TestRunningOutputNoRetriggerOnError(t *testing.T) { function TestRunningOutputNoRetriggerOnSuccessfulPartialWriteError (line 641) | func TestRunningOutputNoRetriggerOnSuccessfulPartialWriteError(t *testin... function TestRunningOutputNoRetriggerOnUnsuccessfulPartialWriteError (line 716) | func TestRunningOutputNoRetriggerOnUnsuccessfulPartialWriteError(t *test... function TestRunningOutputInternalMetrics (line 781) | func TestRunningOutputInternalMetrics(t *testing.T) { function TestRunningOutputStartupBehaviorInvalid (line 826) | func TestRunningOutputStartupBehaviorInvalid(t *testing.T) { function TestRunningOutputRetryableStartupBehaviorDefault (line 840) | func TestRunningOutputRetryableStartupBehaviorDefault(t *testing.T) { function TestRunningOutputRetryableStartupBehaviorError (line 864) | func TestRunningOutputRetryableStartupBehaviorError(t *testing.T) { function TestRunningOutputRetryableStartupBehaviorRetry (line 889) | func TestRunningOutputRetryableStartupBehaviorRetry(t *testing.T) { function TestRunningOutputRetryableStartupBehaviorIgnore (line 930) | func TestRunningOutputRetryableStartupBehaviorIgnore(t *testing.T) { function TestRunningOutputNonRetryableStartupBehaviorDefault (line 959) | func TestRunningOutputNonRetryableStartupBehaviorDefault(t *testing.T) { function TestRunningOutputUntypedStartupBehaviorIgnore (line 991) | func TestRunningOutputUntypedStartupBehaviorIgnore(t *testing.T) { function TestRunningOutputPartiallyStarted (line 1020) | func TestRunningOutputPartiallyStarted(t *testing.T) { function TestRunningOutputWritePartialSuccess (line 1063) | func TestRunningOutputWritePartialSuccess(t *testing.T) { function TestRunningOutputWritePartialSuccessAndLoss (line 1102) | func TestRunningOutputWritePartialSuccessAndLoss(t *testing.T) { function TestRunningOutputWriteBatchPartialSuccess (line 1148) | func TestRunningOutputWriteBatchPartialSuccess(t *testing.T) { function TestRunningOutputWriteBatchPartialSuccessAndLoss (line 1187) | func TestRunningOutputWriteBatchPartialSuccessAndLoss(t *testing.T) { function BenchmarkRunningOutputAddWrite (line 1234) | func BenchmarkRunningOutputAddWrite(b *testing.B) { function BenchmarkRunningOutputAddWriteEvery100 (line 1248) | func BenchmarkRunningOutputAddWriteEvery100(b *testing.B) { function BenchmarkRunningOutputAddFailWrites (line 1264) | func BenchmarkRunningOutputAddFailWrites(b *testing.B) { type mockOutput (line 1275) | type mockOutput struct method Connect (line 1295) | func (m *mockOutput) Connect() error { method Close (line 1305) | func (*mockOutput) Close() error { method SampleConfig (line 1309) | func (*mockOutput) SampleConfig() string { method Write (line 1313) | func (m *mockOutput) Write(metrics []telegraf.Metric) error { method Metrics (line 1359) | func (m *mockOutput) Metrics() []telegraf.Metric { type perfOutput (line 1365) | type perfOutput struct method Connect (line 1370) | func (*perfOutput) Connect() error { method Close (line 1374) | func (*perfOutput) Close() error { method SampleConfig (line 1378) | func (*perfOutput) SampleConfig() string { method Write (line 1382) | func (m *perfOutput) Write([]telegraf.Metric) error { FILE: models/running_parsers.go type RunningParser (line 11) | type RunningParser struct method LogName (line 63) | func (r *RunningParser) LogName() string { method Init (line 67) | func (r *RunningParser) Init() error { method Parse (line 77) | func (r *RunningParser) Parse(buf []byte) ([]telegraf.Metric, error) { method ParseLine (line 87) | func (r *RunningParser) ParseLine(line string) (telegraf.Metric, error) { method SetDefaultTags (line 97) | func (r *RunningParser) SetDefaultTags(tags map[string]string) { method Log (line 101) | func (r *RunningParser) Log() telegraf.Logger { function NewRunningParser (line 20) | func NewRunningParser(parser telegraf.Parser, config *ParserConfig) *Run... type ParserConfig (line 55) | type ParserConfig struct FILE: models/running_processor.go type RunningProcessor (line 11) | type RunningProcessor struct method metricFiltered (line 62) | func (*RunningProcessor) metricFiltered(metric telegraf.Metric) { method Init (line 66) | func (rp *RunningProcessor) Init() error { method ID (line 76) | func (rp *RunningProcessor) ID() string { method Log (line 83) | func (rp *RunningProcessor) Log() telegraf.Logger { method LogName (line 87) | func (rp *RunningProcessor) LogName() string { method MakeMetric (line 91) | func (*RunningProcessor) MakeMetric(metric telegraf.Metric) telegraf.M... method Start (line 95) | func (rp *RunningProcessor) Start(acc telegraf.Accumulator) error { method Add (line 99) | func (rp *RunningProcessor) Add(m telegraf.Metric, acc telegraf.Accumu... method Stop (line 119) | func (rp *RunningProcessor) Stop() { type RunningProcessors (line 18) | type RunningProcessors method Len (line 20) | func (rp RunningProcessors) Len() int { return len(rp) } method Swap (line 21) | func (rp RunningProcessors) Swap(i, j int) { rp[i], rp[j] = rp[j]... method Less (line 22) | func (rp RunningProcessors) Less(i, j int) bool { return rp[i].Config.... type ProcessorConfig (line 25) | type ProcessorConfig struct function NewRunningProcessor (line 35) | func NewRunningProcessor(processor telegraf.StreamingProcessor, config *... FILE: models/running_processor_test.go function TestRunningProcessorInit (line 17) | func TestRunningProcessorInit(t *testing.T) { function TestRunningProcessorApply (line 26) | func TestRunningProcessorApply(t *testing.T) { function TestRunningProcessorOrder (line 186) | func TestRunningProcessorOrder(t *testing.T) { type mockProcessor (line 211) | type mockProcessor struct method SampleConfig (line 216) | func (*mockProcessor) SampleConfig() string { method Init (line 220) | func (p *mockProcessor) Init() error { method Apply (line 225) | func (p *mockProcessor) Apply(in ...telegraf.Metric) []telegraf.Metric { FILE: models/running_serializer.go type SerializerConfig (line 12) | type SerializerConfig struct type RunningSerializer (line 20) | type RunningSerializer struct method LogName (line 69) | func (r *RunningSerializer) LogName() string { method Init (line 73) | func (r *RunningSerializer) Init() error { method Serialize (line 83) | func (r *RunningSerializer) Serialize(metric telegraf.Metric) ([]byte,... method SerializeBatch (line 94) | func (r *RunningSerializer) SerializeBatch(metrics []telegraf.Metric) ... method Log (line 105) | func (r *RunningSerializer) Log() telegraf.Logger { function NewRunningSerializer (line 30) | func NewRunningSerializer(serializer telegraf.Serializer, config *Serial... FILE: output.go type Output (line 3) | type Output interface type AggregatingOutput (line 20) | type AggregatingOutput interface FILE: parser.go type Parser (line 4) | type Parser interface type ParserFunc (line 26) | type ParserFunc type ParserPlugin (line 30) | type ParserPlugin interface type ParserFuncPlugin (line 37) | type ParserFuncPlugin interface FILE: persister/persister.go type Persister (line 12) | type Persister struct method Init (line 18) | func (p *Persister) Init() error { method Register (line 24) | func (p *Persister) Register(id string, plugin telegraf.StatefulPlugin... method Load (line 33) | func (p *Persister) Load() error { method Store (line 72) | func (p *Persister) Store() error { FILE: plugin.go type DeprecationInfo (line 4) | type DeprecationInfo struct type Initializer (line 16) | type Initializer interface type PluginDescriber (line 26) | type PluginDescriber interface type PluginWithID (line 34) | type PluginWithID interface type StatefulPlugin (line 46) | type StatefulPlugin interface type ProbePlugin (line 62) | type ProbePlugin interface FILE: plugins/aggregators/basicstats/basicstats.go type BasicStats (line 16) | type BasicStats struct method SampleConfig (line 64) | func (*BasicStats) SampleConfig() string { method Init (line 68) | func (b *BasicStats) Init() error { method Add (line 74) | func (b *BasicStats) Add(in telegraf.Metric) { method Push (line 166) | func (b *BasicStats) Push(acc telegraf.Accumulator) { method Reset (line 230) | func (b *BasicStats) Reset() { method parseStats (line 235) | func (b *BasicStats) parseStats() *configuredStats { method initConfiguredStats (line 278) | func (b *BasicStats) initConfiguredStats() { type configuredStats (line 24) | type configuredStats struct type aggregate (line 42) | type aggregate struct type basicstats (line 48) | type basicstats struct function convert (line 302) | func convert(in interface{}) (float64, bool) { function newBasicStats (line 315) | func newBasicStats() *BasicStats { function init (line 321) | func init() { FILE: plugins/aggregators/basicstats/basicstats_test.go function BenchmarkApply (line 41) | func BenchmarkApply(b *testing.B) { function TestBasicStatsWithPeriod (line 53) | func TestBasicStatsWithPeriod(t *testing.T) { function TestBasicStatsDifferentPeriods (line 111) | func TestBasicStatsDifferentPeriods(t *testing.T) { function TestBasicStatsWithOnlyCount (line 212) | func TestBasicStatsWithOnlyCount(t *testing.T) { function TestBasicStatsWithOnlyMin (line 240) | func TestBasicStatsWithOnlyMin(t *testing.T) { function TestBasicStatsWithOnlyMax (line 268) | func TestBasicStatsWithOnlyMax(t *testing.T) { function TestBasicStatsWithOnlyMean (line 296) | func TestBasicStatsWithOnlyMean(t *testing.T) { function TestBasicStatsWithOnlySum (line 324) | func TestBasicStatsWithOnlySum(t *testing.T) { function TestBasicStatsWithOnlySumFloatingPointErrata (line 354) | func TestBasicStatsWithOnlySumFloatingPointErrata(t *testing.T) { function TestBasicStatsWithOnlyVariance (line 405) | func TestBasicStatsWithOnlyVariance(t *testing.T) { function TestBasicStatsWithOnlyStandardDeviation (line 431) | func TestBasicStatsWithOnlyStandardDeviation(t *testing.T) { function TestBasicStatsWithMinAndMax (line 457) | func TestBasicStatsWithMinAndMax(t *testing.T) { function TestBasicStatsWithDiff (line 492) | func TestBasicStatsWithDiff(t *testing.T) { function TestBasicStatsWithRate (line 517) | func TestBasicStatsWithRate(t *testing.T) { function TestBasicStatsWithNonNegativeRate (line 541) | func TestBasicStatsWithNonNegativeRate(t *testing.T) { function TestBasicStatsWithPctChange (line 565) | func TestBasicStatsWithPctChange(t *testing.T) { function TestBasicStatsWithInterval (line 589) | func TestBasicStatsWithInterval(t *testing.T) { function TestBasicStatsWithNonNegativeDiff (line 615) | func TestBasicStatsWithNonNegativeDiff(t *testing.T) { function TestBasicStatsWithAllStats (line 640) | func TestBasicStatsWithAllStats(t *testing.T) { function TestBasicStatsWithNoStats (line 719) | func TestBasicStatsWithNoStats(t *testing.T) { function TestBasicStatsWithUnknownStat (line 735) | func TestBasicStatsWithUnknownStat(t *testing.T) { function TestBasicStatsWithDefaultStats (line 754) | func TestBasicStatsWithDefaultStats(t *testing.T) { function TestBasicStatsWithOnlyLast (line 774) | func TestBasicStatsWithOnlyLast(t *testing.T) { function TestBasicStatsWithOnlyFirst (line 801) | func TestBasicStatsWithOnlyFirst(t *testing.T) { FILE: plugins/aggregators/derivative/derivative.go constant defaultSuffix (line 16) | defaultSuffix = "_rate" type Derivative (line 18) | type Derivative struct method Init (line 39) | func (d *Derivative) Init() error { method SampleConfig (line 45) | func (*Derivative) SampleConfig() string { method Add (line 49) | func (d *Derivative) Add(in telegraf.Metric) { method Push (line 73) | func (d *Derivative) Push(acc telegraf.Accumulator) { method Reset (line 114) | func (d *Derivative) Reset() { type aggregate (line 26) | type aggregate struct type event (line 34) | type event struct function newAggregate (line 128) | func newAggregate(in telegraf.Metric) *aggregate { function newEvent (line 139) | func newEvent(in telegraf.Metric) *event { function extractConvertedFields (line 146) | func extractConvertedFields(in telegraf.Metric) map[string]float64 { function upsertConvertedFields (line 152) | func upsertConvertedFields(source map[string]interface{}, target map[str... function convert (line 160) | func convert(in interface{}) (float64, bool) { function newDerivative (line 172) | func newDerivative() *Derivative { function init (line 179) | func init() { FILE: plugins/aggregators/derivative/derivative_test.go function TestTwoFullEventsWithParameter (line 37) | func TestTwoFullEventsWithParameter(t *testing.T) { function TestTwoFullEventsWithParameterReverseSequence (line 64) | func TestTwoFullEventsWithParameterReverseSequence(t *testing.T) { function TestTwoFullEventsWithoutParameter (line 91) | func TestTwoFullEventsWithoutParameter(t *testing.T) { function TestTwoFullEventsInSeparatePushes (line 130) | func TestTwoFullEventsInSeparatePushes(t *testing.T) { function TestTwoFullEventsInSeparatePushesWithSeveralRollOvers (line 164) | func TestTwoFullEventsInSeparatePushesWithSeveralRollOvers(t *testing.T) { function TestTwoFullEventsInSeparatePushesWithOutRollOver (line 197) | func TestTwoFullEventsInSeparatePushesWithOutRollOver(t *testing.T) { function TestIgnoresMissingVariable (line 224) | func TestIgnoresMissingVariable(t *testing.T) { function TestMergesDifferentMetricsWithSameHash (line 269) | func TestMergesDifferentMetricsWithSameHash(t *testing.T) { function TestDropsAggregatesOnMaxRollOver (line 317) | func TestDropsAggregatesOnMaxRollOver(t *testing.T) { function TestAddMetricsResetsRollOver (line 339) | func TestAddMetricsResetsRollOver(t *testing.T) { function TestCalculatesCorrectDerivativeOnTwoConsecutivePeriods (line 368) | func TestCalculatesCorrectDerivativeOnTwoConsecutivePeriods(t *testing.T) { FILE: plugins/aggregators/final/final.go type Final (line 17) | type Final struct method SampleConfig (line 26) | func (*Final) SampleConfig() string { method Init (line 30) | func (m *Final) Init() error { method Add (line 47) | func (m *Final) Add(in telegraf.Metric) { method Push (line 52) | func (m *Final) Push(acc telegraf.Accumulator) { method Reset (line 77) | func (*Final) Reset() { function newFinal (line 80) | func newFinal() *Final { function init (line 86) | func init() { FILE: plugins/aggregators/final/final_test.go function TestSimple (line 15) | func TestSimple(t *testing.T) { function TestTwoTags (line 51) | func TestTwoTags(t *testing.T) { function TestLongDifference (line 97) | func TestLongDifference(t *testing.T) { function TestOutputStrategyInvalid (line 151) | func TestOutputStrategyInvalid(t *testing.T) { function TestOutputStrategyTimeout (line 159) | func TestOutputStrategyTimeout(t *testing.T) { function TestOutputStrategyPeriodic (line 215) | func TestOutputStrategyPeriodic(t *testing.T) { function TestKeepOriginalFieldNames (line 279) | func TestKeepOriginalFieldNames(t *testing.T) { FILE: plugins/aggregators/histogram/histogram.go constant bucketRightTag (line 22) | bucketRightTag = "le" constant bucketPosInf (line 24) | bucketPosInf = "+Inf" constant bucketLeftTag (line 26) | bucketLeftTag = "gt" constant bucketNegInf (line 28) | bucketNegInf = "-Inf" type Histogram (line 31) | type Histogram struct method SampleConfig (line 77) | func (*Histogram) SampleConfig() string { method Add (line 81) | func (h *Histogram) Add(in telegraf.Metric) { method Push (line 126) | func (h *Histogram) Push(acc telegraf.Accumulator) { method Reset (line 152) | func (h *Histogram) Reset() { method groupFieldsByBuckets (line 160) | func (h *Histogram) groupFieldsByBuckets( method resetCache (line 206) | func (h *Histogram) resetCache() { method getBuckets (line 211) | func (h *Histogram) getBuckets(metric, field string) []float64 { type bucketConfig (line 43) | type bucketConfig struct type bucketsByMetrics (line 50) | type bucketsByMetrics type bucketsByFields (line 53) | type bucketsByFields type buckets (line 56) | type buckets type metricHistogramCollection (line 59) | type metricHistogramCollection struct type counts (line 68) | type counts type groupedByCountFields (line 71) | type groupedByCountFields struct function groupField (line 187) | func groupField(metricsWithGroupedFields *[]groupedByCountFields, name, ... function isBucketExists (line 234) | func isBucketExists(field string, cfg bucketConfig) bool { function sortBuckets (line 249) | func sortBuckets(buckets []float64) []float64 { function convert (line 261) | func convert(in interface{}) (float64, bool) { function copyTags (line 273) | func copyTags(tags map[string]string) map[string]string { function isTagsIdentical (line 283) | func isTagsIdentical(originalTags, checkedTags map[string]string) bool { function makeFieldsWithCount (line 298) | func makeFieldsWithCount(fieldsWithCountIn map[string]int64) map[string]... function newHistogramAggregator (line 307) | func newHistogramAggregator() *Histogram { function init (line 317) | func init() { FILE: plugins/aggregators/histogram/histogram_test.go type fields (line 16) | type fields type tags (line 17) | type tags function newTestHistogram (line 20) | func newTestHistogram(cfg []bucketConfig, reset, cumulative, pushOnlyOnU... function newTestHistogramWithExpirationInterval (line 24) | func newTestHistogramWithExpirationInterval( function BenchmarkApply (line 72) | func BenchmarkApply(b *testing.B) { function TestHistogram (line 83) | func TestHistogram(t *testing.T) { function TestHistogramPushOnUpdate (line 110) | func TestHistogramPushOnUpdate(t *testing.T) { function TestHistogramNonCumulative (line 151) | func TestHistogramNonCumulative(t *testing.T) { function TestHistogramWithReset (line 178) | func TestHistogramWithReset(t *testing.T) { function TestHistogramWithAllFields (line 205) | func TestHistogramWithAllFields(t *testing.T) { function TestHistogramWithAllFieldsNonCumulative (line 290) | func TestHistogramWithAllFieldsNonCumulative(t *testing.T) { function TestHistogramWithTwoPeriodsAndAllFields (line 400) | func TestHistogramWithTwoPeriodsAndAllFields(t *testing.T) { function TestWrongBucketsOrder (line 439) | func TestWrongBucketsOrder(t *testing.T) { function TestHistogramMetricExpiration (line 461) | func TestHistogramMetricExpiration(t *testing.T) { function assertContainsTaggedField (line 536) | func assertContainsTaggedField(t *testing.T, acc *testutil.Accumulator, ... FILE: plugins/aggregators/merge/merge.go type Merge (line 17) | type Merge struct method SampleConfig (line 22) | func (*Merge) SampleConfig() string { method Init (line 26) | func (a *Merge) Init() error { method Add (line 31) | func (a *Merge) Add(m telegraf.Metric) { method Push (line 45) | func (a *Merge) Push(acc telegraf.Accumulator) { method Reset (line 55) | func (a *Merge) Reset() { function init (line 59) | func init() { FILE: plugins/aggregators/merge/merge_test.go function TestSimple (line 15) | func TestSimple(t *testing.T) { function TestNanosecondPrecision (line 64) | func TestNanosecondPrecision(t *testing.T) { function TestNoRounding (line 115) | func TestNoRounding(t *testing.T) { function TestWithRounding (line 175) | func TestWithRounding(t *testing.T) { function TestReset (line 226) | func TestReset(t *testing.T) { function BenchmarkMergeOne (line 289) | func BenchmarkMergeOne(b *testing.B) { function BenchmarkMergeTwo (line 321) | func BenchmarkMergeTwo(b *testing.B) { FILE: plugins/aggregators/minmax/minmax.go type MinMax (line 14) | type MinMax struct method SampleConfig (line 29) | func (*MinMax) SampleConfig() string { method Add (line 33) | func (m *MinMax) Add(in telegraf.Metric) { method Push (line 76) | func (m *MinMax) Push(acc telegraf.Accumulator) { method Reset (line 87) | func (m *MinMax) Reset() { type aggregate (line 18) | type aggregate struct type minmax (line 24) | type minmax struct function convert (line 91) | func convert(in interface{}) (float64, bool) { function newMinMax (line 104) | func newMinMax() telegraf.Aggregator { function init (line 110) | func init() { FILE: plugins/aggregators/minmax/minmax_test.go function BenchmarkApply (line 48) | func BenchmarkApply(b *testing.B) { function TestMinMaxWithPeriod (line 58) | func TestMinMaxWithPeriod(t *testing.T) { function TestMinMaxDifferentPeriods (line 100) | func TestMinMaxDifferentPeriods(t *testing.T) { FILE: plugins/aggregators/quantile/algorithms.go type algorithm (line 10) | type algorithm interface function newTDigest (line 15) | func newTDigest(compression float64) (algorithm, error) { type exactAlgorithmR7 (line 19) | type exactAlgorithmR7 struct method Add (line 29) | func (e *exactAlgorithmR7) Add(value float64) error { method Quantile (line 37) | func (e *exactAlgorithmR7) Quantile(q float64) float64 { function newExactR7 (line 24) | func newExactR7(_ float64) (algorithm, error) { type exactAlgorithmR8 (line 67) | type exactAlgorithmR8 struct method Add (line 77) | func (e *exactAlgorithmR8) Add(value float64) error { method Quantile (line 85) | func (e *exactAlgorithmR8) Quantile(q float64) float64 { function newExactR8 (line 72) | func newExactR8(_ float64) (algorithm, error) { FILE: plugins/aggregators/quantile/quantile.go type Quantile (line 15) | type Quantile struct method SampleConfig (line 35) | func (*Quantile) SampleConfig() string { method Init (line 39) | func (q *Quantile) Init() error { method Add (line 76) | func (q *Quantile) Add(in telegraf.Metric) { method Push (line 115) | func (q *Quantile) Push(acc telegraf.Accumulator) { method Reset (line 127) | func (q *Quantile) Reset() { type aggregate (line 27) | type aggregate struct type newAlgorithmFunc (line 33) | type newAlgorithmFunc function convert (line 131) | func convert(in interface{}) (float64, bool) { function init (line 144) | func init() { FILE: plugins/aggregators/quantile/quantile_test.go function TestConfigInvalidAlgorithm (line 16) | func TestConfigInvalidAlgorithm(t *testing.T) { function TestConfigInvalidCompression (line 23) | func TestConfigInvalidCompression(t *testing.T) { function TestConfigInvalidQuantiles (line 30) | func TestConfigInvalidQuantiles(t *testing.T) { function TestSingleMetricTDigest (line 47) | func TestSingleMetricTDigest(t *testing.T) { function TestMultipleMetricsTDigest (line 117) | func TestMultipleMetricsTDigest(t *testing.T) { function TestSingleMetricExactR7 (line 179) | func TestSingleMetricExactR7(t *testing.T) { function TestMultipleMetricsExactR7 (line 249) | func TestMultipleMetricsExactR7(t *testing.T) { function TestSingleMetricExactR8 (line 311) | func TestSingleMetricExactR8(t *testing.T) { function TestMultipleMetricsExactR8 (line 381) | func TestMultipleMetricsExactR8(t *testing.T) { function BenchmarkDefaultTDigest (line 443) | func BenchmarkDefaultTDigest(b *testing.B) { function BenchmarkDefaultTDigest100Q (line 479) | func BenchmarkDefaultTDigest100Q(b *testing.B) { function BenchmarkDefaultExactR7 (line 520) | func BenchmarkDefaultExactR7(b *testing.B) { function BenchmarkDefaultExactR7100Q (line 556) | func BenchmarkDefaultExactR7100Q(b *testing.B) { function BenchmarkDefaultExactR8 (line 597) | func BenchmarkDefaultExactR8(b *testing.B) { function BenchmarkDefaultExactR8100Q (line 633) | func BenchmarkDefaultExactR8100Q(b *testing.B) { FILE: plugins/aggregators/registry.go type Creator (line 6) | type Creator function Add (line 12) | func Add(name string, creator Creator) { FILE: plugins/aggregators/starlark/starlark.go type Starlark (line 17) | type Starlark struct method SampleConfig (line 21) | func (*Starlark) SampleConfig() string { method Init (line 25) | func (s *Starlark) Init() error { method Add (line 53) | func (s *Starlark) Add(metric telegraf.Metric) { method Push (line 67) | func (s *Starlark) Push(acc telegraf.Accumulator) { method Reset (line 98) | func (s *Starlark) Reset() { function init (line 105) | func init() { FILE: plugins/aggregators/starlark/starlark_test.go function BenchmarkApply (line 52) | func BenchmarkApply(b *testing.B) { function TestMinMaxWithPeriod (line 63) | func TestMinMaxWithPeriod(t *testing.T) { function TestMinMaxDifferentPeriods (line 106) | func TestMinMaxDifferentPeriods(t *testing.T) { function newMinMax (line 175) | func newMinMax() (*Starlark, error) { function TestSimple (line 179) | func TestSimple(t *testing.T) { function TestNanosecondPrecision (line 231) | func TestNanosecondPrecision(t *testing.T) { function TestReset (line 285) | func TestReset(t *testing.T) { function newMerge (line 351) | func newMerge() (*Starlark, error) { function TestLastFromSource (line 355) | func TestLastFromSource(t *testing.T) { function newStarlarkFromSource (line 406) | func newStarlarkFromSource(source string) (*Starlark, error) { function newStarlarkFromScript (line 421) | func newStarlarkFromScript(script string) (*Starlark, error) { FILE: plugins/aggregators/valuecounter/valuecounter.go type ValueCounter (line 15) | type ValueCounter struct method SampleConfig (line 27) | func (*ValueCounter) SampleConfig() string { method Add (line 31) | func (vc *ValueCounter) Add(in telegraf.Metric) { method Push (line 56) | func (vc *ValueCounter) Push(acc telegraf.Accumulator) { method Reset (line 67) | func (vc *ValueCounter) Reset() { type aggregate (line 21) | type aggregate struct function newValueCounter (line 71) | func newValueCounter() telegraf.Aggregator { function init (line 77) | func init() { FILE: plugins/aggregators/valuecounter/valuecounter_test.go function newTestValueCounter (line 13) | func newTestValueCounter(fields []string) telegraf.Aggregator { function BenchmarkApply (line 42) | func BenchmarkApply(b *testing.B) { function TestBasic (line 52) | func TestBasic(t *testing.T) { function TestMultipleFields (line 72) | func TestMultipleFields(t *testing.T) { function TestWithReset (line 94) | func TestWithReset(t *testing.T) { FILE: plugins/all_test.go function Test_AllPlugins (line 27) | func Test_AllPlugins(t *testing.T) { function testPluginDirectory (line 34) | func testPluginDirectory(t *testing.T, directory string) { function parseSourceFile (line 49) | func parseSourceFile(t *testing.T, goPluginFile, pluginCategory string) { function resolvePluginFromImports (line 68) | func resolvePluginFromImports(t *testing.T, imports []*ast.ImportSpec) s... function testBuildTags (line 83) | func testBuildTags(t *testing.T, buildComment, pluginCategory, plugin st... function getPluginBuildTag (line 100) | func getPluginBuildTag(tags []string, pluginCategory string) string { function stringMap (line 109) | func stringMap(elems []string, transFormFunc func(string) string) []stri... FILE: plugins/common/adx/adx.go constant TablePerMetric (line 22) | TablePerMetric = "tablepermetric" constant SingleTable (line 23) | SingleTable = "singletable" constant bufferSize (line 25) | bufferSize = 1 << 20 constant maxBuffers (line 26) | maxBuffers = 5 constant ManagedIngestion (line 27) | ManagedIngestion = "managed" constant QueuedIngestion (line 28) | QueuedIngestion = "queued" type Config (line 31) | type Config struct method NewClient (line 48) | func (cfg *Config) NewClient(app string, log telegraf.Logger) (*Client... type Client (line 41) | type Client struct method Close (line 96) | func (adx *Client) Close() error { method PushMetrics (line 118) | func (adx *Client) PushMetrics(format ingest.FileOption, tableName str... method getMetricIngestor (line 137) | func (adx *Client) getMetricIngestor(ctx context.Context, tableName st... function createTableCommand (line 171) | func createTableCommand(table string) kusto.Statement { function createTableMappingCommand (line 178) | func createTableMappingCommand(table string) kusto.Statement { FILE: plugins/common/adx/adx_test.go function TestInitBlankEndpointData (line 21) | func TestInitBlankEndpointData(t *testing.T) { function TestQueryConstruction (line 32) | func TestQueryConstruction(t *testing.T) { function TestGetMetricIngestor (line 43) | func TestGetMetricIngestor(t *testing.T) { function TestGetMetricIngestorNoIngester (line 59) | func TestGetMetricIngestorNoIngester(t *testing.T) { function TestPushMetrics (line 74) | func TestPushMetrics(t *testing.T) { function TestPushMetricsOutputs (line 90) | func TestPushMetricsOutputs(t *testing.T) { function TestAlreadyClosed (line 187) | func TestAlreadyClosed(t *testing.T) { type fakeIngestor (line 198) | type fakeIngestor struct method FromReader (line 202) | func (f *fakeIngestor) FromReader(_ context.Context, reader io.Reader,... method FromFile (line 213) | func (*fakeIngestor) FromFile(_ context.Context, _ string, _ ...ingest... method Close (line 217) | func (*fakeIngestor) Close() error { FILE: plugins/common/auth/basic_auth.go type BasicAuth (line 8) | type BasicAuth struct method Verify (line 13) | func (b *BasicAuth) Verify(r *http.Request) bool { FILE: plugins/common/auth/basic_auth_test.go function TestBasicAuth_VerifyWithCredentials (line 10) | func TestBasicAuth_VerifyWithCredentials(t *testing.T) { function TestBasicAuth_VerifyWithoutCredentials (line 19) | func TestBasicAuth_VerifyWithoutCredentials(t *testing.T) { function TestBasicAuth_VerifyWithInvalidCredentials (line 27) | func TestBasicAuth_VerifyWithInvalidCredentials(t *testing.T) { FILE: plugins/common/aws/credentials.go type CredentialConfig (line 13) | type CredentialConfig struct method Credentials (line 26) | func (c *CredentialConfig) Credentials() (aws.Config, error) { method configWithRootCredentials (line 33) | func (c *CredentialConfig) configWithRootCredentials() (aws.Config, er... method configWithAssumeCredentials (line 53) | func (c *CredentialConfig) configWithAssumeCredentials() (aws.Config, ... FILE: plugins/common/cookie/cookie.go type CookieAuthConfig (line 19) | type CookieAuthConfig struct method Start (line 36) | func (c *CookieAuthConfig) Start(client *http.Client, log telegraf.Log... method initializeClient (line 51) | func (c *CookieAuthConfig) initializeClient(client *http.Client) (err ... method authRenewal (line 61) | func (c *CookieAuthConfig) authRenewal(ctx context.Context, ticker *cl... method auth (line 75) | func (c *CookieAuthConfig) auth() error { FILE: plugins/common/cookie/cookie_test.go constant reqUser (line 22) | reqUser = "testUser" constant reqPasswd (line 23) | reqPasswd = "testPassword" constant reqBody (line 24) | reqBody = "a body" constant reqHeaderKey (line 25) | reqHeaderKey = "hello" constant reqHeaderVal (line 26) | reqHeaderVal = "world" constant authEndpointNoCreds (line 28) | authEndpointNoCreds = "/auth" constant authEndpointWithBasicAuth (line 29) | authEndpointWithBasicAuth = "/authWithCreds" constant authEndpointWithBasicAuthOnlyUsername (line 30) | authEndpointWithBasicAuthOnlyUsername = "/authWithCredsUser" constant authEndpointWithBody (line 31) | authEndpointWithBody = "/authWithBody" constant authEndpointWithHeader (line 32) | authEndpointWithHeader = "/authWithHeader" type fakeServer (line 42) | type fakeServer struct method checkResp (line 107) | func (s fakeServer) checkResp(t *testing.T, expCode int) { method checkAuthCount (line 120) | func (s fakeServer) checkAuthCount(t *testing.T, atLeast int32) { function newFakeServer (line 47) | func newFakeServer(t *testing.T) fakeServer { function TestAuthConfig_Start (line 125) | func TestAuthConfig_Start(t *testing.T) { FILE: plugins/common/docker/stats_helpers.go function CalculateCPUPercentUnix (line 10) | func CalculateCPUPercentUnix(previousCPU, previousSystem uint64, v *cont... function CalculateCPUPercentWindows (line 30) | func CalculateCPUPercentWindows(v *container.StatsResponse) float64 { function CalculateMemUsageUnixNoCache (line 55) | func CalculateMemUsageUnixNoCache(mem container.MemoryStats) float64 { function CalculateMemPercentUnixNoCache (line 72) | func CalculateMemPercentUnixNoCache(limit, usedNoCache float64) float64 { FILE: plugins/common/encoding/decoder.go function NewDecoder (line 22) | func NewDecoder(enc string) (*Decoder, error) { FILE: plugins/common/encoding/decoder_reader.go function createDecoder (line 13) | func createDecoder(t transform.Transformer) *Decoder { type Decoder (line 22) | type Decoder struct method Bytes (line 33) | func (d *Decoder) Bytes(b []byte) ([]byte, error) { method String (line 43) | func (d *Decoder) String(s string) (string, error) { method Reader (line 55) | func (d *Decoder) Reader(r io.Reader) io.Reader { type Reader (line 60) | type Reader struct method Read (line 101) | func (r *Reader) Read(p []byte) (int, error) { constant defaultBufSize (line 86) | defaultBufSize = 4096 function NewReader (line 90) | func NewReader(r io.Reader, t transform.Transformer) *Reader { FILE: plugins/common/encoding/decoder_test.go function TestDecoder (line 11) | func TestDecoder(t *testing.T) { FILE: plugins/common/gcp/auth.go function ParseCredentialType (line 9) | func ParseCredentialType(credentialsFile string) (string, error) { FILE: plugins/common/http/config.go type TransportConfig (line 25) | type TransportConfig struct method CreateTransport (line 35) | func (h *TransportConfig) CreateTransport() (*http.Transport, error) { type HTTPClientConfig (line 68) | type HTTPClientConfig struct method CreateClient (line 75) | func (h *HTTPClientConfig) CreateClient(ctx context.Context, log teleg... FILE: plugins/common/jolokia2/client.go type Client (line 16) | type Client struct method read (line 156) | func (c *Client) read(requests []ReadRequest) ([]ReadResponse, error) { type ClientConfig (line 22) | type ClientConfig struct type ProxyConfig (line 31) | type ProxyConfig struct type ProxyTargetConfig (line 37) | type ProxyTargetConfig struct type ReadRequest (line 43) | type ReadRequest struct type ReadResponse (line 49) | type ReadResponse struct type jolokiaRequest (line 66) | type jolokiaRequest struct type jolokiaTarget (line 74) | type jolokiaTarget struct type jolokiaOptions (line 83) | type jolokiaOptions struct type jolokiaResponse (line 120) | type jolokiaResponse struct type jolokiaResponseRequest (line 128) | type jolokiaResponseRequest struct function NewClient (line 133) | func NewClient(address string, config *ClientConfig) (*Client, error) { function makeJolokiaRequests (line 203) | func makeJolokiaRequests(rrequests []ReadRequest, proxyConfig *ProxyConf... function makeJolokiaRequest (line 233) | func makeJolokiaRequest(rrequest ReadRequest, jtarget *jolokiaTarget) jo... function makeReadResponses (line 251) | func makeReadResponses(jresponses []jolokiaResponse) []ReadResponse { function formatReadURL (line 296) | func formatReadURL(configURL, username, password string) (string, error) { FILE: plugins/common/jolokia2/client_test.go function TestMakeReadResponses_Jolokia1xTarget (line 9) | func TestMakeReadResponses_Jolokia1xTarget(t *testing.T) { function TestMakeReadResponses_Jolokia2xTarget (line 36) | func TestMakeReadResponses_Jolokia2xTarget(t *testing.T) { function TestMakeReadResponses_NoTarget (line 65) | func TestMakeReadResponses_NoTarget(t *testing.T) { function TestMakeReadResponses_Jolokia1xTakesPrecedence (line 88) | func TestMakeReadResponses_Jolokia1xTakesPrecedence(t *testing.T) { function TestMakeReadResponses_MultipleTargets (line 119) | func TestMakeReadResponses_MultipleTargets(t *testing.T) { FILE: plugins/common/jolokia2/gatherer.go constant defaultFieldName (line 11) | defaultFieldName = "value" type Gatherer (line 13) | type Gatherer struct method Gather (line 27) | func (g *Gatherer) Gather(client *Client, acc telegraf.Accumulator) er... method gatherResponses (line 48) | func (g *Gatherer) gatherResponses(responses []ReadResponse, tags map[... function NewGatherer (line 18) | func NewGatherer(metrics []Metric) *Gatherer { function generatePoints (line 75) | func generatePoints(metric Metric, responses []ReadResponse) ([]point, [... function mergeTags (line 115) | func mergeTags(metricTags, outerTags map[string]string) map[string]string { function metricMatchesResponse (line 130) | func metricMatchesResponse(metric Metric, response ReadResponse) bool { function compactPoints (line 151) | func compactPoints(points []point) []point { function tagSetsMatch (line 177) | func tagSetsMatch(a, b map[string]string) bool { function makeReadRequests (line 196) | func makeReadRequests(metrics []Metric) []ReadRequest { function findRequestAttributesWithoutPaths (line 244) | func findRequestAttributesWithoutPaths(attributes map[string][]string) [... function findRequestAttributesWithPaths (line 256) | func findRequestAttributesWithPaths(attributes map[string][]string) []st... FILE: plugins/common/jolokia2/gatherer_test.go function TestJolokia2_makeReadRequests (line 9) | func TestJolokia2_makeReadRequests(t *testing.T) { FILE: plugins/common/jolokia2/metric.go type MetricConfig (line 7) | type MetricConfig struct type Metric (line 21) | type Metric struct method MatchObjectName (line 72) | func (m Metric) MatchObjectName(name string) bool { method MatchAttributeAndPath (line 100) | func (m Metric) MatchAttributeAndPath(attribute, innerPath string) bool { function NewMetric (line 35) | func NewMetric(config MetricConfig, defaultFieldPrefix, defaultFieldSepa... function parseMbeanObjectName (line 115) | func parseMbeanObjectName(name string) (string, []string) { FILE: plugins/common/jolokia2/point_builder.go type point (line 8) | type point struct type pointBuilder (line 13) | type pointBuilder struct method Build (line 30) | func (pb *pointBuilder) Build(mbean string, value interface{}) ([]poin... method extractTags (line 53) | func (pb *pointBuilder) extractTags(mbean string) map[string]string { method includeTag (line 67) | func (pb *pointBuilder) includeTag(tagName string) bool { method formatTagName (line 77) | func (pb *pointBuilder) formatTagName(tagName string) string { method extractFields (line 91) | func (pb *pointBuilder) extractFields(mbean string, value interface{})... method formatFieldName (line 136) | func (pb *pointBuilder) formatFieldName(attribute, path string) string { method FillFields (line 154) | func (pb *pointBuilder) FillFields(name string, value interface{}, fie... method applySubstitutions (line 195) | func (pb *pointBuilder) applySubstitutions(mbean string, fieldMap map[... function NewPointBuilder (line 20) | func NewPointBuilder(metric Metric, attributes []string, path string) *p... function makePropertyMap (line 214) | func makePropertyMap(mbean string) map[string]string { function makeSubstitutionList (line 242) | func makeSubstitutionList(mbean string) []string { FILE: plugins/common/kafka/config.go type ReadConfig (line 18) | type ReadConfig struct method SetConfig (line 23) | func (k *ReadConfig) SetConfig(cfg *sarama.Config, log telegraf.Logger... type WriteConfig (line 29) | type WriteConfig struct method SetConfig (line 39) | func (k *WriteConfig) SetConfig(cfg *sarama.Config, log telegraf.Logge... type Config (line 54) | type Config struct method SetConfig (line 86) | func (k *Config) SetConfig(cfg *sarama.Config, log telegraf.Logger) er... type BackoffFunc (line 73) | type BackoffFunc function makeBackoffFunc (line 75) | func makeBackoffFunc(backoff, maxDuration time.Duration) BackoffFunc { FILE: plugins/common/kafka/config_test.go function TestBackoffFunc (line 10) | func TestBackoffFunc(t *testing.T) { FILE: plugins/common/kafka/logger.go type debugLogger (line 17) | type debugLogger struct method Print (line 19) | func (*debugLogger) Print(v ...interface{}) { method Printf (line 23) | func (*debugLogger) Printf(format string, v ...interface{}) { method Println (line 27) | func (l *debugLogger) Println(v ...interface{}) { function SetLogger (line 32) | func SetLogger(level telegraf.LogLevel) { FILE: plugins/common/kafka/sasl.go type SASLAuth (line 12) | type SASLAuth struct method SetSASLConfig (line 35) | func (k *SASLAuth) SetSASLConfig(cfg *sarama.Config) error { function SASLVersion (line 100) | func SASLVersion(kafkaVersion sarama.KafkaVersion, saslVersion *int) (in... function gssapiAuthType (line 118) | func gssapiAuthType(authType string) int { FILE: plugins/common/kafka/sasl_aws_iam_msk.go constant saslTypeOAuthAWSMSKIAM (line 12) | saslTypeOAuthAWSMSKIAM = "AWS-MSK-IAM" type SASLOAuthAWSMSKIAMConfig (line 14) | type SASLOAuthAWSMSKIAMConfig struct method tokenProvider (line 21) | func (c *SASLOAuthAWSMSKIAMConfig) tokenProvider(extensions map[string... type oauthAWSMSKIAM (line 64) | type oauthAWSMSKIAM struct method Token (line 70) | func (a *oauthAWSMSKIAM) Token() (*sarama.AccessToken, error) { FILE: plugins/common/kafka/sasl_oauth_file.go type oauthToken (line 11) | type oauthToken struct method Token (line 17) | func (a *oauthToken) Token() (*sarama.AccessToken, error) { FILE: plugins/common/kafka/scram_client.go type XDGSCRAMClient (line 14) | type XDGSCRAMClient struct method Begin (line 20) | func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (er... method Step (line 29) | func (x *XDGSCRAMClient) Step(challenge string) (response string, err ... method Done (line 33) | func (x *XDGSCRAMClient) Done() bool { FILE: plugins/common/logrus/hook.go type LogHook (line 14) | type LogHook struct method Fire (line 27) | func (*LogHook) Fire(entry *logrus.Entry) error { method Levels (line 33) | func (*LogHook) Levels() []logrus.Level { function InstallHook (line 20) | func InstallHook() { FILE: plugins/common/mqtt/mqtt.go type PublishProperties (line 17) | type PublishProperties struct type MqttConfig (line 25) | type MqttConfig struct type Client (line 49) | type Client interface function NewClient (line 57) | func NewClient(cfg *MqttConfig) (Client, error) { function parseServers (line 79) | func parseServers(servers []string) ([]*url.URL, error) { FILE: plugins/common/mqtt/mqtt_logger.go type mqttLogger (line 7) | type mqttLogger struct method Printf (line 11) | func (l mqttLogger) Printf(fmt string, args ...interface{}) { method Println (line 15) | func (l mqttLogger) Println(args ...interface{}) { FILE: plugins/common/mqtt/mqtt_test.go function TestRandomClientID (line 10) | func TestRandomClientID(t *testing.T) { FILE: plugins/common/mqtt/mqtt_v3.go type mqttv311Client (line 13) | type mqttv311Client struct method Connect (line 97) | func (m *mqttv311Client) Connect() (bool, error) { method Publish (line 116) | func (m *mqttv311Client) Publish(topic string, body []byte) error { method SubscribeMultiple (line 124) | func (m *mqttv311Client) SubscribeMultiple(filters map[string]byte, ca... method AddRoute (line 130) | func (m *mqttv311Client) AddRoute(topic string, callback mqttv3.Messag... method Close (line 134) | func (m *mqttv311Client) Close() error { function NewMQTTv311Client (line 20) | func NewMQTTv311Client(cfg *MqttConfig) (*mqttv311Client, error) { FILE: plugins/common/mqtt/mqtt_v5.go type mqttv5Client (line 18) | type mqttv5Client struct method Connect (line 110) | func (m *mqttv5Client) Connect() (bool, error) { method Publish (line 138) | func (m *mqttv5Client) Publish(topic string, body []byte) error { method SubscribeMultiple (line 153) | func (*mqttv5Client) SubscribeMultiple(filters map[string]byte, callba... method AddRoute (line 158) | func (*mqttv5Client) AddRoute(topic string, callback paho.MessageHandl... method Close (line 163) | func (m *mqttv5Client) Close() error { function NewMQTTv5Client (line 30) | func NewMQTTv5Client(cfg *MqttConfig) (*mqttv5Client, error) { FILE: plugins/common/oauth/config.go type OAuth2Config (line 12) | type OAuth2Config struct method CreateOauth2Client (line 21) | func (o *OAuth2Config) CreateOauth2Client(ctx context.Context, client ... FILE: plugins/common/opcua/client.go type OpcUAWorkarounds (line 21) | type OpcUAWorkarounds struct type ConnectionState (line 25) | type ConnectionState method String (line 35) | func (c ConnectionState) String() string { constant Closed (line 28) | Closed ConnectionState = ConnectionState(opcua.Closed) constant Connected (line 29) | Connected ConnectionState = ConnectionState(opcua.Connected) constant Connecting (line 30) | Connecting ConnectionState = ConnectionState(opcua.Connecting) constant Disconnected (line 31) | Disconnected ConnectionState = ConnectionState(opcua.Disconnected) constant Reconnecting (line 32) | Reconnecting ConnectionState = ConnectionState(opcua.Reconnecting) type OpcUAClientConfig (line 39) | type OpcUAClientConfig struct method Validate (line 58) | func (o *OpcUAClientConfig) Validate() error { method validateCertificateConfiguration (line 142) | func (o *OpcUAClientConfig) validateCertificateConfiguration() error { method CreateClient (line 164) | func (o *OpcUAClientConfig) CreateClient(telegrafLogger telegraf.Logge... type OpcUAClient (line 185) | type OpcUAClient struct method determineOrCreateCertificates (line 197) | func (o *OpcUAClient) determineOrCreateCertificates() error { method SetupOptions (line 261) | func (o *OpcUAClient) SetupOptions() error { method setupWorkarounds (line 285) | func (o *OpcUAClient) setupWorkarounds() error { method StatusCodeOK (line 298) | func (o *OpcUAClient) StatusCodeOK(code ua.StatusCode) bool { method Connect (line 308) | func (o *OpcUAClient) Connect(ctx context.Context) error { method Disconnect (line 356) | func (o *OpcUAClient) Disconnect(ctx context.Context) error { method State (line 383) | func (o *OpcUAClient) State() ConnectionState { method UpdateNamespaceArray (line 392) | func (o *OpcUAClient) UpdateNamespaceArray(ctx context.Context) error { method NamespaceArray (line 436) | func (o *OpcUAClient) NamespaceArray() []string { FILE: plugins/common/opcua/client_test.go function TestSetupWorkarounds (line 10) | func TestSetupWorkarounds(t *testing.T) { function TestCheckStatusCode (line 29) | func TestCheckStatusCode(t *testing.T) { function TestOpcUAClientConfigValidateSuccess (line 35) | func TestOpcUAClientConfigValidateSuccess(t *testing.T) { function TestOpcUAClientConfigValidateFail (line 46) | func TestOpcUAClientConfigValidateFail(t *testing.T) { function TestOpcUAClientSetupWorkarounds (line 134) | func TestOpcUAClientSetupWorkarounds(t *testing.T) { function TestRemoteCertificateValidation (line 181) | func TestRemoteCertificateValidation(t *testing.T) { FILE: plugins/common/opcua/errors.go type EndpointError (line 39) | type EndpointError struct method Error (line 44) | func (e *EndpointError) Error() string { method Unwrap (line 48) | func (e *EndpointError) Unwrap() error { type SecurityError (line 53) | type SecurityError struct method Error (line 59) | func (e *SecurityError) Error() string { method Unwrap (line 70) | func (e *SecurityError) Unwrap() error { type AuthenticationError (line 75) | type AuthenticationError struct method Error (line 80) | func (e *AuthenticationError) Error() string { method Unwrap (line 84) | func (e *AuthenticationError) Unwrap() error { type CertificateError (line 89) | type CertificateError struct method Error (line 95) | func (e *CertificateError) Error() string { method Unwrap (line 102) | func (e *CertificateError) Unwrap() error { FILE: plugins/common/opcua/errors_test.go function TestEndpointError (line 10) | func TestEndpointError(t *testing.T) { function TestSecurityError (line 42) | func TestSecurityError(t *testing.T) { function TestAuthenticationError (line 90) | func TestAuthenticationError(t *testing.T) { function TestCertificateError (line 121) | func TestCertificateError(t *testing.T) { function TestErrorWrapping (line 154) | func TestErrorWrapping(t *testing.T) { FILE: plugins/common/opcua/input/input_client.go type Trigger (line 22) | type Trigger constant Status (line 25) | Status Trigger = "Status" constant StatusValue (line 26) | StatusValue Trigger = "StatusValue" constant StatusValueTimestamp (line 27) | StatusValueTimestamp Trigger = "StatusValueTimestamp" type DeadbandType (line 30) | type DeadbandType constant None (line 33) | None DeadbandType = "None" constant Absolute (line 34) | Absolute DeadbandType = "Absolute" constant Percent (line 35) | Percent DeadbandType = "Percent" type DataChangeFilter (line 38) | type DataChangeFilter struct type MonitoringParameters (line 44) | type MonitoringParameters struct type NodeSettings (line 52) | type NodeSettings struct method NodeID (line 64) | func (tag *NodeSettings) NodeID() string { type NodeGroupSettings (line 75) | type NodeGroupSettings struct type EventNodeSettings (line 85) | type EventNodeSettings struct method NodeID (line 93) | func (e *EventNodeSettings) NodeID() string { method validateEventNodeSettings (line 163) | func (e EventNodeSettings) validateEventNodeSettings() error { type EventGroupSettings (line 103) | type EventGroupSettings struct method UpdateNodeIDSettings (line 115) | func (e *EventGroupSettings) UpdateNodeIDSettings() { method Validate (line 137) | func (e *EventGroupSettings) Validate() error { type TimestampSource (line 198) | type TimestampSource constant TimestampSourceServer (line 201) | TimestampSourceServer TimestampSource = "server" constant TimestampSourceSource (line 202) | TimestampSourceSource TimestampSource = "source" constant TimestampSourceTelegraf (line 203) | TimestampSourceTelegraf TimestampSource = "gather" type InputClientConfig (line 207) | type InputClientConfig struct method Validate (line 217) | func (o *InputClientConfig) Validate() error { method CreateInputClient (line 245) | func (o *InputClientConfig) CreateInputClient(log telegraf.Logger) (*O... type NodeMetricMapping (line 283) | type NodeMetricMapping struct function NewNodeMetricMapping (line 291) | func NewNodeMetricMapping(metricName string, node NodeSettings, groupTag... type EventNodeMetricMapping (line 304) | type EventNodeMetricMapping struct method CreateEventFilter (line 729) | func (node *EventNodeMetricMapping) CreateEventFilter() (*ua.Extension... method createSelectClauses (line 748) | func (node *EventNodeMetricMapping) createSelectClauses() ([]*ua.Simpl... method createWhereClauses (line 764) | func (node *EventNodeMetricMapping) createWhereClauses() (*ua.ContentF... method determineNodeIDType (line 815) | func (node *EventNodeMetricMapping) determineNodeIDType() (*ua.NodeID,... type NodeValue (line 314) | type NodeValue struct type OpcUAInputClient (line 327) | type OpcUAInputClient struct method Stop (line 340) | func (o *OpcUAInputClient) Stop(ctx context.Context) <-chan struct{} { method InitNodeMetricMapping (line 443) | func (o *OpcUAInputClient) InitNodeMetricMapping() error { method InitNodeIDs (line 495) | func (o *OpcUAInputClient) InitNodeIDs() error { method InitEventNodeIDs (line 515) | func (o *OpcUAInputClient) InitEventNodeIDs() error { method initLastReceivedValues (line 551) | func (o *OpcUAInputClient) initLastReceivedValues() { method UpdateNodeValue (line 558) | func (o *OpcUAInputClient) UpdateNodeValue(nodeIdx int, d *ua.DataValu... method MetricForNode (line 586) | func (o *OpcUAInputClient) MetricForNode(nodeIdx int) telegraf.Metric { method MetricForEvent (line 677) | func (o *OpcUAInputClient) MetricForEvent(nodeIdx int, event *ua.Event... type metricParts (line 352) | type metricParts struct function newMP (line 358) | func newMP(n *NodeMetricMapping) metricParts { function validateNodeToAdd (line 385) | func validateNodeToAdd(existing map[metricParts]struct{}, nmm *NodeMetri... function unpack (line 668) | func unpack[Slice ~[]E, E any](prefix string, value Slice) map[string]in... FILE: plugins/common/opcua/input/input_client_test.go function TestValidateOPCTags (line 18) | func TestValidateOPCTags(t *testing.T) { function TestNewNodeMetricMappingTags (line 226) | func TestNewNodeMetricMappingTags(t *testing.T) { function TestNewNodeMetricMappingIdStrInstantiated (line 307) | func TestNewNodeMetricMappingIdStrInstantiated(t *testing.T) { function TestValidateNodeToAdd (line 318) | func TestValidateNodeToAdd(t *testing.T) { function TestInitNodeMetricMapping (line 470) | func TestInitNodeMetricMapping(t *testing.T) { function TestUpdateNodeValue (line 613) | func TestUpdateNodeValue(t *testing.T) { function TestMetricForNode (line 709) | func TestMetricForNode(t *testing.T) { function TestMetricForEvent (line 883) | func TestMetricForEvent(t *testing.T) { function TestNodeIDGeneration (line 1075) | func TestNodeIDGeneration(t *testing.T) { function TestEventNodeIDGeneration (line 1143) | func TestEventNodeIDGeneration(t *testing.T) { function TestNodeValidationBothNamespaces (line 1184) | func TestNodeValidationBothNamespaces(t *testing.T) { function TestNodeValidationNeitherNamespace (line 1201) | func TestNodeValidationNeitherNamespace(t *testing.T) { function TestEventNodeValidationBothNamespaces (line 1216) | func TestEventNodeValidationBothNamespaces(t *testing.T) { function TestEventNodeValidationNeitherNamespace (line 1230) | func TestEventNodeValidationNeitherNamespace(t *testing.T) { function TestGroupNamespaceURIInheritance (line 1242) | func TestGroupNamespaceURIInheritance(t *testing.T) { function TestEventGroupNamespaceURIInheritance (line 1282) | func TestEventGroupNamespaceURIInheritance(t *testing.T) { function TestValidateOPCTagsWithNodeID (line 1309) | func TestValidateOPCTagsWithNodeID(t *testing.T) { function TestValidateOPCTagsWithNodeIDError (line 1356) | func TestValidateOPCTagsWithNodeIDError(t *testing.T) { function TestNodeGroupWithNodeIDString (line 1385) | func TestNodeGroupWithNodeIDString(t *testing.T) { function TestEventGroupWithNodeIDString (line 1411) | func TestEventGroupWithNodeIDString(t *testing.T) { FILE: plugins/common/opcua/logger.go type DebugLogger (line 8) | type DebugLogger struct method Write (line 12) | func (l *DebugLogger) Write(p []byte) (n int, err error) { FILE: plugins/common/opcua/opcua_util.go function newTempDir (line 30) | func newTempDir() (string, error) { function generateCert (line 35) | func generateCert(host string, rsaBits int, certFile, keyFile string, du... function publicKey (line 186) | func publicKey(priv interface{}) interface{} { function pemBlockForKey (line 197) | func pemBlockForKey(priv interface{}) (*pem.Block, error) { method generateClientOpts (line 212) | func (o *OpcUAClient) generateClientOpts(endpoints []*ua.EndpointDescrip... method generateAuth (line 381) | func (o *OpcUAClient) generateAuth(a string, cert []byte, pk *rsa.Privat... function validateEndpointConfig (line 440) | func validateEndpointConfig(endpoints []*ua.EndpointDescription, secPoli... FILE: plugins/common/opcua/opcua_util_test.go function TestGenerateCertEmptyPaths (line 12) | func TestGenerateCertEmptyPaths(t *testing.T) { function TestGenerateCertPersistentPaths (line 28) | func TestGenerateCertPersistentPaths(t *testing.T) { function TestGenerateCertCreatesParentDirectory (line 57) | func TestGenerateCertCreatesParentDirectory(t *testing.T) { function TestGenerateCertMissingHost (line 79) | func TestGenerateCertMissingHost(t *testing.T) { function TestGenerateCertDifferentKeySize (line 88) | func TestGenerateCertDifferentKeySize(t *testing.T) { FILE: plugins/common/parallel/ordered.go type Ordered (line 9) | type Ordered struct method Enqueue (line 35) | func (p *Ordered) Enqueue(metric telegraf.Metric) { method readQueue (line 48) | func (p *Ordered) readQueue(acc telegraf.Accumulator) { method startWorkers (line 60) | func (p *Ordered) startWorkers(count int) { method Stop (line 73) | func (p *Ordered) Stop() { function NewOrdered (line 20) | func NewOrdered(acc telegraf.Accumulator, fn func(telegraf.Metric) []tel... type futureMetric (line 79) | type futureMetric type job (line 81) | type job struct FILE: plugins/common/parallel/parallel.go type Parallel (line 5) | type Parallel interface FILE: plugins/common/parallel/parallel_test.go function TestOrderedJobsStayOrdered (line 15) | func TestOrderedJobsStayOrdered(t *testing.T) { function TestUnorderedJobsDontDropAnyJobs (line 43) | func TestUnorderedJobsDontDropAnyJobs(t *testing.T) { function BenchmarkOrdered (line 75) | func BenchmarkOrdered(b *testing.B) { function BenchmarkUnordered (line 95) | func BenchmarkUnordered(b *testing.B) { function jobFunc (line 115) | func jobFunc(m telegraf.Metric) []telegraf.Metric { FILE: plugins/common/parallel/unordered.go type Unordered (line 9) | type Unordered struct method startWorkers (line 37) | func (p *Unordered) startWorkers(count int) { method Stop (line 53) | func (p *Unordered) Stop() { method Enqueue (line 58) | func (p *Unordered) Enqueue(m telegraf.Metric) { function NewUnordered (line 16) | func NewUnordered( FILE: plugins/common/postgresql/config.go type Config (line 21) | type Config struct method CreateService (line 30) | func (c *Config) CreateService() (*Service, error) { method sanitizedAddress (line 89) | func (c *Config) sanitizedAddress() (string, error) { function connectionDatabase (line 78) | func connectionDatabase(sanitizedAddr string) string { function toKeyValue (line 115) | func toKeyValue(uri string) (string, error) { FILE: plugins/common/postgresql/config_test.go function TestURIParsing (line 12) | func TestURIParsing(t *testing.T) { function TestSanitizeAddressKeyValue (line 80) | func TestSanitizeAddressKeyValue(t *testing.T) { function TestSanitizeAddressURI (line 195) | func TestSanitizeAddressURI(t *testing.T) { FILE: plugins/common/postgresql/service.go type Service (line 13) | type Service struct method Start (line 24) | func (p *Service) Start() error { method Stop (line 38) | func (p *Service) Stop() { FILE: plugins/common/proxy/connect.go type httpConnectProxy (line 15) | type httpConnectProxy struct method DialContext (line 20) | func (c *httpConnectProxy) DialContext(ctx context.Context, network, a... method Dial (line 92) | func (c *httpConnectProxy) Dial(network, addr string) (net.Conn, error) { function newHTTPConnectProxy (line 96) | func newHTTPConnectProxy(proxyURL *url.URL, forward proxy.Dialer) (proxy... function init (line 100) | func init() { type contextDialerShim (line 110) | type contextDialerShim struct method Dial (line 114) | func (cd *contextDialerShim) Dial(network, addr string) (net.Conn, err... method DialContext (line 118) | func (cd *contextDialerShim) DialContext(ctx context.Context, network,... FILE: plugins/common/proxy/dialer.go type ProxiedDialer (line 11) | type ProxiedDialer struct method Dial (line 15) | func (pd *ProxiedDialer) Dial(network, addr string) (net.Conn, error) { method DialContext (line 19) | func (pd *ProxiedDialer) DialContext(ctx context.Context, network, add... method DialTimeout (line 28) | func (pd *ProxiedDialer) DialTimeout(network, addr string, timeout tim... FILE: plugins/common/proxy/proxy.go type HTTPProxy (line 11) | type HTTPProxy struct method Proxy (line 18) | func (p *HTTPProxy) Proxy() (proxyFunc, error) { type proxyFunc (line 16) | type proxyFunc type TCPProxy (line 32) | type TCPProxy struct method Proxy (line 37) | func (p *TCPProxy) Proxy() (*ProxiedDialer, error) { FILE: plugins/common/proxy/socks5.go type Socks5ProxyConfig (line 7) | type Socks5ProxyConfig struct method GetDialer (line 14) | func (c *Socks5ProxyConfig) GetDialer() (proxy.Dialer, error) { FILE: plugins/common/proxy/socks5_test.go function TestSocks5ProxyConfigIntegration (line 12) | func TestSocks5ProxyConfigIntegration(t *testing.T) { FILE: plugins/common/psutil/mock_ps.go type MockPS (line 14) | type MockPS struct method CPUTimes (line 31) | func (m *MockPS) CPUTimes(_, _ bool) ([]cpu.TimesStat, error) { method DiskUsage (line 41) | func (m *MockPS) DiskUsage(mountPointFilter, mountOptsExclude, fstypeE... method NetIO (line 52) | func (m *MockPS) NetIO() ([]net.IOCountersStat, error) { method NetProto (line 62) | func (m *MockPS) NetProto() ([]net.ProtoCountersStat, error) { method DiskIO (line 72) | func (m *MockPS) DiskIO(_ []string) (map[string]disk.IOCountersStat, e... method VMStat (line 82) | func (m *MockPS) VMStat() (*mem.VirtualMemoryStat, error) { method SwapStat (line 92) | func (m *MockPS) SwapStat() (*mem.SwapMemoryStat, error) { method NetConnections (line 102) | func (m *MockPS) NetConnections() ([]net.ConnectionStat, error) { method NetConntrack (line 112) | func (m *MockPS) NetConntrack(perCPU bool) ([]net.ConntrackStat, error) { type MockPSDisk (line 20) | type MockPSDisk struct type MockDiskUsage (line 26) | type MockDiskUsage struct method Partitions (line 122) | func (m *MockDiskUsage) Partitions(all bool) ([]disk.PartitionStat, er... method OSGetenv (line 132) | func (m *MockDiskUsage) OSGetenv(key string) string { method OSStat (line 138) | func (m *MockDiskUsage) OSStat(name string) (os.FileInfo, error) { method PSDiskUsage (line 148) | func (m *MockDiskUsage) PSDiskUsage(path string) (*disk.UsageStat, err... FILE: plugins/common/psutil/ps.go type PS (line 19) | type PS interface type PSDiskDeps (line 41) | type PSDiskDeps interface type SystemPS (line 53) | type SystemPS struct method CPUTimes (line 67) | func (*SystemPS) CPUTimes(perCPU, totalCPU bool) ([]cpu.TimesStat, err... method DiskUsage (line 87) | func (s *SystemPS) DiskUsage(mountPointFilter, mountOptsExclude, fstyp... method NetProto (line 174) | func (*SystemPS) NetProto() ([]net.ProtoCountersStat, error) { method NetIO (line 179) | func (*SystemPS) NetIO() ([]net.IOCountersStat, error) { method NetConnections (line 184) | func (*SystemPS) NetConnections() ([]net.ConnectionStat, error) { method NetConntrack (line 189) | func (*SystemPS) NetConntrack(perCPU bool) ([]net.ConntrackStat, error) { method DiskIO (line 194) | func (*SystemPS) DiskIO(names []string) (map[string]disk.IOCountersSta... method VMStat (line 204) | func (*SystemPS) VMStat() (*mem.VirtualMemoryStat, error) { method SwapStat (line 209) | func (*SystemPS) SwapStat() (*mem.SwapMemoryStat, error) { type SystemPSDisk (line 59) | type SystemPSDisk struct method Partitions (line 214) | func (*SystemPSDisk) Partitions(all bool) ([]disk.PartitionStat, error) { method OSGetenv (line 219) | func (*SystemPSDisk) OSGetenv(key string) string { method OSStat (line 224) | func (*SystemPSDisk) OSStat(name string) (os.FileInfo, error) { method PSDiskUsage (line 229) | func (*SystemPSDisk) PSDiskUsage(path string) (*disk.UsageStat, error) { function NewSystemPS (line 62) | func NewSystemPS() *SystemPS { type set (line 233) | type set struct method empty (line 237) | func (s *set) empty() bool { method add (line 241) | func (s *set) add(key string) { method has (line 245) | func (s *set) has(key string) bool { function newSet (line 251) | func newSet() *set { FILE: plugins/common/ratelimiter/config.go type RateLimitConfig (line 10) | type RateLimitConfig struct method CreateRateLimiter (line 15) | func (cfg *RateLimitConfig) CreateRateLimiter() (*RateLimiter, error) { FILE: plugins/common/ratelimiter/limiters.go type RateLimiter (line 14) | type RateLimiter struct method Remaining (line 25) | func (r *RateLimiter) Remaining(t time.Time) int64 { method Reserve (line 47) | func (r *RateLimiter) Reserve(used int64) { method Release (line 54) | func (r *RateLimiter) Release() { method Accept (line 61) | func (r *RateLimiter) Accept(t time.Time, used int64) { method Undo (line 83) | func (r *RateLimiter) Undo(t time.Time, used int64) { FILE: plugins/common/ratelimiter/limiters_test.go function TestInvalidPeriod (line 13) | func TestInvalidPeriod(t *testing.T) { function TestUnlimited (line 19) | func TestUnlimited(t *testing.T) { function TestUnlimitedWithPeriod (line 31) | func TestUnlimitedWithPeriod(t *testing.T) { function TestLimited (line 45) | func TestLimited(t *testing.T) { function TestUndo (line 114) | func TestUndo(t *testing.T) { FILE: plugins/common/ratelimiter/serializers.go type Serializer (line 13) | type Serializer interface type IndividualSerializer (line 22) | type IndividualSerializer struct method Serialize (line 34) | func (s *IndividualSerializer) Serialize(metric telegraf.Metric, limit... method SerializeBatch (line 50) | func (s *IndividualSerializer) SerializeBatch(metrics []telegraf.Metri... function NewIndividualSerializer (line 27) | func NewIndividualSerializer(s telegraf.Serializer) *IndividualSerializer { FILE: plugins/common/ratelimiter/serializers_test.go function TestIndividualSerializer (line 16) | func TestIndividualSerializer(t *testing.T) { function TestIndividualSerializerFirstTooBig (line 172) | func TestIndividualSerializerFirstTooBig(t *testing.T) { function TestIndividualSerializerUnlimited (line 218) | func TestIndividualSerializerUnlimited(t *testing.T) { FILE: plugins/common/shim/config.go type config (line 17) | type config struct type loadedConfig (line 23) | type loadedConfig struct method LoadConfig (line 30) | func (s *Shim) LoadConfig(filePath *string) error { function LoadConfig (line 52) | func LoadConfig(filePath *string) (loaded loadedConfig, err error) { function expandEnvVars (line 74) | func expandEnvVars(contents []byte) string { function getEnv (line 78) | func getEnv(key string) string { function createPluginsWithTomlConfig (line 84) | func createPluginsWithTomlConfig(md toml.MetaData, conf config) (loadedC... function DefaultImportedPlugins (line 148) | func DefaultImportedPlugins() config { FILE: plugins/common/shim/config_test.go function TestLoadConfig (line 15) | func TestLoadConfig(t *testing.T) { function TestLoadingSpecialTypes (line 34) | func TestLoadingSpecialTypes(t *testing.T) { function TestLoadingProcessorWithConfig (line 50) | func TestLoadingProcessorWithConfig(t *testing.T) { type testDurationInput (line 63) | type testDurationInput struct method SampleConfig (line 69) | func (*testDurationInput) SampleConfig() string { method Gather (line 73) | func (*testDurationInput) Gather(telegraf.Accumulator) error { type testConfigProcessor (line 77) | type testConfigProcessor struct method SampleConfig (line 81) | func (*testConfigProcessor) SampleConfig() string { method Apply (line 85) | func (*testConfigProcessor) Apply(metrics ...telegraf.Metric) []telegr... FILE: plugins/common/shim/example/cmd/main.go function main (line 40) | func main() { FILE: plugins/common/shim/goshim.go type empty (line 19) | type empty struct constant PollIntervalDisabled (line 32) | PollIntervalDisabled = time.Duration(0) type Shim (line 37) | type Shim struct method watchForShutdown (line 72) | func (*Shim) watchForShutdown(cancel context.CancelFunc) { method Run (line 83) | func (s *Shim) Run(pollInterval time.Duration) error { method writeProcessedMetrics (line 110) | func (s *Shim) writeProcessedMetrics() error { method LogName (line 138) | func (*Shim) LogName() string { method MakeMetric (line 143) | func (*Shim) MakeMetric(m telegraf.Metric) telegraf.Metric { method Log (line 148) | func (s *Shim) Log() telegraf.Logger { function New (line 60) | func New() *Shim { function hasQuit (line 106) | func hasQuit(ctx context.Context) bool { FILE: plugins/common/shim/goshim_test.go function TestShimSetsUpLogger (line 16) | func TestShimSetsUpLogger(t *testing.T) { function runErroringInputPlugin (line 34) | func runErroringInputPlugin(t *testing.T, interval time.Duration, stdin ... type erroringInput (line 61) | type erroringInput struct method SampleConfig (line 64) | func (*erroringInput) SampleConfig() string { method Gather (line 68) | func (*erroringInput) Gather(acc telegraf.Accumulator) error { method Start (line 73) | func (*erroringInput) Start(telegraf.Accumulator) error { method Stop (line 77) | func (*erroringInput) Stop() { FILE: plugins/common/shim/input.go method AddInput (line 16) | func (s *Shim) AddInput(input telegraf.Input) error { method RunInput (line 29) | func (s *Shim) RunInput(pollInterval time.Duration) error { method startGathering (line 79) | func (s *Shim) startGathering(ctx context.Context, input telegraf.Input,... method pushCollectMetricsRequest (line 110) | func (s *Shim) pushCollectMetricsRequest() { FILE: plugins/common/shim/input_test.go function TestInputShimTimer (line 15) | func TestInputShimTimer(t *testing.T) { function TestInputShimStdinSignalingWorks (line 31) | func TestInputShimStdinSignalingWorks(t *testing.T) { function runInputPlugin (line 58) | func runInputPlugin(t *testing.T, interval time.Duration, stdin io.Reade... type testInput (line 86) | type testInput struct method SampleConfig (line 90) | func (*testInput) SampleConfig() string { method Gather (line 94) | func (i *testInput) Gather(acc telegraf.Accumulator) error { method Start (line 106) | func (*testInput) Start(telegraf.Accumulator) error { method Stop (line 110) | func (*testInput) Stop() { type serviceInput (line 113) | type serviceInput struct method SampleConfig (line 119) | func (*serviceInput) SampleConfig() string { method Gather (line 123) | func (*serviceInput) Gather(acc telegraf.Accumulator) error { method Start (line 135) | func (*serviceInput) Start(telegraf.Accumulator) error { method Stop (line 139) | func (*serviceInput) Stop() { FILE: plugins/common/shim/output.go method AddOutput (line 16) | func (s *Shim) AddOutput(output telegraf.Output) error { method RunOutput (line 29) | func (s *Shim) RunOutput() error { FILE: plugins/common/shim/output_test.go function TestOutputShim (line 18) | func TestOutputShim(t *testing.T) { function TestOutputShimWithBatchSize (line 60) | func TestOutputShimWithBatchSize(t *testing.T) { function TestOutputShimWithFlushTimeout (line 118) | func TestOutputShimWithFlushTimeout(t *testing.T) { type testOutput (line 176) | type testOutput struct method Connect (line 181) | func (*testOutput) Connect() error { method Close (line 184) | func (*testOutput) Close() error { method Write (line 187) | func (o *testOutput) Write(metrics []telegraf.Metric) error { method SampleConfig (line 193) | func (*testOutput) SampleConfig() string { FILE: plugins/common/shim/processor.go method AddProcessor (line 17) | func (s *Shim) AddProcessor(processor telegraf.Processor) error { method AddStreamingProcessor (line 24) | func (s *Shim) AddStreamingProcessor(processor telegraf.StreamingProcess... method RunProcessor (line 37) | func (s *Shim) RunProcessor() error { FILE: plugins/common/shim/processor_test.go function TestProcessorShim (line 19) | func TestProcessorShim(t *testing.T) { function TestProcessorShimWithLargerThanDefaultScannerBufferSize (line 23) | func TestProcessorShimWithLargerThanDefaultScannerBufferSize(t *testing.... function testSendAndReceive (line 33) | func testSendAndReceive(t *testing.T, fieldKey, fieldValue string) { type testProcessor (line 99) | type testProcessor struct method Apply (line 104) | func (p *testProcessor) Apply(in ...telegraf.Metric) []telegraf.Metric { method SampleConfig (line 111) | func (*testProcessor) SampleConfig() string { FILE: plugins/common/slog/adapter.go function NewLogger (line 13) | func NewLogger(l telegraf.Logger) *slog.Logger { type tlgHandler (line 19) | type tlgHandler struct method Enabled (line 28) | func (h *tlgHandler) Enabled(_ context.Context, level slog.Level) bool { method Handle (line 37) | func (h *tlgHandler) Handle(_ context.Context, r slog.Record) error { method WithAttrs (line 64) | func (h *tlgHandler) WithAttrs(attrs []slog.Attr) slog.Handler { method WithGroup (line 81) | func (h *tlgHandler) WithGroup(name string) slog.Handler { FILE: plugins/common/snmp/config.go type ClientConfig (line 10) | type ClientConfig struct function DefaultClientConfig (line 41) | func DefaultClientConfig() *ClientConfig { FILE: plugins/common/snmp/field.go type Field (line 21) | type Field struct method Init (line 65) | func (f *Field) Init(tr Translator) error { method Convert (line 108) | func (f *Field) Convert(ent gosnmp.SnmpPDU) (interface{}, error) { FILE: plugins/common/snmp/field_test.go function TestConvertDefault (line 10) | func TestConvertDefault(t *testing.T) { function TestConvertHex (line 67) | func TestConvertHex(t *testing.T) { function TestConvertHextoint (line 140) | func TestConvertHextoint(t *testing.T) { FILE: plugins/common/snmp/logger.go type Logger (line 9) | type Logger struct method Print (line 14) | func (l *Logger) Print(args ...interface{}) { method Printf (line 21) | func (l *Logger) Printf(format string, args ...interface{}) { FILE: plugins/common/snmp/mib_loader.go type MibLoader (line 20) | type MibLoader interface type GosmiMibLoader (line 29) | type GosmiMibLoader struct method appendPath (line 31) | func (*GosmiMibLoader) appendPath(path string) { method loadModule (line 38) | func (*GosmiMibLoader) loadModule(path string) error { function LoadMibsFromPath (line 47) | func LoadMibsFromPath(paths []string, log telegraf.Logger, loader MibLoa... function walkPaths (line 93) | func walkPaths(paths []string, log telegraf.Logger) ([]string, error) { FILE: plugins/common/snmp/mib_loader_test.go type TestingMibLoader (line 13) | type TestingMibLoader struct method appendPath (line 18) | func (t *TestingMibLoader) appendPath(path string) { method loadModule (line 22) | func (t *TestingMibLoader) loadModule(path string) error { function TestFolderLookup (line 26) | func TestFolderLookup(t *testing.T) { function TestMissingMibPath (line 75) | func TestMissingMibPath(t *testing.T) { function BenchmarkMibLoading (line 81) | func BenchmarkMibLoading(b *testing.B) { FILE: plugins/common/snmp/table.go type Table (line 13) | type Table struct method Init (line 55) | func (t *Table) Init(tr Translator) error { method initBuild (line 92) | func (t *Table) initBuild() error { method Build (line 120) | func (t Table) Build(gs Connection, walk bool) (*RTable, error) { type RTable (line 36) | type RTable struct type RTableRow (line 47) | type RTableRow struct type walkError (line 293) | type walkError struct method Error (line 298) | func (e *walkError) Error() string { method Unwrap (line 302) | func (e *walkError) Unwrap() error { FILE: plugins/common/snmp/table_test.go function TestTableJoin_walk (line 9) | func TestTableJoin_walk(t *testing.T) { function TestTableOuterJoin_walk (line 85) | func TestTableOuterJoin_walk(t *testing.T) { function TestTableJoinNoIndexAsTag_walk (line 172) | func TestTableJoinNoIndexAsTag_walk(t *testing.T) { function TestTableBuild_walk_duplicateIndex (line 248) | func TestTableBuild_walk_duplicateIndex(t *testing.T) { FILE: plugins/common/snmp/translator.go type TranslatorPlugin (line 3) | type TranslatorPlugin interface type Translator (line 7) | type Translator interface FILE: plugins/common/snmp/translator_gosmi.go type gosmiTranslator (line 17) | type gosmiTranslator struct method SnmpTranslate (line 29) | func (g *gosmiTranslator) SnmpTranslate(oid string) (mibName string, o... method SnmpTable (line 38) | func (g *gosmiTranslator) SnmpTable(oid string) ( method SnmpFormatEnum (line 58) | func (*gosmiTranslator) SnmpFormatEnum(oid string, value interface{}, ... method SnmpFormatDisplayHint (line 83) | func (*gosmiTranslator) SnmpFormatDisplayHint(oid string, value interf... function NewGosmiTranslator (line 20) | func NewGosmiTranslator(paths []string, log telegraf.Logger) (*gosmiTran... function getIndex (line 101) | func getIndex(mibPrefix string, node gosmi.SmiNode) (col []string, tagOi... function snmpTranslateCall (line 118) | func snmpTranslateCall(oid string) (mibName string, oidNum string, oidTe... type MibEntry (line 210) | type MibEntry struct function TrapLookup (line 215) | func TrapLookup(oid string) (e MibEntry, err error) { FILE: plugins/common/snmp/translator_gosmi_test.go function getGosmiTr (line 13) | func getGosmiTr(t *testing.T) Translator { function TestGosmiTranslator (line 22) | func TestGosmiTranslator(t *testing.T) { function TestFieldInitGosmi (line 31) | func TestFieldInitGosmi(t *testing.T) { function TestTableInitGosmi (line 63) | func TestTableInitGosmi(t *testing.T) { function TestTableBuild_walk_noTranslate (line 106) | func TestTableBuild_walk_noTranslate(t *testing.T) { function TestTableBuild_walk_Translate (line 189) | func TestTableBuild_walk_Translate(t *testing.T) { function TestTableBuild_noWalkGosmi (line 252) | func TestTableBuild_noWalkGosmi(t *testing.T) { function TestFieldConvertGosmi (line 298) | func TestFieldConvertGosmi(t *testing.T) { function TestSnmpFormatDisplayHint (line 359) | func TestSnmpFormatDisplayHint(t *testing.T) { function TestTableJoin_walkGosmi (line 401) | func TestTableJoin_walkGosmi(t *testing.T) { function TestTableOuterJoin_walkGosmi (line 478) | func TestTableOuterJoin_walkGosmi(t *testing.T) { function TestTableJoinNoIndexAsTag_walkGosmi (line 565) | func TestTableJoinNoIndexAsTag_walkGosmi(t *testing.T) { function TestCanNotParse (line 641) | func TestCanNotParse(t *testing.T) { function TestTrapLookup (line 650) | func TestTrapLookup(t *testing.T) { function TestTrapLookupFail (line 700) | func TestTrapLookupFail(t *testing.T) { FILE: plugins/common/snmp/translator_netsnmp.go type netsnmpTranslator (line 17) | type netsnmpTranslator struct method execCmd (line 38) | func (n *netsnmpTranslator) execCmd(arg0 string, args ...string) ([]by... method SnmpTable (line 63) | func (n *netsnmpTranslator) SnmpTable(oid string) ( method snmpTableCall (line 84) | func (n *netsnmpTranslator) snmpTableCall(oid string) ( method SnmpTranslate (line 160) | func (n *netsnmpTranslator) SnmpTranslate(oid string) ( method snmpTranslateCall (line 190) | func (n *netsnmpTranslator) snmpTranslateCall(oid string) (mibName str... method SnmpFormatEnum (line 270) | func (*netsnmpTranslator) SnmpFormatEnum(string, interface{}, bool) (s... method SnmpFormatDisplayHint (line 274) | func (*netsnmpTranslator) SnmpFormatDisplayHint(string, interface{}) (... function NewNetsnmpTranslator (line 21) | func NewNetsnmpTranslator(log telegraf.Logger) *netsnmpTranslator { type snmpTableCache (line 25) | type snmpTableCache struct type snmpTranslateCache (line 146) | type snmpTranslateCache struct FILE: plugins/common/snmp/translator_netsnmp_mocks_generate.go type mockedCommandResult (line 43) | type mockedCommandResult struct function main (line 49) | func main() { function generate (line 56) | func generate() error { FILE: plugins/common/snmp/translator_netsnmp_mocks_test.go type mockedCommandResult (line 11) | type mockedCommandResult struct function mockExecCommand (line 17) | func mockExecCommand(arg0 string, args ...string) *exec.Cmd { function TestMockExecCommand (line 27) | func TestMockExecCommand(_ *testing.T) { function init (line 65) | func init() { FILE: plugins/common/snmp/translator_netsnmp_test.go function TestFieldInit (line 12) | func TestFieldInit(t *testing.T) { function TestTableInit (line 45) | func TestTableInit(t *testing.T) { function TestTableBuild_walk (line 86) | func TestTableBuild_walk(t *testing.T) { function TestTableBuild_noWalk (line 184) | func TestTableBuild_noWalk(t *testing.T) { function TestSnmpTranslateCache_miss (line 230) | func TestSnmpTranslateCache_miss(t *testing.T) { function TestSnmpTranslateCache_hit (line 244) | func TestSnmpTranslateCache_hit(t *testing.T) { function TestSnmpTableCache_miss (line 262) | func TestSnmpTableCache_miss(t *testing.T) { function TestSnmpTableCache_hit (line 276) | func TestSnmpTableCache_hit(t *testing.T) { FILE: plugins/common/snmp/wrapper.go type Connection (line 16) | type Connection interface type GosnmpWrapper (line 25) | type GosnmpWrapper struct method Host (line 30) | func (gs GosnmpWrapper) Host() string { method Walk (line 36) | func (gs GosnmpWrapper) Walk(oid string, fn gosnmp.WalkFunc) error { method SetAgent (line 167) | func (gs *GosnmpWrapper) SetAgent(agent string) error { method Reconnect (line 203) | func (gs GosnmpWrapper) Reconnect() error { function NewWrapper (line 43) | func NewWrapper(s ClientConfig) (GosnmpWrapper, error) { FILE: plugins/common/snmp/wrapper_test.go type testSNMPConnection (line 5) | type testSNMPConnection struct method Host (line 10) | func (tsc *testSNMPConnection) Host() string { method Get (line 14) | func (tsc *testSNMPConnection) Get(oids []string) (*gosnmp.SnmpPacket,... method Walk (line 32) | func (tsc *testSNMPConnection) Walk(oid string, wf gosnmp.WalkFunc) er... method Reconnect (line 45) | func (*testSNMPConnection) Reconnect() error { FILE: plugins/common/socket/datagram.go type packetListener (line 24) | type packetListener struct method listenData (line 49) | func (l *packetListener) listenData(onData CallbackData, onError Callb... method listenConnection (line 100) | func (l *packetListener) listenConnection(onConnection CallbackConnect... method setupUnixgram (line 151) | func (l *packetListener) setupUnixgram(u *url.URL, socketMode string, ... method setupUDP (line 189) | func (l *packetListener) setupUDP(u *url.URL, ifname string, bufferSiz... method setupIP (line 227) | func (l *packetListener) setupIP(u *url.URL) error { method setupDecoder (line 238) | func (l *packetListener) setupDecoder() error { method address (line 258) | func (l *packetListener) address() net.Addr { method close (line 262) | func (l *packetListener) close() error { function newPacketListener (line 39) | func newPacketListener(encoding string, maxDecompressionSize config.Size... FILE: plugins/common/socket/socket.go type CallbackData (line 20) | type CallbackData type CallbackConnection (line 21) | type CallbackConnection type CallbackError (line 22) | type CallbackError type listener (line 24) | type listener interface type Config (line 31) | type Config struct method NewSocket (line 56) | func (cfg *Config) NewSocket(address string, splitcfg *SplitConfig, lo... type Socket (line 44) | type Socket struct method Setup (line 102) | func (s *Socket) Setup() error { method Listen (line 163) | func (s *Socket) Listen(onData CallbackData, onError CallbackError) { method ListenConnection (line 167) | func (s *Socket) ListenConnection(onConnection CallbackConnection, onE... method Close (line 171) | func (s *Socket) Close() { method Address (line 181) | func (s *Socket) Address() net.Addr { function isSourceAllowed (line 185) | func isSourceAllowed(allowed []net.IP, addr net.Addr) (bool, error) { FILE: plugins/common/socket/socket_test.go function TestListenData (line 29) | func TestListenData(t *testing.T) { function TestListenConnection (line 231) | func TestListenConnection(t *testing.T) { function TestClosingConnections (line 436) | func TestClosingConnections(t *testing.T) { function TestMaxConnections (line 501) | func TestMaxConnections(t *testing.T) { function TestNoSplitter (line 636) | func TestNoSplitter(t *testing.T) { function TestTLSMemLeak (line 744) | func TestTLSMemLeak(t *testing.T) { function createClient (line 839) | func createClient(endpoint string, addr net.Addr, tlsCfg *tls.Config) (n... FILE: plugins/common/socket/splitters.go type lengthFieldSpec (line 13) | type lengthFieldSpec struct type SplitConfig (line 21) | type SplitConfig struct method NewSplitter (line 28) | func (cfg *SplitConfig) NewSplitter() (bufio.SplitFunc, error) { function scanNull (line 94) | func scanNull(data []byte, atEOF bool) (advance int, token []byte, err e... function createScanDelimiter (line 108) | func createScanDelimiter(delimiter []byte) bufio.SplitFunc { function createScanFixedLength (line 124) | func createScanFixedLength(length int) bufio.SplitFunc { function createScanVariableLength (line 140) | func createScanVariableLength(spec lengthFieldSpec) bufio.SplitFunc { FILE: plugins/common/socket/stream.go type hasSetReadBuffer (line 30) | type hasSetReadBuffer interface type streamListener (line 34) | type streamListener struct method setupTCP (line 72) | func (l *streamListener) setupTCP(u *url.URL, tlsCfg *tls.Config) error { method setupUnix (line 82) | func (l *streamListener) setupUnix(u *url.URL, tlsCfg *tls.Config, soc... method setupVsock (line 117) | func (l *streamListener) setupVsock(u *url.URL) error { method setupConnection (line 147) | func (l *streamListener) setupConnection(conn net.Conn) error { method closeConnection (line 196) | func (l *streamListener) closeConnection(conn net.Conn) { method address (line 211) | func (l *streamListener) address() net.Addr { method close (line 215) | func (l *streamListener) close() error { method listenData (line 246) | func (l *streamListener) listenData(onData CallbackData, onError Callb... method handleReaderConn (line 289) | func (l *streamListener) handleReaderConn(ctx context.Context, conn ne... method listenConnection (line 311) | func (l *streamListener) listenConnection(onConnection CallbackConnect... method read (line 363) | func (l *streamListener) read(conn net.Conn, onData CallbackData) error { method readAll (line 421) | func (l *streamListener) readAll(conn net.Conn, onData CallbackData) e... method handleConnection (line 456) | func (l *streamListener) handleConnection(ctx context.Context, conn ne... function newStreamListener (line 54) | func newStreamListener(conf Config, splitter bufio.SplitFunc, log telegr... FILE: plugins/common/starlark/builtins.go function newMetric (line 14) | func newMetric(_ *starlark.Thread, _ *starlark.Builtin, args starlark.Tu... function toString (line 37) | func toString(value starlark.Value, errorMsg string) (string, error) { function items (line 44) | func items(value starlark.Value, errorMsg string) ([]starlark.Tuple, err... function deepcopy (line 51) | func deepcopy(_ *starlark.Thread, _ *starlark.Builtin, args starlark.Tup... function catch (line 71) | func catch(thread *starlark.Thread, _ *starlark.Builtin, args starlark.T... type builtinMethod (line 83) | type builtinMethod function builtinAttr (line 85) | func builtinAttr(recv starlark.Value, name string, methods map[string]bu... function builtinAttrNames (line 98) | func builtinAttrNames(methods map[string]builtinMethod) []string { function dictClear (line 110) | func dictClear(b *starlark.Builtin, args starlark.Tuple, kwargs []starla... function dictPop (line 122) | func dictPop(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark... function dictPopitem (line 142) | func dictPopitem(b *starlark.Builtin, args starlark.Tuple, kwargs []star... function dictGet (line 154) | func dictGet(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark... function dictSetdefault (line 170) | func dictSetdefault(b *starlark.Builtin, args starlark.Tuple, kwargs []s... function dictUpdate (line 191) | func dictUpdate(b *starlark.Builtin, args starlark.Tuple, kwargs []starl... function dictItems (line 268) | func dictItems(b *starlark.Builtin, args starlark.Tuple, kwargs []starla... function dictKeys (line 281) | func dictKeys(b *starlark.Builtin, args starlark.Tuple, kwargs []starlar... function dictValues (line 295) | func dictValues(b *starlark.Builtin, args starlark.Tuple, kwargs []starl... FILE: plugins/common/starlark/field_dict.go type FieldDict (line 16) | type FieldDict struct method String (line 20) | func (d FieldDict) String() string { method Type (line 36) | func (FieldDict) Type() string { method Freeze (line 40) | func (d FieldDict) Freeze() { method Truth (line 48) | func (d FieldDict) Truth() starlark.Bool { method Hash (line 52) | func (FieldDict) Hash() (uint32, error) { method AttrNames (line 57) | func (FieldDict) AttrNames() []string { method Attr (line 62) | func (d FieldDict) Attr(name string) (starlark.Value, error) { method Get (line 79) | func (d FieldDict) Get(key starlark.Value) (v starlark.Value, found bo... method SetKey (line 98) | func (d FieldDict) SetKey(k, v starlark.Value) error { method Items (line 118) | func (d FieldDict) Items() []starlark.Tuple { method Clear (line 132) | func (d FieldDict) Clear() error { method PopItem (line 148) | func (d FieldDict) PopItem() (starlark.Value, error) { method Delete (line 172) | func (d FieldDict) Delete(k starlark.Value) (v starlark.Value, found b... method Iterate (line 191) | func (d FieldDict) Iterate() starlark.Iterator { type FieldIterator (line 196) | type FieldIterator struct method Next (line 202) | func (i *FieldIterator) Next(p *starlark.Value) bool { method Done (line 215) | func (i *FieldIterator) Done() { function asStarlarkValue (line 220) | func asStarlarkValue(value interface{}) (starlark.Value, error) { function asGoValue (line 267) | func asGoValue(value interface{}) (interface{}, error) { function toFields (line 287) | func toFields(value starlark.Value) (map[string]interface{}, error) { FILE: plugins/common/starlark/logging.go function LogModule (line 14) | func LogModule(logger telegraf.Logger) *starlarkstruct.Module { function log (line 30) | func log(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tup... FILE: plugins/common/starlark/metric.go type Metric (line 14) | type Metric struct method Wrap (line 23) | func (m *Metric) Wrap(metric telegraf.Metric) { method Unwrap (line 34) | func (m *Metric) Unwrap() telegraf.Metric { method String (line 42) | func (m *Metric) String() string { method Type (line 59) | func (*Metric) Type() string { method Freeze (line 63) | func (m *Metric) Freeze() { method Truth (line 67) | func (*Metric) Truth() starlark.Bool { method Hash (line 71) | func (*Metric) Hash() (uint32, error) { method AttrNames (line 76) | func (*Metric) AttrNames() []string { method Attr (line 81) | func (m *Metric) Attr(name string) (starlark.Value, error) { method SetField (line 98) | func (m *Metric) SetField(name string, value starlark.Value) error { method Name (line 118) | func (m *Metric) Name() starlark.String { method SetName (line 122) | func (m *Metric) SetName(value starlark.Value) error { method Tags (line 131) | func (m *Metric) Tags() TagDict { method Fields (line 135) | func (m *Metric) Fields() FieldDict { method Time (line 139) | func (m *Metric) Time() starlark.Int { method SetTime (line 143) | func (m *Metric) SetTime(value starlark.Value) error { FILE: plugins/common/starlark/starlark.go type Common (line 19) | type Common struct method GetState (line 35) | func (s *Common) GetState() interface{} { method SetState (line 75) | func (s *Common) SetState(state interface{}) error { method Init (line 106) | func (s *Common) Init() error { method InitProgram (line 140) | func (s *Common) InitProgram() error { method GetParameters (line 176) | func (s *Common) GetParameters(name string) (starlark.Tuple, bool) { method AddFunction (line 181) | func (s *Common) AddFunction(name string, params ...starlark.Value) er... method addConstants (line 204) | func (s *Common) addConstants(builtins *starlark.StringDict) error { method sourceProgram (line 218) | func (s *Common) sourceProgram(builtins starlark.StringDict) (*starlar... method Call (line 238) | func (s *Common) Call(name string) (starlark.Value, error) { method LogError (line 250) | func (s *Common) LogError(err error) { function LoadFunc (line 261) | func LoadFunc(module string, logger telegraf.Logger) (starlark.StringDic... FILE: plugins/common/starlark/tag_dict.go type TagDict (line 14) | type TagDict struct method String (line 18) | func (d TagDict) String() string { method Type (line 34) | func (TagDict) Type() string { method Freeze (line 38) | func (d TagDict) Freeze() { method Truth (line 46) | func (d TagDict) Truth() starlark.Bool { method Hash (line 50) | func (TagDict) Hash() (uint32, error) { method AttrNames (line 55) | func (TagDict) AttrNames() []string { method Attr (line 60) | func (d TagDict) Attr(name string) (starlark.Value, error) { method Get (line 77) | func (d TagDict) Get(key starlark.Value) (v starlark.Value, found bool... method SetKey (line 91) | func (d TagDict) SetKey(k, v starlark.Value) error { method Items (line 111) | func (d TagDict) Items() []starlark.Tuple { method Clear (line 122) | func (d TagDict) Clear() error { method PopItem (line 138) | func (d TagDict) PopItem() (v starlark.Value, err error) { method Delete (line 157) | func (d TagDict) Delete(k starlark.Value) (v starlark.Value, found boo... method Iterate (line 176) | func (d TagDict) Iterate() starlark.Iterator { type TagIterator (line 181) | type TagIterator struct method Next (line 187) | func (i *TagIterator) Next(p *starlark.Value) bool { method Done (line 200) | func (i *TagIterator) Done() { function toTags (line 205) | func toTags(value starlark.Value) (map[string]string, error) { FILE: plugins/common/tls/common.go function init (line 19) | func init() { FILE: plugins/common/tls/config.go constant TLSMinVersionDefault (line 17) | TLSMinVersionDefault = tls.VersionTLS12 type ClientConfig (line 20) | type ClientConfig struct method TLSConfig (line 47) | func (c *ClientConfig) TLSConfig() (*tls.Config, error) { type ServerConfig (line 34) | type ServerConfig struct method TLSConfig (line 137) | func (c *ServerConfig) TLSConfig() (*tls.Config, error) { method verifyPeerCertificate (line 268) | func (c *ServerConfig) verifyPeerCertificate(rawCerts [][]byte, _ [][]... function makeCertPool (line 203) | func makeCertPool(certFiles []string) (*x509.CertPool, error) { function loadCertificate (line 217) | func loadCertificate(config *tls.Config, certFile, keyFile, privateKeyPa... FILE: plugins/common/tls/config_test.go function TestClientConfig (line 18) | func TestClientConfig(t *testing.T) { function TestServerConfig (line 169) | func TestServerConfig(t *testing.T) { function TestConnect (line 354) | func TestConnect(t *testing.T) { function TestConnectClientMinTLSVersion (line 396) | func TestConnectClientMinTLSVersion(t *testing.T) { function TestConnectClientInvalidMinTLSVersion (line 518) | func TestConnectClientInvalidMinTLSVersion(t *testing.T) { function TestConnectWrongDNS (line 531) | func TestConnectWrongDNS(t *testing.T) { function TestEnableFlagAuto (line 574) | func TestEnableFlagAuto(t *testing.T) { function TestEnableFlagDisabled (line 586) | func TestEnableFlagDisabled(t *testing.T) { function TestEnableFlagEnabled (line 597) | func TestEnableFlagEnabled(t *testing.T) { FILE: plugins/common/tls/utils.go function InsecureCiphers (line 13) | func InsecureCiphers(ciphers []string) []string { function Ciphers (line 27) | func Ciphers() (secure, insecure []string) { function ParseCiphers (line 41) | func ParseCiphers(ciphers []string) ([]uint16, error) { function ParseTLSVersion (line 101) | func ParseTLSVersion(version string) (uint16, error) { FILE: plugins/common/yangmodel/decoder.go type Decoder (line 21) | type Decoder struct method FindLeaf (line 134) | func (d *Decoder) FindLeaf(name, identifier string) (*yang.Leaf, error) { method DecodeLeafElement (line 235) | func (d *Decoder) DecodeLeafElement(namespace, identifier string, valu... method DecodePathElement (line 244) | func (d *Decoder) DecodePathElement(origin, path string, value interfa... function NewDecoder (line 26) | func NewDecoder(paths ...string) (*Decoder, error) { function DecodeLeafValue (line 151) | func DecodeLeafValue(leaf *yang.Leaf, value interface{}) (interface{}, e... FILE: plugins/inputs/activemq/activemq.go type ActiveMQ (line 25) | type ActiveMQ struct method SampleConfig (line 90) | func (*ActiveMQ) SampleConfig() string { method Init (line 94) | func (a *ActiveMQ) Init() error { method Gather (line 125) | func (a *ActiveMQ) Gather(acc telegraf.Accumulator) error { method createHTTPClient (line 163) | func (a *ActiveMQ) createHTTPClient() (*http.Client, error) { method getMetrics (line 179) | func (a *ActiveMQ) getMetrics(u string) ([]byte, error) { method gatherQueuesMetrics (line 202) | func (a *ActiveMQ) gatherQueuesMetrics(acc telegraf.Accumulator, queue... method gatherTopicsMetrics (line 220) | func (a *ActiveMQ) gatherTopicsMetrics(acc telegraf.Accumulator, topic... method gatherSubscribersMetrics (line 238) | func (a *ActiveMQ) gatherSubscribersMetrics(acc telegraf.Accumulator, ... method queuesURL (line 262) | func (a *ActiveMQ) queuesURL() string { method topicsURL (line 267) | func (a *ActiveMQ) topicsURL() string { method subscribersURL (line 272) | func (a *ActiveMQ) subscribersURL() string { type topics (line 39) | type topics struct type topic (line 44) | type topic struct type subscribers (line 50) | type subscribers struct type subscriber (line 55) | type subscriber struct type queues (line 66) | type queues struct type queue (line 71) | type queue struct type stats (line 77) | type stats struct function init (line 277) | func init() { FILE: plugins/inputs/activemq/activemq_test.go function TestGatherQueuesMetrics (line 14) | func TestGatherQueuesMetrics(t *testing.T) { function TestGatherTopicsMetrics (line 59) | func TestGatherTopicsMetrics(t *testing.T) { function TestGatherSubscribersMetrics (line 105) | func TestGatherSubscribersMetrics(t *testing.T) { function TestURLs (line 144) | func TestURLs(t *testing.T) { FILE: plugins/inputs/aerospike/aerospike.go type Aerospike (line 25) | type Aerospike struct method SampleConfig (line 57) | func (*Aerospike) SampleConfig() string { method Init (line 61) | func (a *Aerospike) Init() error { method Gather (line 81) | func (a *Aerospike) Gather(acc telegraf.Accumulator) error { method gatherServer (line 99) | func (a *Aerospike) gatherServer(acc telegraf.Accumulator, hostPort st... method getNamespaces (line 216) | func (a *Aerospike) getNamespaces(n *as.Node, infoPolicy *as.InfoPolic... method getSets (line 260) | func (a *Aerospike) getSets(n *as.Node, infoPolicy *as.InfoPolicy) ([]... method getTTLHistogram (line 327) | func (a *Aerospike) getTTLHistogram(acc telegraf.Accumulator, hostPort... method getObjectSizeLinearHistogram (line 339) | func (a *Aerospike) getObjectSizeLinearHistogram(acc telegraf.Accumula... method parseHistogram (line 366) | func (a *Aerospike) parseHistogram(acc telegraf.Accumulator, stats, nT... function getNodeInfo (line 189) | func getNodeInfo(n *as.Node, infoPolicy *as.InfoPolicy) (map[string]stri... function parseNodeInfo (line 198) | func parseNodeInfo(acc telegraf.Accumulator, stats map[string]string, ho... function getNamespaceInfo (line 231) | func getNamespaceInfo(namespace string, n *as.Node, infoPolicy *as.InfoP... function parseNamespaceInfo (line 240) | func parseNamespaceInfo(acc telegraf.Accumulator, stats map[string]strin... function getSetInfo (line 297) | func getSetInfo(namespaceSet string, n *as.Node, infoPolicy *as.InfoPoli... function parseSetInfo (line 305) | func parseSetInfo(acc telegraf.Accumulator, stats map[string]string, hos... function getHistogram (line 351) | func getHistogram(namespace, set, histogramType string, n *as.Node, info... function splitNamespaceSet (line 416) | func splitNamespaceSet(namespaceSet string) (namespace, set string) { function parseAerospikeValue (line 421) | func parseAerospikeValue(key, v string) interface{} { function createTags (line 437) | func createTags(hostPort, nodeName, namespace, set string) map[string]st... function init (line 450) | func init() { FILE: plugins/inputs/aerospike/aerospike_test.go constant servicePort (line 15) | servicePort = "3000" function launchTestServer (line 17) | func launchTestServer(t *testing.T) *testutil.Container { function TestAerospikeStatisticsIntegration (line 29) | func TestAerospikeStatisticsIntegration(t *testing.T) { function TestAerospikeStatisticsPartialErrIntegration (line 56) | func TestAerospikeStatisticsPartialErrIntegration(t *testing.T) { function TestSelectNamespacesIntegration (line 83) | func TestSelectNamespacesIntegration(t *testing.T) { function TestDisableQueryNamespacesIntegration (line 120) | func TestDisableQueryNamespacesIntegration(t *testing.T) { function TestQuerySetsIntegration (line 150) | func TestQuerySetsIntegration(t *testing.T) { function TestSelectQuerySetsIntegration (line 205) | func TestSelectQuerySetsIntegration(t *testing.T) { function TestDisableTTLHistogramIntegration (line 261) | func TestDisableTTLHistogramIntegration(t *testing.T) { function TestDisableObjectSizeLinearHistogramIntegration (line 286) | func TestDisableObjectSizeLinearHistogramIntegration(t *testing.T) { function TestInit (line 311) | func TestInit(t *testing.T) { function TestParseNodeInfo (line 320) | func TestParseNodeInfo(t *testing.T) { function TestParseNamespaceInfo (line 341) | func TestParseNamespaceInfo(t *testing.T) { function TestParseSetInfo (line 365) | func TestParseSetInfo(t *testing.T) { function TestParseHistogramSet (line 387) | func TestParseHistogramSet(t *testing.T) { function TestParseHistogramNamespace (line 420) | func TestParseHistogramNamespace(t *testing.T) { function TestAerospikeParseValue (line 452) | func TestAerospikeParseValue(t *testing.T) { function FindTagValue (line 479) | func FindTagValue(acc *testutil.Accumulator, measurement, key, value str... FILE: plugins/inputs/aliyuncms/aliyuncms.go type AliyunCMS (line 30) | type AliyunCMS struct method SampleConfig (line 106) | func (*AliyunCMS) SampleConfig() string { method Init (line 110) | func (s *AliyunCMS) Init() error { method Start (line 203) | func (s *AliyunCMS) Start(telegraf.Accumulator) error { method Gather (line 212) | func (s *AliyunCMS) Gather(acc telegraf.Accumulator) error { method Stop (line 238) | func (s *AliyunCMS) Stop() { method updateWindow (line 244) | func (s *AliyunCMS) updateWindow(relativeTo time.Time) { method gatherMetric (line 264) | func (s *AliyunCMS) gatherMetric(acc telegraf.Accumulator, metricName ... method prepareTagsAndDimensions (line 367) | func (s *AliyunCMS) prepareTagsAndDimensions(metric *metric) { type metric (line 60) | type metric struct type aliyuncmsClient (line 76) | type aliyuncmsClient interface function parseTag (line 337) | func parseTag(tagSpec string, data interface{}) (tagKey, tagValue string... function formatField (line 469) | func formatField(metricName, statistic string) string { function formatMeasurement (line 476) | func formatMeasurement(project string) string { function snakeCase (line 482) | func snakeCase(s string) string { function init (line 488) | func init() { FILE: plugins/inputs/aliyuncms/aliyuncms_test.go constant inputTitle (line 25) | inputTitle = "inputs.aliyuncms" type mockGatherAliyunCMSClient (line 27) | type mockGatherAliyunCMSClient struct method DescribeMetricList (line 29) | func (*mockGatherAliyunCMSClient) DescribeMetricList(request *cms.Desc... type mockAliyunSDKCli (line 72) | type mockAliyunSDKCli struct method ProcessCommonRequest (line 76) | func (m *mockAliyunSDKCli) ProcessCommonRequest(_ *requests.CommonRequ... function getDiscoveryTool (line 80) | func getDiscoveryTool(project string, discoverRegions []string) (*discov... function getMockSdkCli (line 108) | func getMockSdkCli(httpResp *http.Response) (mockAliyunSDKCli, error) { function TestPluginDefaults (line 116) | func TestPluginDefaults(t *testing.T) { function TestPluginInitialize (line 123) | func TestPluginInitialize(t *testing.T) { function TestPluginMetricsInitialize (line 203) | func TestPluginMetricsInitialize(t *testing.T) { function TestUpdateWindow (line 301) | func TestUpdateWindow(t *testing.T) { function TestGatherMetric (line 334) | func TestGatherMetric(t *testing.T) { function TestGather (line 372) | func TestGather(t *testing.T) { function TestGetDiscoveryDataAcrossRegions (line 441) | func TestGetDiscoveryDataAcrossRegions(t *testing.T) { FILE: plugins/inputs/aliyuncms/discovery.go type discoveryRequest (line 26) | type discoveryRequest interface type aliyunSdkClient (line 29) | type aliyunSdkClient interface type discoveryTool (line 34) | type discoveryTool struct method parseDiscoveryResponse (line 253) | func (dt *discoveryTool) parseDiscoveryResponse(resp *responses.Common... method getDiscoveryData (line 304) | func (dt *discoveryTool) getDiscoveryData(cli aliyunSdkClient, req *re... method getDiscoveryDataAcrossRegions (line 355) | func (dt *discoveryTool) getDiscoveryDataAcrossRegions(lmtr chan bool)... method start (line 396) | func (dt *discoveryTool) start() { method stop (line 442) | func (dt *discoveryTool) stop() { type parsedDResp (line 50) | type parsedDResp struct function getRPCReqFromDiscoveryRequest (line 59) | func getRPCReqFromDiscoveryRequest(req discoveryRequest) (*requests.RpcR... function newDiscoveryTool (line 91) | func newDiscoveryTool( FILE: plugins/inputs/amd_rocm_smi/amd_rocm_smi.go constant measurement (line 23) | measurement = "amd_rocm_smi" type ROCmSMI (line 25) | type ROCmSMI struct method SampleConfig (line 109) | func (*ROCmSMI) SampleConfig() string { method Start (line 113) | func (rsmi *ROCmSMI) Start(telegraf.Accumulator) error { method Gather (line 125) | func (rsmi *ROCmSMI) Gather(acc telegraf.Accumulator) error { method Stop (line 134) | func (*ROCmSMI) Stop() {} method pollROCmSMI (line 136) | func (rsmi *ROCmSMI) pollROCmSMI() ([]byte, error) { type gpu (line 31) | type gpu struct type sysInfo (line 100) | type sysInfo struct type gpuMetric (line 104) | type gpuMetric struct function genTagsFields (line 182) | func genTagsFields(gpus map[string]gpu, system map[string]sysInfo) []gpu... function gatherROCmSMI (line 233) | func gatherROCmSMI(ret []byte, acc telegraf.Accumulator) error { function setTagIfUsed (line 255) | func setTagIfUsed(m map[string]string, k, v string) { function setIfUsed (line 261) | func setIfUsed(t string, m map[string]interface{}, k, v string) { function init (line 298) | func init() { FILE: plugins/inputs/amd_rocm_smi/amd_rocm_smi_test.go function TestErrorBehaviorDefault (line 17) | func TestErrorBehaviorDefault(t *testing.T) { function TestErrorBehaviorError (line 35) | func TestErrorBehaviorError(t *testing.T) { function TestErrorBehaviorRetry (line 54) | func TestErrorBehaviorRetry(t *testing.T) { function TestErrorBehaviorIgnore (line 73) | func TestErrorBehaviorIgnore(t *testing.T) { function TestGatherValidJSON (line 92) | func TestGatherValidJSON(t *testing.T) { FILE: plugins/inputs/amqp_consumer/amqp_consumer.go type empty (line 28) | type empty struct type externalAuth (line 29) | type externalAuth struct method Mechanism (line 67) | func (*externalAuth) Mechanism() string { method Response (line 72) | func (*externalAuth) Response() string { type semaphore (line 31) | type semaphore type AMQPConsumer (line 33) | type AMQPConsumer struct method SampleConfig (line 76) | func (*AMQPConsumer) SampleConfig() string { method Init (line 80) | func (a *AMQPConsumer) Init() error { method SetParser (line 113) | func (a *AMQPConsumer) SetParser(parser telegraf.Parser) { method Start (line 117) | func (a *AMQPConsumer) Start(acc telegraf.Accumulator) error { method Gather (line 176) | func (*AMQPConsumer) Gather(_ telegraf.Accumulator) error { method Stop (line 180) | func (a *AMQPConsumer) Stop() { method createConfig (line 194) | func (a *AMQPConsumer) createConfig() (*amqp.Config, error) { method connect (line 233) | func (a *AMQPConsumer) connect(amqpConf *amqp.Config) (<-chan amqp.Del... method declareExchange (line 329) | func (a *AMQPConsumer) declareExchange( method declareQueue (line 362) | func (a *AMQPConsumer) declareQueue(channel *amqp.Channel) (*amqp.Queu... method process (line 402) | func (a *AMQPConsumer) process(ctx context.Context, msgs <-chan amqp.D... method onMessage (line 439) | func (a *AMQPConsumer) onMessage(acc telegraf.TrackingAccumulator, d a... method onDelivery (line 471) | func (a *AMQPConsumer) onDelivery(track telegraf.DeliveryInfo) bool { function init (line 496) | func init() { FILE: plugins/inputs/amqp_consumer/amqp_consumer_test.go function TestAutoEncoding (line 22) | func TestAutoEncoding(t *testing.T) { function TestIntegration (line 70) | func TestIntegration(t *testing.T) { function TestStartupErrorBehaviorError (line 152) | func TestStartupErrorBehaviorError(t *testing.T) { function TestStartupErrorBehaviorIgnore (line 214) | func TestStartupErrorBehaviorIgnore(t *testing.T) { function TestStartupErrorBehaviorRetry (line 281) | func TestStartupErrorBehaviorRetry(t *testing.T) { type producer (line 385) | type producer struct method close (line 427) | func (p *producer) close() { method write (line 432) | func (p *producer) write(testContext context.Context, exchange, key st... function newProducer (line 391) | func newProducer(url, vhost, exchange, exchangeType, queueName, key stri... FILE: plugins/inputs/apache/apache.go type Apache (line 25) | type Apache struct method SampleConfig (line 35) | func (*Apache) SampleConfig() string { method Gather (line 39) | func (n *Apache) Gather(acc telegraf.Accumulator) error { method createHTTPClient (line 75) | func (n *Apache) createHTTPClient() (*http.Client, error) { method gatherURL (line 91) | func (n *Apache) gatherURL(addr *url.URL, acc telegraf.Accumulator) er... function gatherScores (line 140) | func gatherScores(data string) map[string]interface{} { function getTags (line 188) | func getTags(addr *url.URL) map[string]string { function init (line 204) | func init() { FILE: plugins/inputs/apache/apache_test.go function TestHTTPApache (line 32) | func TestHTTPApache(t *testing.T) { FILE: plugins/inputs/apcupsd/apcupsd.go constant defaultAddress (line 22) | defaultAddress = "tcp://127.0.0.1:3551" type ApcUpsd (line 26) | type ApcUpsd struct method SampleConfig (line 31) | func (*ApcUpsd) SampleConfig() string { method Gather (line 35) | func (h *ApcUpsd) Gather(acc telegraf.Accumulator) error { function fetchStatus (line 100) | func fetchStatus(ctx context.Context, addr *url.URL) (*apcupsd.Status, e... function init (line 110) | func init() { FILE: plugins/inputs/apcupsd/apcupsd_test.go function TestApcupsdDocs (line 17) | func TestApcupsdDocs(_ *testing.T) { function TestApcupsdInit (line 22) | func TestApcupsdInit(t *testing.T) { function listen (line 31) | func listen(ctx context.Context, t *testing.T, out [][]byte) (string, er... function TestConfig (line 84) | func TestConfig(t *testing.T) { function TestApcupsdGather (line 122) | func TestApcupsdGather(t *testing.T) { function kvBytes (line 200) | func kvBytes(kv string) (keyValLen, keyVal []byte) { function genOutput (line 207) | func genOutput() [][]byte { function genBadOutput (line 240) | func genBadOutput() [][]byte { FILE: plugins/inputs/aurora/aurora.go type roleType (line 24) | type roleType method String (line 32) | func (r roleType) String() string { constant unknown (line 27) | unknown roleType = iota constant leader (line 28) | leader constant follower (line 29) | follower type vars (line 48) | type vars type Aurora (line 50) | type Aurora struct method SampleConfig (line 62) | func (*Aurora) SampleConfig() string { method Gather (line 66) | func (a *Aurora) Gather(acc telegraf.Accumulator) error { method initialize (line 103) | func (a *Aurora) initialize() error { method roleEnabled (line 139) | func (a *Aurora) roleEnabled(role roleType) bool { method gatherRole (line 152) | func (a *Aurora) gatherRole(ctx context.Context, origin *url.URL) (rol... method gatherScheduler (line 185) | func (a *Aurora) gatherScheduler( function init (line 254) | func init() { FILE: plugins/inputs/aurora/aurora_test.go type testHandlerFunc (line 15) | type testHandlerFunc type checkFunc (line 16) | type checkFunc function TestAurora (line 19) | func TestAurora(t *testing.T) { function TestBasicAuth (line 218) | func TestBasicAuth(t *testing.T) { FILE: plugins/inputs/azure_monitor/azure_monitor.go type AzureMonitor (line 18) | type AzureMonitor struct method SampleConfig (line 61) | func (*AzureMonitor) SampleConfig() string { method Init (line 65) | func (am *AzureMonitor) Init() error { method Gather (line 116) | func (am *AzureMonitor) Gather(acc telegraf.Accumulator) error { method setReceiver (line 145) | func (am *AzureMonitor) setReceiver() error { type resourceTarget (line 34) | type resourceTarget struct type resourceGroupTarget (line 40) | type resourceGroupTarget struct type resource (line 45) | type resource struct type azureClientsManager (line 51) | type azureClientsManager struct method createAzureClients (line 173) | func (*azureClientsManager) createAzureClients( type azureClientsCreator (line 53) | type azureClientsCreator interface function init (line 189) | func init() { FILE: plugins/inputs/azure_monitor/azure_monitor_test.go type mockAzureClientsManager (line 22) | type mockAzureClientsManager struct method createAzureClients (line 30) | func (*mockAzureClientsManager) createAzureClients(_, _, _, _ string, ... type mockAzureResourcesClient (line 24) | type mockAzureResourcesClient struct method List (line 39) | func (*mockAzureResourcesClient) List(_ context.Context, _ *armresourc... method ListByResourceGroup (line 59) | func (*mockAzureResourcesClient) ListByResourceGroup( type mockAzureMetricDefinitionsClient (line 26) | type mockAzureMetricDefinitionsClient struct method List (line 105) | func (*mockAzureMetricDefinitionsClient) List( type mockAzureMetricsClient (line 28) | type mockAzureMetricsClient struct method List (line 146) | func (*mockAzureMetricsClient) List( function TestInit_ResourceTargetsOnly (line 199) | func TestInit_ResourceTargetsOnly(t *testing.T) { function TestInit_ResourceGroupTargetsOnly (line 298) | func TestInit_ResourceGroupTargetsOnly(t *testing.T) { function TestInit_SubscriptionTargetsOnly (line 419) | func TestInit_SubscriptionTargetsOnly(t *testing.T) { function TestInit_AllTargetTypes (line 567) | func TestInit_AllTargetTypes(t *testing.T) { function TestInit_NoSubscriptionID (line 599) | func TestInit_NoSubscriptionID(t *testing.T) { function TestInit_NoTargets (line 614) | func TestInit_NoTargets(t *testing.T) { function TestInit_ResourceTargetWithoutResourceID (line 629) | func TestInit_ResourceTargetWithoutResourceID(t *testing.T) { function TestInit_ResourceTargetWithInvalidResourceID (line 644) | func TestInit_ResourceTargetWithInvalidResourceID(t *testing.T) { function TestInit_ResourceTargetWithInvalidMetric (line 659) | func TestInit_ResourceTargetWithInvalidMetric(t *testing.T) { function TestInit_ResourceTargetWithInvalidAggregation (line 674) | func TestInit_ResourceTargetWithInvalidAggregation(t *testing.T) { function TestInit_ResourceGroupTargetWithoutResourceGroup (line 689) | func TestInit_ResourceGroupTargetWithoutResourceGroup(t *testing.T) { function TestInit_ResourceGroupTargetWithResourceWithoutResourceType (line 704) | func TestInit_ResourceGroupTargetWithResourceWithoutResourceType(t *test... function TestInit_ResourceGroupTargetWithInvalidResourceGroup (line 719) | func TestInit_ResourceGroupTargetWithInvalidResourceGroup(t *testing.T) { function TestInit_ResourceGroupTargetWithInvalidResourceType (line 734) | func TestInit_ResourceGroupTargetWithInvalidResourceType(t *testing.T) { function TestInit_ResourceGroupTargetWithInvalidMetric (line 749) | func TestInit_ResourceGroupTargetWithInvalidMetric(t *testing.T) { function TestInit_ResourceGroupTargetWithInvalidAggregation (line 764) | func TestInit_ResourceGroupTargetWithInvalidAggregation(t *testing.T) { function TestInit_ResourceGroupTargetWithoutResources (line 779) | func TestInit_ResourceGroupTargetWithoutResources(t *testing.T) { function TestInit_ResourceGroupTargetNoResourceFound (line 794) | func TestInit_ResourceGroupTargetNoResourceFound(t *testing.T) { function TestInit_SubscriptionTargetWithoutResourceType (line 809) | func TestInit_SubscriptionTargetWithoutResourceType(t *testing.T) { function TestInit_SubscriptionTargetWithInvalidResourceType (line 824) | func TestInit_SubscriptionTargetWithInvalidResourceType(t *testing.T) { function TestInit_SubscriptionTargetWithInvalidMetric (line 839) | func TestInit_SubscriptionTargetWithInvalidMetric(t *testing.T) { function TestInit_SubscriptionTargetWithInvalidAggregation (line 854) | func TestInit_SubscriptionTargetWithInvalidAggregation(t *testing.T) { function TestInit_SubscriptionTargetNoResourceFound (line 869) | func TestInit_SubscriptionTargetNoResourceFound(t *testing.T) { function TestInit_BadCredentials (line 884) | func TestInit_BadCredentials(t *testing.T) { function TestGather_Success (line 898) | func TestGather_Success(t *testing.T) { function TestGather_China_Success (line 984) | func TestGather_China_Success(t *testing.T) { function TestGather_Government_Success (line 1017) | func TestGather_Government_Success(t *testing.T) { function TestGather_Public_Success (line 1050) | func TestGather_Public_Success(t *testing.T) { FILE: plugins/inputs/azure_storage_queue/azure_storage_queue.go type AzureStorageQueue (line 21) | type AzureStorageQueue struct method SampleConfig (line 31) | func (*AzureStorageQueue) SampleConfig() string { method Init (line 35) | func (a *AzureStorageQueue) Init() error { method Gather (line 63) | func (a *AzureStorageQueue) Gather(acc telegraf.Accumulator) error { function init (line 119) | func init() { FILE: plugins/inputs/azure_storage_queue/azure_storage_queue_test.go function TestEmulatorIntegration (line 20) | func TestEmulatorIntegration(t *testing.T) { FILE: plugins/inputs/bcache/bcache.go type Bcache (line 22) | type Bcache struct method SampleConfig (line 27) | func (*Bcache) SampleConfig() string { method Gather (line 31) | func (b *Bcache) Gather(acc telegraf.Accumulator) error { function getTags (line 63) | func getTags(bdev string) map[string]string { function prettyToBytes (line 77) | func prettyToBytes(v string) uint64 { function gatherBcache (line 100) | func gatherBcache(bdev string, acc telegraf.Accumulator) error { function init (line 141) | func init() { FILE: plugins/inputs/bcache/bcache_notlinux.go type Bcache (line 16) | type Bcache struct method SampleConfig (line 20) | func (*Bcache) SampleConfig() string { return sampleConfig } method Init (line 22) | func (b *Bcache) Init() error { method Gather (line 27) | func (*Bcache) Gather(_ telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/bcache/bcache_test.go constant dirtyData (line 15) | dirtyData = "1.5G" constant bypassed (line 16) | bypassed = "4.7T" constant cacheBypassHits (line 17) | cacheBypassHits = "146155333" constant cacheBypassMisses (line 18) | cacheBypassMisses = "0" constant cacheHitRatio (line 19) | cacheHitRatio = "90" constant cacheHits (line 20) | cacheHits = "511469583" constant cacheMissCollisions (line 21) | cacheMissCollisions = "157567" constant cacheMisses (line 22) | cacheMisses = "50616331" constant cacheReadaheads (line 23) | cacheReadaheads = "2" function TestBcacheGeneratesMetrics (line 26) | func TestBcacheGeneratesMetrics(t *testing.T) { FILE: plugins/inputs/beanstalkd/beanstalkd.go type Beanstalkd (line 20) | type Beanstalkd struct method SampleConfig (line 25) | func (*Beanstalkd) SampleConfig() string { method Gather (line 29) | func (b *Beanstalkd) Gather(acc telegraf.Accumulator) error { method gatherServerStats (line 71) | func (b *Beanstalkd) gatherServerStats(connection *textproto.Conn, acc... method gatherTubeStats (line 136) | func (b *Beanstalkd) gatherTubeStats(connection *textproto.Conn, tube ... function runQuery (line 167) | func runQuery(connection *textproto.Conn, cmd string, result interface{}... function init (line 194) | func init() { type statsResponse (line 200) | type statsResponse struct type statsTubeResponse (line 251) | type statsTubeResponse struct FILE: plugins/inputs/beanstalkd/beanstalkd_test.go function TestBeanstalkd (line 16) | func TestBeanstalkd(t *testing.T) { function startTestServer (line 99) | func startTestServer(t *testing.T) (net.Listener, error) { constant listTubesResponse (line 166) | listTubesResponse = `--- constant statsResponse (line 170) | statsResponse = `--- constant statsTubeDefaultResponse (line 220) | statsTubeDefaultResponse = `--- constant statsTubeTestResponse (line 236) | statsTubeTestResponse = `--- function getOverviewTags (line 337) | func getOverviewTags(server string) map[string]string { function getTubeTags (line 346) | func getTubeTags(server, tube string) map[string]string { FILE: plugins/inputs/beat/beat.go constant suffixInfo (line 24) | suffixInfo = "/" constant suffixStats (line 25) | suffixStats = "/stats" type Beat (line 28) | type Beat struct method SampleConfig (line 59) | func (*Beat) SampleConfig() string { method Init (line 63) | func (beat *Beat) Init() error { method Gather (line 81) | func (beat *Beat) Gather(accumulator telegraf.Accumulator) error { method createHTTPClient (line 143) | func (beat *Beat) createHTTPClient() (*http.Client, error) { method gatherJSONData (line 160) | func (beat *Beat) gatherJSONData(address string, value interface{}) er... type info (line 44) | type info struct type stats (line 52) | type stats struct function newBeat (line 186) | func newBeat() *Beat { function init (line 196) | func init() { FILE: plugins/inputs/beat/beat_test.go function Test_BeatStats (line 17) | func Test_BeatStats(t *testing.T) { function Test_BeatRequest (line 170) | func Test_BeatRequest(t *testing.T) { FILE: plugins/inputs/bind/bind.go type Bind (line 20) | type Bind struct method SampleConfig (line 30) | func (*Bind) SampleConfig() string { method Init (line 34) | func (b *Bind) Init() error { method Gather (line 42) | func (b *Bind) Gather(acc telegraf.Accumulator) error { method gatherURL (line 67) | func (b *Bind) gatherURL(addr *url.URL, acc telegraf.Accumulator) error { function init (line 87) | func init() { FILE: plugins/inputs/bind/bind_test.go function TestBindJsonStats (line 18) | func TestBindJsonStats(t *testing.T) { function TestBindXmlStatsV2 (line 193) | func TestBindXmlStatsV2(t *testing.T) { function TestBindXmlStatsV3 (line 399) | func TestBindXmlStatsV3(t *testing.T) { function TestBindXmlStatsV3Signed (line 625) | func TestBindXmlStatsV3Signed(t *testing.T) { function TestBindXmlStatsV3Unsigned (line 1251) | func TestBindXmlStatsV3Unsigned(t *testing.T) { function TestBindUnparsableURL (line 1877) | func TestBindUnparsableURL(t *testing.T) { FILE: plugins/inputs/bind/json_stats.go type jsonStats (line 16) | type jsonStats struct type jsonMemory (line 27) | type jsonMemory struct type jsonView (line 41) | type jsonView struct function addJSONCounter (line 46) | func addJSONCounter(acc telegraf.Accumulator, commonTags map[string]stri... method addStatsJSON (line 71) | func (b *Bind) addStatsJSON(stats jsonStats, acc telegraf.Accumulator, u... method readStatsJSON (line 154) | func (b *Bind) readStatsJSON(addr *url.URL, acc telegraf.Accumulator) er... FILE: plugins/inputs/bind/xml_stats_v2.go type v2Root (line 15) | type v2Root struct type v2Statistics (line 22) | type v2Statistics struct type v2Counter (line 61) | type v2Counter struct function addXMLv2Counter (line 67) | func addXMLv2Counter(acc telegraf.Accumulator, commonTags map[string]str... method readStatsXMLv2 (line 89) | func (b *Bind) readStatsXMLv2(addr *url.URL, acc telegraf.Accumulator) e... FILE: plugins/inputs/bind/xml_stats_v3.go type v3Stats (line 19) | type v3Stats struct type v3Memory (line 26) | type v3Memory struct type v3Server (line 44) | type v3Server struct type v3View (line 49) | type v3View struct type v3CounterGroup (line 63) | type v3CounterGroup struct method addStatsXMLv3 (line 72) | func (b *Bind) addStatsXMLv3(stats v3Stats, acc telegraf.Accumulator, ho... method readStatsXMLv3 (line 156) | func (b *Bind) readStatsXMLv3(addr *url.URL, acc telegraf.Accumulator) e... method postProcessFields (line 191) | func (b *Bind) postProcessFields(fields map[string]interface{}) { FILE: plugins/inputs/bond/bond.go type Bond (line 21) | type Bond struct method SampleConfig (line 35) | func (*Bond) SampleConfig() string { method Gather (line 39) | func (bond *Bond) Gather(acc telegraf.Accumulator) error { method gatherBondInterface (line 75) | func (bond *Bond) gatherBondInterface(bondName, rawFile string, acc te... method gatherBondPart (line 94) | func (bond *Bond) gatherBondPart(bondName, rawFile string, acc telegra... method readSysFiles (line 136) | func (bond *Bond) readSysFiles(bondDir string) (sysFiles, error) { method gatherSlavePart (line 206) | func (bond *Bond) gatherSlavePart(bondName, rawFile string, acc telegr... method loadPaths (line 281) | func (bond *Bond) loadPaths() { method listInterfaces (line 290) | func (bond *Bond) listInterfaces() ([]string, error) { type sysFiles (line 29) | type sysFiles struct function gatherSysDetails (line 167) | func gatherSysDetails(bondName string, files sysFiles, acc telegraf.Accu... function init (line 306) | func init() { FILE: plugins/inputs/bond/bond_test.go constant sampleTestAB (line 11) | sampleTestAB = ` constant sampleTestLACP (line 38) | sampleTestLACP = ` constant sampleTestLACPFirstUpSecondDown (line 80) | sampleTestLACPFirstUpSecondDown = ` constant sampleSysMode (line 122) | sampleSysMode = "802.3ad 5" constant sampleSysSlaves (line 123) | sampleSysSlaves = "eth0 eth1 " constant sampleSysAdPorts (line 124) | sampleSysAdPorts = " 2 " function TestGatherBondInterface (line 126) | func TestGatherBondInterface(t *testing.T) { FILE: plugins/inputs/burrow/burrow.go constant defaultBurrowPrefix (line 27) | defaultBurrowPrefix = "/v3/kafka" constant defaultConcurrentConnections (line 28) | defaultConcurrentConnections = 20 constant defaultResponseTimeout (line 29) | defaultResponseTimeout = time.Second * 5 constant defaultServer (line 30) | defaultServer = "http://localhost:8000" type Burrow (line 34) | type Burrow struct method SampleConfig (line 94) | func (*Burrow) SampleConfig() string { method Gather (line 98) | func (b *Burrow) Gather(acc telegraf.Accumulator) error { method setDefaults (line 138) | func (b *Burrow) setDefaults() { method compileGlobs (line 150) | func (b *Burrow) compileGlobs() error { method createClient (line 169) | func (b *Burrow) createClient() (*http.Client, error) { method getResponse (line 196) | func (b *Burrow) getResponse(u *url.URL) (*apiResponse, error) { method gatherServer (line 221) | func (b *Burrow) gatherServer(src *url.URL, acc telegraf.Accumulator) ... method gatherTopics (line 260) | func (b *Burrow) gatherTopics(guard chan struct{}, src *url.URL, clust... method gatherGroups (line 317) | func (b *Burrow) gatherGroups(guard chan struct{}, src *url.URL, clust... method genGroupLagMetrics (line 396) | func (b *Burrow) genGroupLagMetrics(r *apiResponse, cluster, group str... type apiResponse (line 58) | type apiResponse struct type apiStatusResponse (line 67) | type apiStatusResponse struct type apiStatusResponseLag (line 76) | type apiStatusResponseLag struct type apiStatusResponseLagItem (line 87) | type apiStatusResponseLagItem struct function genTopicMetrics (line 299) | func genTopicMetrics(r *apiResponse, cluster, topic string, acc telegraf... function genGroupStatusMetrics (line 357) | func genGroupStatusMetrics(r *apiResponse, cluster, group string, acc te... function appendPathToURL (line 421) | func appendPathToURL(src *url.URL, parts ...string) *url.URL { function mapStatusToCode (line 434) | func mapStatusToCode(src string) int { function init (line 453) | func init() { FILE: plugins/inputs/burrow/burrow_test.go function getResponseJSON (line 17) | func getResponseJSON(requestURI string) ([]byte, int) { function getHTTPServer (line 38) | func getHTTPServer() *httptest.Server { function getHTTPServerBasicAuth (line 48) | func getHTTPServerBasicAuth() *httptest.Server { function TestBurrowTopic (line 72) | func TestBurrowTopic(t *testing.T) { function TestBurrowPartition (line 101) | func TestBurrowPartition(t *testing.T) { function TestBurrowGroup (line 149) | func TestBurrowGroup(t *testing.T) { function TestMultipleServers (line 184) | func TestMultipleServers(t *testing.T) { function TestMultipleRuns (line 202) | func TestMultipleRuns(t *testing.T) { function TestBasicAuthConfig (line 219) | func TestBasicAuthConfig(t *testing.T) { function TestFilterClusters (line 237) | func TestFilterClusters(t *testing.T) { function TestFilterGroups (line 255) | func TestFilterGroups(t *testing.T) { function TestFilterTopics (line 273) | func TestFilterTopics(t *testing.T) { FILE: plugins/inputs/ceph/ceph.go constant measurement (line 22) | measurement = "ceph" constant typeMon (line 23) | typeMon = "monitor" constant typeOsd (line 24) | typeOsd = "osd" constant typeMds (line 25) | typeMds = "mds" constant typeRgw (line 26) | typeRgw = "rgw" constant osdPrefix (line 27) | osdPrefix = "ceph-osd" constant monPrefix (line 28) | monPrefix = "ceph-mon" constant mdsPrefix (line 29) | mdsPrefix = "ceph-mds" constant rgwPrefix (line 30) | rgwPrefix = "ceph-client" constant sockSuffix (line 31) | sockSuffix = "asok" type Ceph (line 34) | type Ceph struct method SampleConfig (line 51) | func (*Ceph) SampleConfig() string { method Gather (line 55) | func (c *Ceph) Gather(acc telegraf.Accumulator) error { method gatherAdminSocketStats (line 71) | func (c *Ceph) gatherAdminSocketStats(acc telegraf.Accumulator) error { method gatherClusterStats (line 127) | func (c *Ceph) gatherClusterStats(acc telegraf.Accumulator) error { method parseDump (line 336) | func (c *Ceph) parseDump(dump string) (taggedMetricMap, error) { method newTaggedMetricMap (line 348) | func (c *Ceph) newTaggedMetricMap(data map[string]interface{}) taggedM... method flatten (line 364) | func (c *Ceph) flatten(data interface{}) []*metric { method execute (line 390) | func (c *Ceph) execute(command string) (string, error) { function perfSchema (line 160) | func perfSchema(binary string, socket *socket) (string, error) { function parseSockID (line 245) | func parseSockID(fname, prefix, suffix string) string { type socket (line 253) | type socket struct type metric (line 259) | type metric struct method name (line 265) | func (m *metric) name() string { type metricMap (line 276) | type metricMap type taggedMetricMap (line 278) | type taggedMetricMap constant perfCounterNone (line 282) | perfCounterNone = 0 constant perfCounterTime (line 283) | perfCounterTime = 0x1 constant perfCounterU64 (line 284) | perfCounterU64 = 0x2 constant perfCounterLongRunAvg (line 285) | perfCounterLongRunAvg = 0x4 constant perfCounterCounter (line 286) | perfCounterCounter = 0x8 constant perfCounterHistogram (line 287) | perfCounterHistogram = 0x10 type rawPerfCounter (line 290) | type rawPerfCounter struct type rawCollection (line 300) | type rawCollection type perfSchemaMap (line 302) | type perfSchemaMap function parseSchema (line 307) | func parseSchema(rawSchema string) (perfSchemaMap, error) { type status (line 416) | type status struct function decodeStatus (line 478) | func decodeStatus(acc telegraf.Accumulator, input string) error { function decodeStatusFsmap (line 503) | func decodeStatusFsmap(acc telegraf.Accumulator, data *status) error { function decodeStatusHealth (line 515) | func decodeStatusHealth(acc telegraf.Accumulator, data *status) error { function decodeStatusMonmap (line 531) | func decodeStatusMonmap(acc telegraf.Accumulator, data *status) error { function decodeStatusOsdmap (line 540) | func decodeStatusOsdmap(acc telegraf.Accumulator, data *status) error { function decodeStatusPgmap (line 565) | func decodeStatusPgmap(acc telegraf.Accumulator, data *status) error { function decodeStatusPgmapState (line 596) | func decodeStatusPgmapState(acc telegraf.Accumulator, data *status) error { type df (line 610) | type df struct function decodeDf (line 639) | func decodeDf(acc telegraf.Accumulator, input string) error { type osdPoolStats (line 693) | type osdPoolStats function decodeOsdPoolStats (line 718) | func decodeOsdPoolStats(acc telegraf.Accumulator, input string) error { function init (line 751) | func init() { FILE: plugins/inputs/ceph/ceph_test.go constant epsilon (line 18) | epsilon = float64(0.00000001) type expectedResult (line 21) | type expectedResult struct function TestParseSockId (line 27) | func TestParseSockId(t *testing.T) { function TestParseMonDump (line 32) | func TestParseMonDump(t *testing.T) { function TestParseOsdDump (line 40) | func TestParseOsdDump(t *testing.T) { function TestParseMdsDump (line 48) | func TestParseMdsDump(t *testing.T) { function TestParseRgwDump (line 56) | func TestParseRgwDump(t *testing.T) { function TestDecodeStatus (line 64) | func TestDecodeStatus(t *testing.T) { function TestDecodeStatusNestedOSD (line 73) | func TestDecodeStatusNestedOSD(t *testing.T) { function TestDecodeDf (line 83) | func TestDecodeDf(t *testing.T) { function TestDecodeOSDPoolStats (line 93) | func TestDecodeOSDPoolStats(t *testing.T) { function TestGather (line 103) | func TestGather(t *testing.T) { function TestParseSchema (line 124) | func TestParseSchema(t *testing.T) { function TestFindSockets (line 143) | func TestFindSockets(t *testing.T) { function assertFoundSocket (line 182) | func assertFoundSocket(t *testing.T, dir, sockType string, i int, socket... function sockFile (line 206) | func sockFile(prefix string, i int) string { function createTestFiles (line 210) | func createTestFiles(dir string, st *SockTest) error { function cleanupTestFiles (line 219) | func cleanupTestFiles(dir string, st *SockTest) error { function tstFileApply (line 228) | func tstFileApply(st *SockTest, fn func(string, int) error) error { type SockTest (line 252) | type SockTest struct FILE: plugins/inputs/cgroup/cgroup.go type CGroup (line 14) | type CGroup struct method SampleConfig (line 21) | func (*CGroup) SampleConfig() string { method Init (line 25) | func (cg *CGroup) Init() error { function init (line 31) | func init() { FILE: plugins/inputs/cgroup/cgroup_linux.go constant metricName (line 18) | metricName = "cgroup" method Gather (line 20) | func (cg *CGroup) Gather(acc telegraf.Accumulator) error { method gatherDir (line 36) | func (cg *CGroup) gatherDir(acc telegraf.Accumulator, dir string) error { type pathInfo (line 74) | type pathInfo struct function isDir (line 79) | func isDir(pathToCheck string) (bool, error) { method generateDirs (line 87) | func (cg *CGroup) generateDirs(list chan<- pathInfo) { method generateFiles (line 111) | func (cg *CGroup) generateFiles(dir string, list chan<- pathInfo) { type fileData (line 140) | type fileData struct method format (line 145) | func (fd *fileData) format() (*fileFormat, error) { method parse (line 159) | func (fd *fileData) parse(fields map[string]interface{}) error { type fileFormat (line 171) | type fileFormat struct method match (line 296) | func (f fileFormat) match(b []byte) (bool, error) { constant keyPattern (line 177) | keyPattern = "[[:alnum:]:_.]+" constant valuePattern (line 178) | valuePattern = "(?:max|[\\d-\\.]+)" function numberOrString (line 274) | func numberOrString(s string) interface{} { FILE: plugins/inputs/cgroup/cgroup_notlinux.go method Gather (line 9) | func (*CGroup) Gather(_ telegraf.Accumulator) error { FILE: plugins/inputs/cgroup/cgroup_test.go function TestCgroupStatistics_1 (line 16) | func TestCgroupStatistics_1(t *testing.T) { function TestCgroupStatistics_2 (line 58) | func TestCgroupStatistics_2(t *testing.T) { function TestCgroupStatistics_3 (line 92) | func TestCgroupStatistics_3(t *testing.T) { function TestCgroupStatistics_4 (line 126) | func TestCgroupStatistics_4(t *testing.T) { function TestCgroupStatistics_5 (line 178) | func TestCgroupStatistics_5(t *testing.T) { function TestCgroupStatistics_6 (line 212) | func TestCgroupStatistics_6(t *testing.T) { function TestCgroupStatistics_7 (line 238) | func TestCgroupStatistics_7(t *testing.T) { function TestCgroupStatistics_8 (line 392) | func TestCgroupStatistics_8(t *testing.T) { function TestCgroupEscapeDir (line 421) | func TestCgroupEscapeDir(t *testing.T) { FILE: plugins/inputs/cgroup/cgroupv2_test.go function TestCgroupV2Cpu (line 17) | func TestCgroupV2Cpu(t *testing.T) { function TestCgroupV2Memory (line 67) | func TestCgroupV2Memory(t *testing.T) { function TestCgroupV2Io (line 222) | func TestCgroupV2Io(t *testing.T) { function TestCgroupV2Hugetlb (line 259) | func TestCgroupV2Hugetlb(t *testing.T) { function TestCgroupV2Pids (line 303) | func TestCgroupV2Pids(t *testing.T) { FILE: plugins/inputs/chrony/chrony.go type Chrony (line 31) | type Chrony struct method SampleConfig (line 51) | func (*Chrony) SampleConfig() string { method Init (line 55) | func (c *Chrony) Init() error { method Start (line 106) | func (c *Chrony) Start(_ telegraf.Accumulator) error { method Gather (line 154) | func (c *Chrony) Gather(acc telegraf.Accumulator) error { method Stop (line 181) | func (c *Chrony) Stop() { method dialUnix (line 195) | func (c *Chrony) dialUnix(address string) (*net.UnixConn, error) { method gatherActivity (line 231) | func (c *Chrony) gatherActivity(acc telegraf.Accumulator) error { method gatherTracking (line 259) | func (c *Chrony) gatherTracking(acc telegraf.Accumulator) error { method gatherServerStats (line 308) | func (c *Chrony) gatherServerStats(acc telegraf.Accumulator) error { method getSourceName (line 384) | func (c *Chrony) getSourceName(ip net.IP) (string, error) { method gatherSources (line 402) | func (c *Chrony) gatherSources(acc telegraf.Accumulator) error { method gatherSourceStats (line 471) | func (c *Chrony) gatherSourceStats(acc telegraf.Accumulator) error { function init (line 539) | func init() { FILE: plugins/inputs/chrony/chrony_test.go function TestGatherActivity (line 24) | func TestGatherActivity(t *testing.T) { function TestGatherTracking (line 82) | func TestGatherTracking(t *testing.T) { function TestGatherServerStats (line 158) | func TestGatherServerStats(t *testing.T) { function TestGatherServerStats2 (line 216) | func TestGatherServerStats2(t *testing.T) { function TestGatherServerStats3 (line 280) | func TestGatherServerStats3(t *testing.T) { function TestGatherSources (line 350) | func TestGatherSources(t *testing.T) { function TestGatherSourceStats (line 502) | func TestGatherSourceStats(t *testing.T) { function TestIntegration (line 651) | func TestIntegration(t *testing.T) { type source (line 718) | type source struct type Server (line 724) | type Server struct method Shutdown (line 733) | func (s *Server) Shutdown() { method Listen (line 739) | func (s *Server) Listen(t *testing.T) (string, error) { method serve (line 752) | func (s *Server) serve(t *testing.T) { method encodeActivityReply (line 858) | func (s *Server) encodeActivityReply(sequence uint32) ([]byte, error) { method encodeTrackingReply (line 871) | func (s *Server) encodeTrackingReply(sequence uint32) []byte { method encodeServerStatsReply (line 900) | func (s *Server) encodeServerStatsReply(sequence uint32) ([]byte, erro... method encodeSourcesReply (line 934) | func (s *Server) encodeSourcesReply(sequence uint32) []byte { method encodeSourceDataReply (line 944) | func (s *Server) encodeSourceDataReply(sequence uint32, idx int32) []b... method encodeSourceStatsReply (line 969) | func (s *Server) encodeSourceStatsReply(sequence uint32, idx int32) []... method encodeSourceNameReply (line 993) | func (s *Server) encodeSourceNameReply(sequence uint32, ip net.IP) []b... function encodeHeader (line 1017) | func encodeHeader(command, replyType, status uint16, seqnr uint32) []byte { function encodeIP (line 1038) | func encodeIP(addr net.IP) []byte { function decodeIP (line 1052) | func decodeIP(buf []byte) net.IP { constant floatExpBits (line 1068) | floatExpBits = int32(7) constant floatCoeffBits (line 1069) | floatCoeffBits = int32(25) constant floatExpMin (line 1070) | floatExpMin = int32(-(1 << (floatExpBits - 1))) constant floatExpMax (line 1071) | floatExpMax = -floatExpMin - 1 constant floatCoefMin (line 1072) | floatCoefMin = int32(-(1 << (floatCoeffBits - 1))) constant floatCoefMax (line 1073) | floatCoefMax = -floatCoefMin - 1 function encodeFloat (line 1076) | func encodeFloat(x float64) uint32 { function TestConcurrentGather (line 1133) | func TestConcurrentGather(t *testing.T) { function TestRaceDetector (line 1304) | func TestRaceDetector(t *testing.T) { FILE: plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go constant tcpMaxMsgLen (line 40) | tcpMaxMsgLen uint32 = 1024 * 1024 constant defaultKeepaliveMinTime (line 44) | defaultKeepaliveMinTime = config.Duration(time.Second * 300) type CiscoTelemetryMDT (line 48) | type CiscoTelemetryMDT struct method SampleConfig (line 97) | func (*CiscoTelemetryMDT) SampleConfig() string { method Start (line 102) | func (c *CiscoTelemetryMDT) Start(acc telegraf.Accumulator) error { method Gather (line 221) | func (*CiscoTelemetryMDT) Gather(telegraf.Accumulator) error { method Stop (line 226) | func (c *CiscoTelemetryMDT) Stop() { method MdtDialout (line 238) | func (c *CiscoTelemetryMDT) MdtDialout(stream mdtdialout.GRPCMdtDialou... method acceptTCPClients (line 282) | func (c *CiscoTelemetryMDT) acceptTCPClients() { method handleTCPClient (line 332) | func (c *CiscoTelemetryMDT) handleTCPClient(conn net.Conn) error { method handleTelemetry (line 375) | func (c *CiscoTelemetryMDT) handleTelemetry(data []byte) { method parseKeyField (line 522) | func (c *CiscoTelemetryMDT) parseKeyField(tags map[string]string, fiel... method parseClassAttributeField (line 619) | func (c *CiscoTelemetryMDT) parseClassAttributeField(grouper *metric.S... method getMeasurementName (line 658) | func (c *CiscoTelemetryMDT) getMeasurementName(encodingPath string) st... method parseContentField (line 674) | func (c *CiscoTelemetryMDT) parseContentField( type grpcEnforcementPolicy (line 84) | type grpcEnforcementPolicy struct type nxPayloadXfromStructure (line 89) | type nxPayloadXfromStructure struct function decodeValue (line 467) | func decodeValue(field *telemetry.TelemetryField) interface{} { function decodeTag (line 493) | func decodeTag(field *telemetry.TelemetryField) string { function parseRib (line 544) | func parseRib(grouper *metric.SeriesGrouper, field *telemetry.TelemetryF... function parseMicroburst (line 577) | func parseMicroburst(grouper *metric.SeriesGrouper, field *telemetry.Tel... function init (line 805) | func init() { FILE: plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt_test.go function TestHandleTelemetryTwoSimple (line 25) | func TestHandleTelemetryTwoSimple(t *testing.T) { function TestIncludeDeleteField (line 120) | func TestIncludeDeleteField(t *testing.T) { function TestHandleTelemetrySingleNested (line 288) | func TestHandleTelemetrySingleNested(t *testing.T) { function TestHandleEmbeddedTags (line 367) | func TestHandleEmbeddedTags(t *testing.T) { function TestHandleNXAPI (line 456) | func TestHandleNXAPI(t *testing.T) { function TestHandleNXAPIXformNXAPI (line 562) | func TestHandleNXAPIXformNXAPI(t *testing.T) { function TestHandleNXXformMulti (line 647) | func TestHandleNXXformMulti(t *testing.T) { function TestHandleNXDME (line 740) | func TestHandleNXDME(t *testing.T) { function TestHandleNXDMESubtree (line 822) | func TestHandleNXDMESubtree(t *testing.T) { function TestTCPDialoutOverflow (line 963) | func TestTCPDialoutOverflow(t *testing.T) { function mockTelemetryMicroburstMessage (line 994) | func mockTelemetryMicroburstMessage() *telemetry.Telemetry { function mockTelemetryMessage (line 1008) | func mockTelemetryMessage() *telemetry.Telemetry { function TestGRPCDialoutMicroburst (line 1041) | func TestGRPCDialoutMicroburst(t *testing.T) { function TestTCPDialoutMultiple (line 1081) | func TestTCPDialoutMultiple(t *testing.T) { function TestGRPCDialoutError (line 1178) | func TestGRPCDialoutError(t *testing.T) { function TestGRPCDialoutMultiple (line 1206) | func TestGRPCDialoutMultiple(t *testing.T) { function TestGRPCDialoutKeepalive (line 1294) | func TestGRPCDialoutKeepalive(t *testing.T) { function TestSourceFieldRewrite (line 1325) | func TestSourceFieldRewrite(t *testing.T) { function TestHandleNXDMEEventListWithDn (line 1383) | func TestHandleNXDMEEventListWithDn(t *testing.T) { FILE: plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_util.go function xformValueString (line 11) | func xformValueString(field *telemetry.TelemetryField) string { function nxosValueXformUint64Toint64 (line 35) | func nxosValueXformUint64Toint64(field *telemetry.TelemetryField, value ... function nxosValueXformStringTofloat (line 43) | func nxosValueXformStringTofloat(field *telemetry.TelemetryField, _ inte... function nxosValueXformStringToUint64 (line 55) | func nxosValueXformStringToUint64(field *telemetry.TelemetryField, _ int... function nxosValueXformStringToInt64 (line 67) | func nxosValueXformStringToInt64(field *telemetry.TelemetryField, _ inte... function nxosValueAutoXformFloatProp (line 79) | func nxosValueAutoXformFloatProp(field *telemetry.TelemetryField, _ inte... function nxosValueXformUint64ToString (line 91) | func nxosValueXformUint64ToString(field *telemetry.TelemetryField, _ int... method nxosValueXform (line 104) | func (c *CiscoTelemetryMDT) nxosValueXform(field *telemetry.TelemetryFie... method initMemPhys (line 166) | func (c *CiscoTelemetryMDT) initMemPhys() { method initBgpV4 (line 170) | func (c *CiscoTelemetryMDT) initBgpV4() { method initCPU (line 176) | func (c *CiscoTelemetryMDT) initCPU() { method initResources (line 186) | func (c *CiscoTelemetryMDT) initResources() { method initPower (line 201) | func (c *CiscoTelemetryMDT) initPower() { method initPtpCorrection (line 291) | func (c *CiscoTelemetryMDT) initPtpCorrection() { method initTrans (line 301) | func (c *CiscoTelemetryMDT) initTrans() { method initIgmp (line 431) | func (c *CiscoTelemetryMDT) initIgmp() { method initVrfAll (line 443) | func (c *CiscoTelemetryMDT) initVrfAll() { method initIgmpSnoop (line 461) | func (c *CiscoTelemetryMDT) initIgmpSnoop() { method initIgmpSnoopGroups (line 485) | func (c *CiscoTelemetryMDT) initIgmpSnoopGroups() { method initIgmpSnoopGroupDetails (line 501) | func (c *CiscoTelemetryMDT) initIgmpSnoopGroupDetails() { method initIgmpSnoopGroupsSumm (line 517) | func (c *CiscoTelemetryMDT) initIgmpSnoopGroupsSumm() { method initMrouter (line 533) | func (c *CiscoTelemetryMDT) initMrouter() { method initSnoopStats (line 540) | func (c *CiscoTelemetryMDT) initSnoopStats() { method initPimInterface (line 546) | func (c *CiscoTelemetryMDT) initPimInterface() { method initPimNeigh (line 570) | func (c *CiscoTelemetryMDT) initPimNeigh() { method initPimRoute (line 580) | func (c *CiscoTelemetryMDT) initPimRoute() { method initPimRp (line 601) | func (c *CiscoTelemetryMDT) initPimRp() { method initPimStats (line 640) | func (c *CiscoTelemetryMDT) initPimStats() { method initIntfBrief (line 646) | func (c *CiscoTelemetryMDT) initIntfBrief() { method initPimVrf (line 653) | func (c *CiscoTelemetryMDT) initPimVrf() { method initIPMroute (line 659) | func (c *CiscoTelemetryMDT) initIPMroute() { method initIpv6Mroute (line 701) | func (c *CiscoTelemetryMDT) initIpv6Mroute() { method initVpc (line 743) | func (c *CiscoTelemetryMDT) initVpc() { method initBgp (line 753) | func (c *CiscoTelemetryMDT) initBgp() { method initCh (line 776) | func (c *CiscoTelemetryMDT) initCh() { method initIntf (line 790) | func (c *CiscoTelemetryMDT) initIntf() { method initProcsys (line 803) | func (c *CiscoTelemetryMDT) initProcsys() { method initProc (line 813) | func (c *CiscoTelemetryMDT) initProc() { method initBfd (line 820) | func (c *CiscoTelemetryMDT) initBfd() { method initLldp (line 829) | func (c *CiscoTelemetryMDT) initLldp() { method initDB (line 841) | func (c *CiscoTelemetryMDT) initDB() { FILE: plugins/inputs/clickhouse/clickhouse.go type ClickHouse (line 29) | type ClickHouse struct method SampleConfig (line 50) | func (*ClickHouse) SampleConfig() string { method Init (line 54) | func (ch *ClickHouse) Init() error { method Start (line 68) | func (ch *ClickHouse) Start(telegraf.Accumulator) error { method Gather (line 90) | func (ch *ClickHouse) Gather(acc telegraf.Accumulator) (err error) { method Stop (line 165) | func (ch *ClickHouse) Stop() { method clusterIncludeExcludeFilter (line 169) | func (ch *ClickHouse) clusterIncludeExcludeFilter() string { method commonMetrics (line 202) | func (ch *ClickHouse) commonMetrics(acc telegraf.Accumulator, conn *co... method zookeeper (line 236) | func (ch *ClickHouse) zookeeper(acc telegraf.Accumulator, conn *connec... method replicationQueue (line 264) | func (ch *ClickHouse) replicationQueue(acc telegraf.Accumulator, conn ... method detachedParts (line 295) | func (ch *ClickHouse) detachedParts(acc telegraf.Accumulator, conn *co... method dictionaries (line 315) | func (ch *ClickHouse) dictionaries(acc telegraf.Accumulator, conn *con... method mutations (line 348) | func (ch *ClickHouse) mutations(acc telegraf.Accumulator, conn *connec... method disks (line 374) | func (ch *ClickHouse) disks(acc telegraf.Accumulator, conn *connect) e... method processes (line 403) | func (ch *ClickHouse) processes(acc telegraf.Accumulator, conn *connec... method textLog (line 432) | func (ch *ClickHouse) textLog(acc telegraf.Accumulator, conn *connect)... method tables (line 464) | func (ch *ClickHouse) tables(acc telegraf.Accumulator, conn *connect) ... method execQuery (line 515) | func (ch *ClickHouse) execQuery(address *url.URL, query string, i inte... type connect (line 43) | type connect struct function makeDefaultTags (line 493) | func makeDefaultTags(conn *connect) map[string]string { type clickhouseError (line 506) | type clickhouseError struct method Error (line 511) | func (e *clickhouseError) Error() string { type chUInt64 (line 559) | type chUInt64 method UnmarshalJSON (line 562) | func (i *chUInt64) UnmarshalJSON(b []byte) error { constant systemEventsSQL (line 574) | systemEventsSQL = "SELECT event AS metric, toUInt64(value) AS valu... constant systemMetricsSQL (line 575) | systemMetricsSQL = "SELECT metric, toUInt64(value) AS valu... constant systemAsyncMetricsSQL (line 576) | systemAsyncMetricsSQL = "SELECT metric, toFloat64(value) AS val... constant systemPartsSQL (line 577) | systemPartsSQL = ` constant systemZookeeperExistsSQL (line 591) | systemZookeeperExistsSQL = "SELECT count() AS zk_exists FROM system.t... constant systemZookeeperRootNodesSQL (line 592) | systemZookeeperRootNodesSQL = "SELECT count() AS zk_root_nodes FROM syst... constant systemReplicationExistsSQL (line 594) | systemReplicationExistsSQL = "SELECT count() AS replication_queue_exis... constant systemReplicationNumTriesSQL (line 595) | systemReplicationNumTriesSQL = "SELECT countIf(num_tries>1) AS replicati... constant systemDetachedPartsSQL (line 598) | systemDetachedPartsSQL = "SELECT count() AS detached_parts FROM system.d... constant systemDictionariesSQL (line 600) | systemDictionariesSQL = "SELECT origin, status, bytes_allocated FROM sys... constant systemMutationSQL (line 602) | systemMutationSQL = "SELECT countIf(latest_fail_time>toDateTime('0000-00... constant systemDisksSQL (line 605) | systemDisksSQL = "SELECT name, path, toUInt64(100*free_space / total_spa... constant systemProcessesSQL (line 607) | systemProcessesSQL = "SELECT multiIf(positionCaseInsensitive(query,'sele... constant systemTextLogExistsSQL (line 611) | systemTextLogExistsSQL = "SELECT count() AS text_log_exists FROM system.... constant systemTextLogSQL (line 612) | systemTextLogSQL = "SELECT count() AS messages_last_10_min, level ... function init (line 630) | func init() { FILE: plugins/inputs/clickhouse/clickhouse_test.go function TestClusterIncludeExcludeFilter (line 16) | func TestClusterIncludeExcludeFilter(t *testing.T) { function TestChInt64 (line 35) | func TestChInt64(t *testing.T) { function TestGather (line 51) | func TestGather(t *testing.T) { function TestGatherWithSomeTablesNotExists (line 496) | func TestGatherWithSomeTablesNotExists(t *testing.T) { function TestGatherClickhouseCloud (line 567) | func TestGatherClickhouseCloud(t *testing.T) { function TestWrongJSONMarshalling (line 617) | func TestWrongJSONMarshalling(t *testing.T) { function TestOfflineServer (line 663) | func TestOfflineServer(t *testing.T) { function TestAutoDiscovery (line 696) | func TestAutoDiscovery(t *testing.T) { FILE: plugins/inputs/clickhouse/dev/init_schema.sql type default (line 2) | CREATE TABLE default.test( FILE: plugins/inputs/cloud_pubsub/cloud_pubsub.go constant defaultMaxUndeliveredMessages (line 30) | defaultMaxUndeliveredMessages = 1000 constant defaultRetryDelaySeconds (line 31) | defaultRetryDelaySeconds = 5 type PubSub (line 34) | type PubSub struct method SampleConfig (line 78) | func (*PubSub) SampleConfig() string { method Init (line 82) | func (ps *PubSub) Init() error { method SetParser (line 111) | func (ps *PubSub) SetParser(parser telegraf.Parser) { method Start (line 118) | func (ps *PubSub) Start(ac telegraf.Accumulator) error { method Gather (line 155) | func (*PubSub) Gather(telegraf.Accumulator) error { method Stop (line 161) | func (ps *PubSub) Stop() { method receiveWithRetry (line 168) | func (ps *PubSub) receiveWithRetry(parentCtx context.Context) { method startReceiver (line 186) | func (ps *PubSub) startReceiver(parentCtx context.Context) error { method onMessage (line 204) | func (ps *PubSub) onMessage(ctx context.Context, msg message) error { method decompressData (line 255) | func (ps *PubSub) decompressData(data []byte) ([]byte, error) { method decodeB64Data (line 274) | func (ps *PubSub) decodeB64Data(data []byte) ([]byte, error) { method waitForDelivery (line 282) | func (ps *PubSub) waitForDelivery(parentCtx context.Context) { method removeDelivered (line 298) | func (ps *PubSub) removeDelivered(id telegraf.TrackingID) message { method getPubSubClient (line 310) | func (ps *PubSub) getPubSubClient() (*pubsub.Client, error) { method getGCPSubscription (line 340) | func (ps *PubSub) getGCPSubscription(subID string) (subscription, erro... type empty (line 74) | type empty struct type semaphore (line 75) | type semaphore function init (line 355) | func init() { FILE: plugins/inputs/cloud_pubsub/cloud_pubsub_test.go constant msgInflux (line 16) | msgInflux = "cpu_load_short,host=server01 value=23422.0 1422568543702900... function TestRunParse (line 20) | func TestRunParse(t *testing.T) { function TestRunBase64 (line 66) | func TestRunBase64(t *testing.T) { function TestRunGzipDecode (line 112) | func TestRunGzipDecode(t *testing.T) { function TestRunInvalidMessages (line 161) | func TestRunInvalidMessages(t *testing.T) { function TestRunOverlongMessages (line 208) | func TestRunOverlongMessages(t *testing.T) { function TestRunErrorInSubscriber (line 257) | func TestRunErrorInSubscriber(t *testing.T) { function validateTestInfluxMetric (line 295) | func validateTestInfluxMetric(t *testing.T, m *testutil.Metric) { FILE: plugins/inputs/cloud_pubsub/subscription_gcp.go type subscription (line 11) | type subscription interface type message (line 18) | type message interface type gcpSubscription (line 33) | type gcpSubscription struct method ID (line 43) | func (s *gcpSubscription) ID() string { method Receive (line 51) | func (s *gcpSubscription) Receive(ctx context.Context, f func(context.... type gcpMessage (line 37) | type gcpMessage struct method Ack (line 58) | func (env *gcpMessage) Ack() { method Nack (line 63) | func (env *gcpMessage) Nack() { method ID (line 68) | func (env *gcpMessage) ID() string { method Data (line 73) | func (env *gcpMessage) Data() []byte { method Attributes (line 78) | func (env *gcpMessage) Attributes() map[string]string { method PublishTime (line 83) | func (env *gcpMessage) PublishTime() time.Time { FILE: plugins/inputs/cloud_pubsub/subscription_stub_test.go type stubSub (line 9) | type stubSub struct method ID (line 15) | func (s *stubSub) ID() string { method Receive (line 19) | func (s *stubSub) Receive(ctx context.Context, f func(context.Context,... type receiveFunc (line 23) | type receiveFunc function testMessagesError (line 25) | func testMessagesError(expectedErr error) receiveFunc { function testMessagesReceive (line 31) | func testMessagesReceive(s *stubSub) receiveFunc { type testMsg (line 44) | type testMsg struct method Ack (line 53) | func (tm *testMsg) Ack() { method Nack (line 57) | func (tm *testMsg) Nack() { method ID (line 61) | func (tm *testMsg) ID() string { method Data (line 65) | func (tm *testMsg) Data() []byte { method Attributes (line 69) | func (tm *testMsg) Attributes() map[string]string { method PublishTime (line 73) | func (tm *testMsg) PublishTime() time.Time { type testTracker (line 77) | type testTracker struct method waitForAck (line 85) | func (t *testTracker) waitForAck(num int) { method ack (line 96) | func (t *testTracker) ack() { method nack (line 103) | func (t *testTracker) nack() { FILE: plugins/inputs/cloud_pubsub_push/cloud_pubsub_push.go constant defaultMaxBodySize (line 31) | defaultMaxBodySize = 500 * 1024 * 1024 constant defaultMaxUndeliveredMessages (line 32) | defaultMaxUndeliveredMessages = 1000 type PubSubPush (line 35) | type PubSubPush struct method SampleConfig (line 73) | func (*PubSubPush) SampleConfig() string { method SetParser (line 77) | func (p *PubSubPush) SetParser(parser telegraf.Parser) { method Start (line 82) | func (p *PubSubPush) Start(acc telegraf.Accumulator) error { method Gather (line 136) | func (*PubSubPush) Gather(telegraf.Accumulator) error { method Stop (line 141) | func (p *PubSubPush) Stop() { method ServeHTTP (line 147) | func (p *PubSubPush) ServeHTTP(res http.ResponseWriter, req *http.Requ... method serveWrite (line 155) | func (p *PubSubPush) serveWrite(res http.ResponseWriter, req *http.Req... method receiveDelivered (line 239) | func (p *PubSubPush) receiveDelivered() { method authenticateIfSet (line 267) | func (p *PubSubPush) authenticateIfSet(handler http.HandlerFunc, res h... type message (line 62) | type message struct type payload (line 68) | type payload struct function init (line 278) | func init() { FILE: plugins/inputs/cloud_pubsub_push/cloud_pubsub_push_test.go function TestServeHTTP (line 27) | func TestServeHTTP(t *testing.T) { type testMetricMaker (line 220) | type testMetricMaker struct method Name (line 222) | func (*testMetricMaker) Name() string { method LogName (line 226) | func (tm *testMetricMaker) LogName() string { method MakeMetric (line 230) | func (*testMetricMaker) MakeMetric(metric telegraf.Metric) telegraf.Me... method Log (line 234) | func (*testMetricMaker) Log() telegraf.Logger { type testOutput (line 238) | type testOutput struct method Connect (line 243) | func (*testOutput) Connect() error { method Close (line 247) | func (*testOutput) Close() error { method Description (line 251) | func (*testOutput) Description() string { method SampleConfig (line 255) | func (*testOutput) SampleConfig() string { method Write (line 259) | func (t *testOutput) Write(_ []telegraf.Metric) error { FILE: plugins/inputs/cloudwatch/cloudwatch.go type CloudWatch (line 34) | type CloudWatch struct method SampleConfig (line 94) | func (*CloudWatch) SampleConfig() string { method Init (line 98) | func (c *CloudWatch) Init() error { method Gather (line 173) | func (c *CloudWatch) Gather(acc telegraf.Accumulator) error { method getFilteredMetrics (line 226) | func (c *CloudWatch) getFilteredMetrics() ([]filteredMetric, error) { method updateWindow (line 336) | func (c *CloudWatch) updateWindow(relativeTo time.Time) { method getDataQueries (line 351) | func (c *CloudWatch) getDataQueries(filteredMetrics []filteredMetric) ... method gatherMetrics (line 414) | func (c *CloudWatch) gatherMetrics(queries []types.MetricDataQuery) ([... method aggregateMetrics (line 438) | func (c *CloudWatch) aggregateMetrics(acc telegraf.Accumulator, metric... type cloudwatchMetric (line 63) | type cloudwatchMetric struct type dimension (line 70) | type dimension struct type metricCache (line 76) | type metricCache struct type filteredMetric (line 83) | type filteredMetric struct type cloudwatchClient (line 89) | type cloudwatchClient interface function init (line 475) | func init() { FILE: plugins/inputs/cloudwatch/cloudwatch_test.go function TestSnakeCase (line 25) | func TestSnakeCase(t *testing.T) { function TestGather (line 30) | func TestGather(t *testing.T) { function TestGatherDenseMetric (line 84) | func TestGatherDenseMetric(t *testing.T) { function TestMultiAccountGather (line 141) | func TestMultiAccountGather(t *testing.T) { function TestGatherMultipleNamespaces (line 198) | func TestGatherMultipleNamespaces(t *testing.T) { function TestSelectMetrics (line 287) | func TestSelectMetrics(t *testing.T) { function TestSelectMetricsSummaryOnly (line 324) | func TestSelectMetricsSummaryOnly(t *testing.T) { function TestGenerateStatisticsInputParams (line 357) | func TestGenerateStatisticsInputParams(t *testing.T) { function TestGenerateStatisticsInputParamsFiltered (line 399) | func TestGenerateStatisticsInputParamsFiltered(t *testing.T) { function TestMetricsCacheTimeout (line 441) | func TestMetricsCacheTimeout(t *testing.T) { function TestUpdateWindow (line 453) | func TestUpdateWindow(t *testing.T) { function TestProxyFunction (line 483) | func TestProxyFunction(t *testing.T) { function TestCombineNamespaces (line 497) | func TestCombineNamespaces(t *testing.T) { type mockClient (line 509) | type mockClient struct method ListMetrics (line 585) | func (c *mockClient) ListMetrics( method GetMetricData (line 600) | func (*mockClient) GetMetricData( function defaultMockClient (line 513) | func defaultMockClient(namespaces ...string) *mockClient { function selectedMockClient (line 544) | func selectedMockClient() *mockClient { FILE: plugins/inputs/cloudwatch/utils.go function metricMatch (line 12) | func metricMatch(cm *cloudwatchMetric, m types.Metric) bool { function sanitizeMeasurement (line 29) | func sanitizeMeasurement(namespace string) string { function snakeCase (line 35) | func snakeCase(s string) string { function ctod (line 42) | func ctod(cDimensions []types.Dimension) *map[string]string { FILE: plugins/inputs/cloudwatch_metric_streams/cloudwatch_metric_streams.go constant defaultMaxBodySize (line 33) | defaultMaxBodySize = 500 * 1024 * 1024 type CloudWatchMetricStreams (line 35) | type CloudWatchMetricStreams struct method SampleConfig (line 88) | func (*CloudWatchMetricStreams) SampleConfig() string { method Init (line 92) | func (cms *CloudWatchMetricStreams) Init() error { method Start (line 118) | func (cms *CloudWatchMetricStreams) Start(acc telegraf.Accumulator) er... method Gather (line 152) | func (*CloudWatchMetricStreams) Gather(telegraf.Accumulator) error { method Stop (line 156) | func (cms *CloudWatchMetricStreams) Stop() { method ServeHTTP (line 163) | func (cms *CloudWatchMetricStreams) ServeHTTP(res http.ResponseWriter,... method createHTTPServer (line 195) | func (cms *CloudWatchMetricStreams) createHTTPServer() *http.Server { method recordRequestTime (line 204) | func (cms *CloudWatchMetricStreams) recordRequestTime(start time.Time) { method serveWrite (line 209) | func (cms *CloudWatchMetricStreams) serveWrite(res http.ResponseWriter... method composeMetrics (line 331) | func (cms *CloudWatchMetricStreams) composeMetrics(data data) { method authenticateIfSet (line 404) | func (cms *CloudWatchMetricStreams) authenticateIfSet(handler http.Han... type request (line 58) | type request struct type data (line 66) | type data struct type response (line 78) | type response struct type age (line 83) | type age struct method record (line 177) | func (a *age) record(t time.Duration) { method submitMax (line 187) | func (a *age) submitMax(stat selfstat.Stat) { method submitMin (line 191) | func (a *age) submitMin(stat selfstat.Stat) { function tooLarge (line 371) | func tooLarge(res http.ResponseWriter) error { function methodNotAllowed (line 382) | func methodNotAllowed(res http.ResponseWriter) error { function badRequest (line 393) | func badRequest(res http.ResponseWriter) error { function init (line 417) | func init() { FILE: plugins/inputs/cloudwatch_metric_streams/cloudwatch_metric_streams_test.go constant badMsg (line 19) | badMsg = "blahblahblah: 42\n" constant emptyMsg (line 20) | emptyMsg = "" constant accessKey (line 21) | accessKey = "super-secure-password!" constant badAccessKey (line 22) | badAccessKey = "super-insecure-password!" constant maxBodySize (line 23) | maxBodySize = 524288000 function newTestCloudWatchMetricStreams (line 30) | func newTestCloudWatchMetricStreams() *CloudWatchMetricStreams { function newTestMetricStreamAuth (line 41) | func newTestMetricStreamAuth() *CloudWatchMetricStreams { function newTestMetricStreamHTTPS (line 47) | func newTestMetricStreamHTTPS() *CloudWatchMetricStreams { function newTestCompatibleCloudWatchMetricStreams (line 54) | func newTestCompatibleCloudWatchMetricStreams() *CloudWatchMetricStreams { function getHTTPSClient (line 60) | func getHTTPSClient() *http.Client { function createURL (line 72) | func createURL(scheme, path string) string { function readJSON (line 82) | func readJSON(t *testing.T, jsonFilePath string) []byte { function TestInvalidListenerConfig (line 89) | func TestInvalidListenerConfig(t *testing.T) { function TestWriteHTTPSNoClientAuth (line 100) | func TestWriteHTTPSNoClientAuth(t *testing.T) { function TestWriteHTTPSWithClientAuth (line 127) | func TestWriteHTTPSWithClientAuth(t *testing.T) { function TestWriteHTTPSuccessfulAuth (line 143) | func TestWriteHTTPSuccessfulAuth(t *testing.T) { function TestWriteHTTPFailedAuth (line 165) | func TestWriteHTTPFailedAuth(t *testing.T) { function TestWriteHTTP (line 187) | func TestWriteHTTP(t *testing.T) { function TestWriteHTTPMultipleRecords (line 203) | func TestWriteHTTPMultipleRecords(t *testing.T) { function TestWriteHTTPExactMaxBodySize (line 219) | func TestWriteHTTPExactMaxBodySize(t *testing.T) { function TestWriteHTTPVerySmallMaxBody (line 236) | func TestWriteHTTPVerySmallMaxBody(t *testing.T) { function TestReceive404ForInvalidEndpoint (line 253) | func TestReceive404ForInvalidEndpoint(t *testing.T) { function TestWriteHTTPInvalid (line 269) | func TestWriteHTTPInvalid(t *testing.T) { function TestWriteHTTPEmpty (line 284) | func TestWriteHTTPEmpty(t *testing.T) { function TestComposeMetrics (line 299) | func TestComposeMetrics(t *testing.T) { function TestComposeAPICompatibleMetrics (line 330) | func TestComposeAPICompatibleMetrics(t *testing.T) { function TestWriteHTTPGzippedData (line 362) | func TestWriteHTTPGzippedData(t *testing.T) { FILE: plugins/inputs/conntrack/conntrack.go constant inputName (line 39) | inputName = "conntrack" type Conntrack (line 42) | type Conntrack struct method SampleConfig (line 49) | func (*Conntrack) SampleConfig() string { method Init (line 53) | func (c *Conntrack) Init() error { method Gather (line 63) | func (c *Conntrack) Gather(acc telegraf.Accumulator) error { method setDefaults (line 148) | func (c *Conntrack) setDefaults() { function init (line 158) | func init() { FILE: plugins/inputs/conntrack/conntrack_notlinux.go type Conntrack (line 16) | type Conntrack struct method SampleConfig (line 20) | func (*Conntrack) SampleConfig() string { return sampleConfig } method Init (line 22) | func (c *Conntrack) Init() error { method Gather (line 27) | func (*Conntrack) Gather(_ telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/conntrack/conntrack_test.go function restoreDflts (line 19) | func restoreDflts(savedFiles, savedDirs []string) { function TestNoFilesFound (line 24) | func TestNoFilesFound(t *testing.T) { function TestDefaultsUsed (line 37) | func TestDefaultsUsed(t *testing.T) { function TestConfigsUsed (line 60) | func TestConfigsUsed(t *testing.T) { function TestCollectStats (line 97) | func TestCollectStats(t *testing.T) { function TestCollectStatsPerCpu (line 165) | func TestCollectStatsPerCpu(t *testing.T) { function TestCollectPsSystemInit (line 329) | func TestCollectPsSystemInit(t *testing.T) { FILE: plugins/inputs/consul/consul.go type Consul (line 20) | type Consul struct method SampleConfig (line 36) | func (*Consul) SampleConfig() string { method Init (line 40) | func (c *Consul) Init() error { method Gather (line 89) | func (c *Consul) Gather(acc telegraf.Accumulator) error { method gatherHealthCheck (line 101) | func (c *Consul) gatherHealthCheck(acc telegraf.Accumulator, checks []... function init (line 142) | func init() { FILE: plugins/inputs/consul/consul_test.go function TestGatherHealthCheck (line 25) | func TestGatherHealthCheck(t *testing.T) { function TestGatherHealthCheckWithDelimitedTags (line 52) | func TestGatherHealthCheckWithDelimitedTags(t *testing.T) { function TestGatherHealthCheckV2 (line 81) | func TestGatherHealthCheckV2(t *testing.T) { function TestGatherHealthCheckWithDelimitedTagsV2 (line 110) | func TestGatherHealthCheckWithDelimitedTagsV2(t *testing.T) { FILE: plugins/inputs/consul_agent/consul_agent.go constant timeLayout (line 24) | timeLayout = "2006-01-02 15:04:05 -0700 MST" type ConsulAgent (line 26) | type ConsulAgent struct method SampleConfig (line 39) | func (*ConsulAgent) SampleConfig() string { method Init (line 43) | func (n *ConsulAgent) Init() error { method Gather (line 74) | func (n *ConsulAgent) Gather(acc telegraf.Accumulator) error { method loadJSON (line 83) | func (n *ConsulAgent) loadJSON(url string) (*agentInfo, error) { function buildConsulAgent (line 112) | func buildConsulAgent(acc telegraf.Accumulator, agentInfo *agentInfo) er... function init (line 169) | func init() { FILE: plugins/inputs/consul_agent/consul_agent_test.go function TestConsulStats (line 17) | func TestConsulStats(t *testing.T) { FILE: plugins/inputs/consul_agent/consul_structs.go type agentInfo (line 3) | type agentInfo struct type gaugeValue (line 11) | type gaugeValue struct type pointValue (line 17) | type pointValue struct type sampledValue (line 22) | type sampledValue struct FILE: plugins/inputs/couchbase/couchbase.go type Couchbase (line 27) | type Couchbase struct method SampleConfig (line 47) | func (*Couchbase) SampleConfig() string { method Init (line 51) | func (cb *Couchbase) Init() error { method Gather (line 82) | func (cb *Couchbase) Gather(acc telegraf.Accumulator) error { method gatherServer (line 101) | func (cb *Couchbase) gatherServer(acc telegraf.Accumulator, addr strin... method gatherAutoFailoverStats (line 169) | func (cb *Couchbase) gatherAutoFailoverStats(server string) (map[strin... method basicBucketStats (line 200) | func (cb *Couchbase) basicBucketStats(basicStats map[string]interface{... method gatherDetailedBucketStats (line 212) | func (cb *Couchbase) gatherDetailedBucketStats(server, bucket, nodeHos... method addBucketField (line 437) | func (cb *Couchbase) addBucketField(fields map[string]interface{}, fie... method addBucketFieldChecked (line 445) | func (cb *Couchbase) addBucketFieldChecked(fields map[string]interface... method queryDetailedBucketStats (line 453) | func (cb *Couchbase) queryDetailedBucketStats(server, bucket, nodeHost... type autoFailover (line 40) | type autoFailover struct function init (line 476) | func init() { FILE: plugins/inputs/couchbase/couchbase_data.go type bucketStats (line 3) | type bucketStats struct FILE: plugins/inputs/couchbase/couchbase_test.go function TestGatherServer (line 16) | func TestGatherServer(t *testing.T) { function TestSanitizeURI (line 76) | func TestSanitizeURI(t *testing.T) { function TestGatherDetailedBucketMetrics (line 99) | func TestGatherDetailedBucketMetrics(t *testing.T) { function TestGatherNodeOnly (line 168) | func TestGatherNodeOnly(t *testing.T) { function TestGatherFailover (line 206) | func TestGatherFailover(t *testing.T) { function readJSON (line 269) | func readJSON(t *testing.T, jsonFilePath string) []byte { FILE: plugins/inputs/couchdb/couchdb.go type CouchDB (line 19) | type CouchDB struct method SampleConfig (line 96) | func (*CouchDB) SampleConfig() string { method Gather (line 100) | func (c *CouchDB) Gather(accumulator telegraf.Accumulator) error { method fetchAndInsertData (line 117) | func (c *CouchDB) fetchAndInsertData(accumulator telegraf.Accumulator,... type metaData (line 28) | type metaData struct type oldValue (line 38) | type oldValue struct type couchdb (line 43) | type couchdb struct type httpdRequestMethods (line 55) | type httpdRequestMethods struct type httpdStatusCodes (line 64) | type httpdStatusCodes struct type httpd (line 80) | type httpd struct type stats (line 88) | type stats struct function generateFields (line 255) | func generateFields(fields map[string]interface{}, prefix string, obj me... function init (line 279) | func init() { FILE: plugins/inputs/couchdb/couchdb_test.go function TestBasic (line 14) | func TestBasic(t *testing.T) { FILE: plugins/inputs/cpu/cpu.go type CPU (line 20) | type CPU struct method SampleConfig (line 36) | func (*CPU) SampleConfig() string { method Init (line 40) | func (c *CPU) Init() error { method Gather (line 59) | func (c *CPU) Gather(acc telegraf.Accumulator) error { function totalCPUTime (line 149) | func totalCPUTime(t cpu.TimesStat) float64 { function activeCPUTime (line 154) | func activeCPUTime(t cpu.TimesStat) float64 { function init (line 159) | func init() { FILE: plugins/inputs/cpu/cpu_test.go function newCPUStats (line 13) | func newCPUStats(ps psutil.PS) *CPU { function TestCPUStats (line 21) | func TestCPUStats(t *testing.T) { function assertContainsTaggedFloat (line 122) | func assertContainsTaggedFloat( function TestCPUCountIncrease (line 153) | func TestCPUCountIncrease(t *testing.T) { function TestCPUTimesDecrease (line 188) | func TestCPUTimesDecrease(t *testing.T) { FILE: plugins/inputs/csgo/csgo.go type CSGO (line 22) | type CSGO struct method SampleConfig (line 26) | func (*CSGO) SampleConfig() string { method Init (line 30) | func (s *CSGO) Init() error { method Gather (line 39) | func (s *CSGO) Gather(acc telegraf.Accumulator) error { function parseResponse (line 77) | func parseResponse(addr, response string, t time.Time) (telegraf.Metric,... function init (line 147) | func init() { FILE: plugins/inputs/csgo/csgo_test.go function TestCPUStats (line 16) | func TestCPUStats(t *testing.T) { FILE: plugins/inputs/ctrlx_datalayer/ctrlx_datalayer.go type CtrlXDataLayer (line 42) | type CtrlXDataLayer struct method SampleConfig (line 60) | func (*CtrlXDataLayer) SampleConfig() string { method Init (line 64) | func (c *CtrlXDataLayer) Init() error { method Start (line 96) | func (c *CtrlXDataLayer) Start(acc telegraf.Accumulator) error { method Gather (line 133) | func (*CtrlXDataLayer) Gather(telegraf.Accumulator) error { method Stop (line 138) | func (c *CtrlXDataLayer) Stop() { method createSubscription (line 156) | func (c *CtrlXDataLayer) createSubscription(sub *subscription) (string... method createSubscriptionAndSseClient (line 189) | func (c *CtrlXDataLayer) createSubscriptionAndSseClient(sub *subscript... method addMetric (line 206) | func (c *CtrlXDataLayer) addMetric(se *sseclient.SseEvent, sub *subscr... method createMetric (line 240) | func (c *CtrlXDataLayer) createMetric(em *sseEventData, sub *subscript... method gatherLoop (line 328) | func (c *CtrlXDataLayer) gatherLoop(ctx context.Context) { function convertTimestamp2UnixTime (line 147) | func convertTimestamp2UnixTime(t int64) time.Time { function init (line 367) | func init() { FILE: plugins/inputs/ctrlx_datalayer/ctrlx_datalayer_payload_types.go type sseEventData (line 8) | type sseEventData struct type sseEventError (line 17) | type sseEventError struct FILE: plugins/inputs/ctrlx_datalayer/ctrlx_datalayer_subscription.go constant defaultKeepaliveInterval (line 23) | defaultKeepaliveInterval = config.Duration(60 * time.Second) constant defaultErrorInterval (line 24) | defaultErrorInterval = config.Duration(10 * time.Second) constant defaultReconnectInterval (line 25) | defaultReconnectInterval = config.Duration(10 * time.Second) constant defaultPublishInterval (line 26) | defaultPublishInterval = config.Duration(1 * time.Second) constant defaultSamplingInterval (line 27) | defaultSamplingInterval = config.Duration(1 * time.Second) constant defaultQueueSize (line 28) | defaultQueueSize = 10 constant defaultQueueBehaviour (line 29) | defaultQueueBehaviour = "DiscardOldest" constant defaultValueChange (line 30) | defaultValueChange = "StatusValue" constant defaultMeasurementName (line 31) | defaultMeasurementName = "ctrlx" constant subscriptionPath (line 32) | subscriptionPath = "/automation/api/v2/events" type node (line 36) | type node struct method fieldKey (line 173) | func (n *node) fieldKey() string { type subscription (line 43) | type subscription struct method applyDefaultSettings (line 104) | func (s *subscription) applyDefaultSettings() { method createRequest (line 133) | func (s *subscription) createRequest(id string) subscriptionRequest { method addressList (line 154) | func (s *subscription) addressList() []string { method node (line 163) | func (s *subscription) node(address string) *node { type rule (line 60) | type rule struct type sampling (line 66) | type sampling struct type queueing (line 71) | type queueing struct type dataChangeFilter (line 77) | type dataChangeFilter struct type changeEvents (line 82) | type changeEvents struct type subscriptionProperties (line 89) | type subscriptionProperties struct type subscriptionRequest (line 98) | type subscriptionRequest struct FILE: plugins/inputs/ctrlx_datalayer/ctrlx_datalayer_subscription_test.go function TestSubscription_createRequest (line 12) | func TestSubscription_createRequest(t *testing.T) { function TestSubscription_node (line 98) | func TestSubscription_node(t *testing.T) { function TestSubscription_addressList (line 165) | func TestSubscription_addressList(t *testing.T) { function TestNode_fieldKey (line 205) | func TestNode_fieldKey(t *testing.T) { FILE: plugins/inputs/ctrlx_datalayer/ctrlx_datalayer_test.go constant path (line 19) | path = "/automation/api/v2/events" function setMultiEntries (line 24) | func setMultiEntries(m bool) { function getMultiEntries (line 30) | func getMultiEntries() bool { function TestCtrlXCreateSubscriptionBasic (line 36) | func TestCtrlXCreateSubscriptionBasic(t *testing.T) { function TestCtrlXCreateSubscriptionDriven (line 72) | func TestCtrlXCreateSubscriptionDriven(t *testing.T) { function newServer (line 125) | func newServer(t *testing.T) *httptest.Server { function cleanup (line 203) | func cleanup(server *httptest.Server) { function initRunner (line 208) | func initRunner(t *testing.T) (*CtrlXDataLayer, *httptest.Server) { function TestCtrlXMetricsField (line 238) | func TestCtrlXMetricsField(t *testing.T) { function TestCtrlXMetricsMulti (line 256) | func TestCtrlXMetricsMulti(t *testing.T) { function TestCtrlXCreateSseClient (line 278) | func TestCtrlXCreateSseClient(t *testing.T) { function TestConvertTimestamp2UnixTime (line 293) | func TestConvertTimestamp2UnixTime(t *testing.T) { FILE: plugins/inputs/dcos/client.go constant loginDuration (line 18) | loginDuration = 65 * time.Minute type client (line 22) | type client interface type apiError (line 33) | type apiError struct method Error (line 106) | func (e apiError) Error() string { type login (line 41) | type login struct type loginError (line 48) | type loginError struct type loginAuth (line 54) | type loginAuth struct type slave (line 59) | type slave struct type summary (line 64) | type summary struct type container (line 70) | type container struct type dataPoint (line 74) | type dataPoint struct type metrics (line 82) | type metrics struct type authToken (line 88) | type authToken struct type clusterClient (line 94) | type clusterClient struct method setToken (line 131) | func (c *clusterClient) setToken(token string) { method login (line 135) | func (c *clusterClient) login(ctx context.Context, sa *serviceAccount)... method getSummary (line 204) | func (c *clusterClient) getSummary(ctx context.Context) (*summary, err... method getContainers (line 214) | func (c *clusterClient) getContainers(ctx context.Context, node string... method getMetrics (line 229) | func (c *clusterClient) getMetrics(ctx context.Context, address string... method getNodeMetrics (line 240) | func (c *clusterClient) getNodeMetrics(ctx context.Context, node strin... method getContainerMetrics (line 245) | func (c *clusterClient) getContainerMetrics(ctx context.Context, node,... method getAppMetrics (line 250) | func (c *clusterClient) getAppMetrics(ctx context.Context, node, conta... method doGet (line 269) | func (c *clusterClient) doGet(ctx context.Context, address string, v i... method toURL (line 313) | func (c *clusterClient) toURL(path string) string { type claims (line 101) | type claims struct function newClusterClient (line 113) | func newClusterClient(clusterURL *url.URL, timeout time.Duration, maxCon... function createGetRequest (line 255) | func createGetRequest(address, token string) (*http.Request, error) { function createLoginToken (line 319) | func createLoginToken(sa *serviceAccount) (string, error) { FILE: plugins/inputs/dcos/client_test.go function TestLogin (line 18) | func TestLogin(t *testing.T) { function TestGetSummary (line 81) | func TestGetSummary(t *testing.T) { function TestGetNodeMetrics (line 145) | func TestGetNodeMetrics(t *testing.T) { function TestGetContainerMetrics (line 185) | func TestGetContainerMetrics(t *testing.T) { FILE: plugins/inputs/dcos/creds.go constant relogDuration (line 15) | relogDuration = 5 * time.Minute type credentials (line 18) | type credentials interface type serviceAccount (line 23) | type serviceAccount struct method token (line 37) | func (c *serviceAccount) token(ctx context.Context, client client) (st... method isExpired (line 46) | func (c *serviceAccount) isExpired() bool { type tokenCreds (line 30) | type tokenCreds struct method token (line 50) | func (c *tokenCreds) token(_ context.Context, _ client) (string, error) { method isExpired (line 62) | func (*tokenCreds) isExpired() bool { type nullCreds (line 34) | type nullCreds struct method token (line 66) | func (*nullCreds) token(context.Context, client) (string, error) { method isExpired (line 70) | func (*nullCreds) isExpired() bool { FILE: plugins/inputs/dcos/dcos.go constant defaultMaxConnections (line 46) | defaultMaxConnections = 10 constant defaultResponseTimeout (line 47) | defaultResponseTimeout = 20 * time.Second type DCOS (line 50) | type DCOS struct method SampleConfig (line 84) | func (*DCOS) SampleConfig() string { method Gather (line 88) | func (d *DCOS) Gather(acc telegraf.Accumulator) error { method gatherNode (line 120) | func (d *DCOS) gatherNode(ctx context.Context, acc telegraf.Accumulato... method gatherContainers (line 141) | func (d *DCOS) gatherContainers(ctx context.Context, acc telegraf.Accu... method initialize (line 281) | func (d *DCOS) initialize() error { method createClient (line 309) | func (d *DCOS) createClient() (client, error) { method createCredentials (line 330) | func (d *DCOS) createCredentials() (credentials, error) { method createFilters (line 357) | func (d *DCOS) createFilters() error { type point (line 78) | type point struct function createPoints (line 187) | func createPoints(m *metrics) []*point { function addMetrics (line 247) | func addMetrics(acc telegraf.Accumulator, cluster, mname string, m *metr... function addNodeMetrics (line 269) | func addNodeMetrics(acc telegraf.Accumulator, cluster string, m *metrics) { function addContainerMetrics (line 273) | func addContainerMetrics(acc telegraf.Accumulator, cluster string, m *me... function addAppMetrics (line 277) | func addAppMetrics(acc telegraf.Accumulator, cluster string, m *metrics) { function init (line 380) | func init() { FILE: plugins/inputs/dcos/dcos_test.go type mockClient (line 12) | type mockClient struct method setToken (line 22) | func (c *mockClient) setToken(string) { method login (line 26) | func (c *mockClient) login(ctx context.Context, sa *serviceAccount) (*... method getSummary (line 30) | func (c *mockClient) getSummary(context.Context) (*summary, error) { method getContainers (line 34) | func (c *mockClient) getContainers(context.Context, string) ([]contain... method getNodeMetrics (line 38) | func (c *mockClient) getNodeMetrics(context.Context, string) (*metrics... method getContainerMetrics (line 42) | func (c *mockClient) getContainerMetrics(ctx context.Context, node, co... method getAppMetrics (line 46) | func (c *mockClient) getAppMetrics(ctx context.Context, node, containe... function TestAddNodeMetrics (line 50) | func TestAddNodeMetrics(t *testing.T) { function TestAddContainerMetrics (line 207) | func TestAddContainerMetrics(t *testing.T) { function TestAddAppMetrics (line 277) | func TestAddAppMetrics(t *testing.T) { function TestGatherFilterNode (line 350) | func TestGatherFilterNode(t *testing.T) { FILE: plugins/inputs/directory_monitor/directory_monitor.go constant defaultMaxBufferedMetrics (line 37) | defaultMaxBufferedMetrics = 10000 constant defaultDirectoryDurationThreshold (line 38) | defaultDirectoryDurationThreshold = config.Duration(0 * time.Millisecond) constant defaultFileQueueSize (line 39) | defaultFileQueueSize = 100000 constant defaultParseMethod (line 40) | defaultParseMethod = "line-by-line" type DirectoryMonitor (line 43) | type DirectoryMonitor struct method SampleConfig (line 75) | func (*DirectoryMonitor) SampleConfig() string { method SetParserFunc (line 79) | func (monitor *DirectoryMonitor) SetParserFunc(fn telegraf.ParserFunc) { method Init (line 83) | func (monitor *DirectoryMonitor) Init() error { method Start (line 148) | func (monitor *DirectoryMonitor) Start(acc telegraf.Accumulator) error { method Gather (line 167) | func (monitor *DirectoryMonitor) Gather(_ telegraf.Accumulator) error { method Stop (line 227) | func (monitor *DirectoryMonitor) Stop() { method monitor (line 235) | func (monitor *DirectoryMonitor) monitor() { method processFile (line 256) | func (monitor *DirectoryMonitor) processFile(path string) { method read (line 275) | func (monitor *DirectoryMonitor) read(filePath string) { method ingestFile (line 300) | func (monitor *DirectoryMonitor) ingestFile(filePath string) error { method parseFile (line 326) | func (monitor *DirectoryMonitor) parseFile(parser telegraf.Parser, rea... method parseAtOnce (line 356) | func (monitor *DirectoryMonitor) parseAtOnce(parser telegraf.Parser, r... method parseMetrics (line 370) | func (monitor *DirectoryMonitor) parseMetrics(parser telegraf.Parser, ... method sendMetrics (line 394) | func (monitor *DirectoryMonitor) sendMetrics(metrics []telegraf.Metric... method moveFile (line 406) | func (monitor *DirectoryMonitor) moveFile(srcPath, dstBaseDir string) { method isMonitoredFile (line 444) | func (monitor *DirectoryMonitor) isMonitoredFile(fileName string) bool { method isIgnoredFile (line 459) | func (monitor *DirectoryMonitor) isIgnoredFile(fileName string) bool { function init (line 470) | func init() { FILE: plugins/inputs/directory_monitor/directory_monitor_test.go function TestCreator (line 20) | func TestCreator(t *testing.T) { function TestCSVGZImport (line 34) | func TestCSVGZImport(t *testing.T) { function TestCSVGZImportWithHeader (line 100) | func TestCSVGZImportWithHeader(t *testing.T) { function TestMultipleJSONFileImports (line 171) | func TestMultipleJSONFileImports(t *testing.T) { function TestFileTag (line 221) | func TestFileTag(t *testing.T) { function TestCSVNoSkipRows (line 274) | func TestCSVNoSkipRows(t *testing.T) { function TestCSVSkipRows (line 343) | func TestCSVSkipRows(t *testing.T) { function TestCSVMultiHeader (line 414) | func TestCSVMultiHeader(t *testing.T) { function TestParseCompleteFile (line 483) | func TestParseCompleteFile(t *testing.T) { function TestParseSubdirectories (line 536) | func TestParseSubdirectories(t *testing.T) { function TestParseSubdirectoriesFilesIgnore (line 608) | func TestParseSubdirectoriesFilesIgnore(t *testing.T) { FILE: plugins/inputs/disk/disk.go type Disk (line 19) | type Disk struct method SampleConfig (line 28) | func (*Disk) SampleConfig() string { method Init (line 32) | func (ds *Disk) Init() error { method Gather (line 40) | func (ds *Disk) Gather(acc telegraf.Accumulator) error { type mountOptions (line 96) | type mountOptions method mode (line 98) | func (opts mountOptions) mode() string { method exists (line 107) | func (opts mountOptions) exists(opt string) bool { function init (line 116) | func init() { FILE: plugins/inputs/disk/disk_test.go function TestDiskUsage (line 21) | func TestDiskUsage(t *testing.T) { function TestDiskUsageHostMountPrefix (line 166) | func TestDiskUsageHostMountPrefix(t *testing.T) { function TestDiskStats (line 369) | func TestDiskStats(t *testing.T) { function TestDiskUsageIssues (line 552) | func TestDiskUsageIssues(t *testing.T) { FILE: plugins/inputs/diskio/diskio.go type DiskIO (line 27) | type DiskIO struct method SampleConfig (line 43) | func (*DiskIO) SampleConfig() string { method Init (line 47) | func (d *DiskIO) Init() error { method Gather (line 66) | func (d *DiskIO) Gather(acc telegraf.Accumulator) error { method diskName (line 169) | func (d *DiskIO) diskName(devName string) (string, []string) { method diskTags (line 211) | func (d *DiskIO) diskTags(devName string) map[string]string { function hasMeta (line 161) | func hasMeta(s string) bool { function sanitizeSerialNumber (line 165) | func sanitizeSerialNumber(serial string) string { function init (line 235) | func init() { FILE: plugins/inputs/diskio/diskio_linux.go type diskInfoCache (line 16) | type diskInfoCache struct method diskInfo (line 23) | func (d *DiskIO) diskInfo(devName string) (map[string]string, error) { function readUdevData (line 90) | func readUdevData(path string) (map[string]string, error) { function readDevData (line 131) | func readDevData(path string) (map[string]string, error) { function resolveName (line 168) | func resolveName(name string) string { function getDeviceWWID (line 185) | func getDeviceWWID(name string) string { FILE: plugins/inputs/diskio/diskio_linux_test.go function TestDiskInfo (line 12) | func TestDiskInfo(t *testing.T) { function TestDiskIOStats_diskName (line 33) | func TestDiskIOStats_diskName(t *testing.T) { function TestDiskIOStats_diskTags (line 70) | func TestDiskIOStats_diskTags(t *testing.T) { FILE: plugins/inputs/diskio/diskio_other.go type diskInfoCache (line 5) | type diskInfoCache struct method diskInfo (line 7) | func (*DiskIO) diskInfo(_ string) (map[string]string, error) { function resolveName (line 11) | func resolveName(name string) string { function getDeviceWWID (line 15) | func getDeviceWWID(_ string) string { FILE: plugins/inputs/diskio/diskio_test.go function TestDiskIO (line 14) | func TestDiskIO(t *testing.T) { function TestDiskIOUtil (line 158) | func TestDiskIOUtil(t *testing.T) { function TestCounterWraparound (line 220) | func TestCounterWraparound(t *testing.T) { FILE: plugins/inputs/disque/disque.go constant defaultPort (line 48) | defaultPort = "7711" type Disque (line 51) | type Disque struct method SampleConfig (line 57) | func (*Disque) SampleConfig() string { method Gather (line 61) | func (d *Disque) Gather(acc telegraf.Accumulator) error { method gatherServer (line 93) | func (d *Disque) gatherServer(addr *url.URL, acc telegraf.Accumulator)... function init (line 200) | func init() { FILE: plugins/inputs/disque/disque_test.go function TestDisqueGeneratesMetricsIntegration (line 14) | func TestDisqueGeneratesMetricsIntegration(t *testing.T) { function TestDisqueCanPullStatsFromMultipleServersIntegration (line 84) | func TestDisqueCanPullStatsFromMultipleServersIntegration(t *testing.T) { constant testOutput (line 154) | testOutput = `# Server FILE: plugins/inputs/dmcache/dmcache.go type DMCache (line 14) | type DMCache struct method SampleConfig (line 20) | func (*DMCache) SampleConfig() string { function init (line 24) | func init() { FILE: plugins/inputs/dmcache/dmcache_linux.go constant metricName (line 14) | metricName = "dmcache" type cacheStatus (line 16) | type cacheStatus struct method Gather (line 35) | func (c *DMCache) Gather(acc telegraf.Accumulator) error { function parseDMSetupStatus (line 61) | func parseDMSetupStatus(line string) (cacheStatus, error) { function aggregateStats (line 140) | func aggregateStats(totalStatus *cacheStatus, status cacheStatus) { function toFields (line 157) | func toFields(status cacheStatus) map[string]interface{} { function dmSetupStatus (line 176) | func dmSetupStatus() ([]string, error) { FILE: plugins/inputs/dmcache/dmcache_linux_test.go function TestPerDeviceGoodOutput (line 25) | func TestPerDeviceGoodOutput(t *testing.T) { function TestNotPerDeviceGoodOutput (line 102) | func TestNotPerDeviceGoodOutput(t *testing.T) { function TestNoDevicesOutput (line 137) | func TestNoDevicesOutput(t *testing.T) { function TestErrorDuringGettingStatus (line 150) | func TestErrorDuringGettingStatus(t *testing.T) { function TestBadFormatOfStatus (line 163) | func TestBadFormatOfStatus(t *testing.T) { FILE: plugins/inputs/dmcache/dmcache_notlinux.go method Gather (line 9) | func (*DMCache) Gather(_ telegraf.Accumulator) error { function dmSetupStatus (line 13) | func dmSetupStatus() ([]string, error) { FILE: plugins/inputs/dns_query/dns_query.go type resultType (line 28) | type resultType constant successResult (line 31) | successResult resultType = iota constant timeoutResult (line 32) | timeoutResult constant errorResult (line 33) | errorResult type DNSQuery (line 36) | type DNSQuery struct method SampleConfig (line 48) | func (*DNSQuery) SampleConfig() string { method Init (line 52) | func (d *DNSQuery) Init() error { method Gather (line 85) | func (d *DNSQuery) Gather(acc telegraf.Accumulator) error { method query (line 110) | func (d *DNSQuery) query(domain, server string) (map[string]interface{... method parseRecordType (line 204) | func (d *DNSQuery) parseRecordType() (uint16, error) { function extractIP (line 238) | func extractIP(record dns.RR) (string, bool) { function init (line 248) | func init() { FILE: plugins/inputs/dns_query/dns_query_test.go function TestGathering (line 21) | func TestGathering(t *testing.T) { function TestGatherInvalid (line 42) | func TestGatherInvalid(t *testing.T) { function TestGatheringMxRecord (line 59) | func TestGatheringMxRecord(t *testing.T) { function TestGatheringRootDomain (line 84) | func TestGatheringRootDomain(t *testing.T) { function TestMetricContainsServerAndDomainAndRecordTypeTags (line 126) | func TestMetricContainsServerAndDomainAndRecordTypeTags(t *testing.T) { function TestGatheringTimeout (line 166) | func TestGatheringTimeout(t *testing.T) { function TestSettingDefaultValues (line 192) | func TestSettingDefaultValues(t *testing.T) { function TestRecordTypeParser (line 210) | func TestRecordTypeParser(t *testing.T) { function TestRecordTypeParserError (line 276) | func TestRecordTypeParserError(t *testing.T) { FILE: plugins/inputs/docker/client.go type dockerClient (line 20) | type dockerClient interface function newEnvClient (line 45) | func newEnvClient() (dockerClient, error) { function newClient (line 53) | func newClient(host string, tlsConfig *tls.Config) (dockerClient, error) { type socketClient (line 71) | type socketClient struct method Info (line 76) | func (c *socketClient) Info(ctx context.Context) (system.Info, error) { method ContainerList (line 81) | func (c *socketClient) ContainerList(ctx context.Context, options cont... method ContainerStats (line 86) | func (c *socketClient) ContainerStats(ctx context.Context, containerID... method ContainerInspect (line 91) | func (c *socketClient) ContainerInspect(ctx context.Context, container... method ServiceList (line 96) | func (c *socketClient) ServiceList(ctx context.Context, options swarm.... method TaskList (line 101) | func (c *socketClient) TaskList(ctx context.Context, options swarm.Tas... method NodeList (line 106) | func (c *socketClient) NodeList(ctx context.Context, options swarm.Nod... method DiskUsage (line 111) | func (c *socketClient) DiskUsage(ctx context.Context, options types.Di... method ClientVersion (line 116) | func (c *socketClient) ClientVersion() string { method Ping (line 121) | func (c *socketClient) Ping(ctx context.Context) (types.Ping, error) { method Close (line 126) | func (c *socketClient) Close() error { FILE: plugins/inputs/docker/docker.go constant KB (line 50) | KB = 1000 constant MB (line 51) | MB = 1000 * KB constant GB (line 52) | GB = 1000 * MB constant TB (line 53) | TB = 1000 * GB constant PB (line 54) | PB = 1000 * TB constant defaultEndpoint (line 56) | defaultEndpoint = "unix:///var/run/docker.sock" type Docker (line 59) | type Docker struct method SampleConfig (line 112) | func (*Docker) SampleConfig() string { method Init (line 116) | func (d *Docker) Init() error { method Start (line 145) | func (d *Docker) Start(telegraf.Accumulator) error { method Stop (line 207) | func (d *Docker) Stop() { method Gather (line 215) | func (d *Docker) Gather(acc telegraf.Accumulator) error { method gatherSwarmInfo (line 284) | func (d *Docker) gatherSwarmInfo(acc telegraf.Accumulator) error { method gatherInfo (line 366) | func (d *Docker) gatherInfo(acc telegraf.Accumulator) error { method gatherContainer (line 507) | func (d *Docker) gatherContainer( method gatherContainerInspect (line 579) | func (d *Docker) gatherContainerInspect( method parseContainerStats (line 655) | func (d *Docker) parseContainerStats( method gatherBlockIOMetrics (line 897) | func (d *Docker) gatherBlockIOMetrics( method gatherDiskUsage (line 950) | func (d *Docker) gatherDiskUsage(acc telegraf.Accumulator, opts types.... method createContainerFilters (line 1066) | func (d *Docker) createContainerFilters() error { method createLabelFilters (line 1075) | func (d *Docker) createLabelFilters() error { method createContainerStateFilters (line 1084) | func (d *Docker) createContainerStateFilters() error { method getNewClient (line 1096) | func (d *Docker) getNewClient() (dockerClient, error) { method detectPodman (line 1111) | func (d *Docker) detectPodman(info *system.Info) bool { method fixPodmanCPUStats (line 1148) | func (d *Docker) fixPodmanCPUStats(containerID string, current *contai... method cleanupStaleCache (line 1178) | func (d *Docker) cleanupStaleCache() { type cachedContainerStats (line 107) | type cachedContainerStats struct function hostnameFromID (line 488) | func hostnameFromID(id string) string { function parseContainerName (line 496) | func parseContainerName(containerNames []string) string { function getDeviceStatMap (line 836) | func getDeviceStatMap(blkioStats container.BlkioStats) map[string]map[st... function copyTags (line 1037) | func copyTags(in map[string]string) map[string]string { function parseSize (line 1046) | func parseSize(sizeStr string) (int64, error) { function init (line 1199) | func init() { FILE: plugins/inputs/docker/docker_test.go type mockClient (line 27) | type mockClient struct method Info (line 41) | func (c *mockClient) Info(context.Context) (system.Info, error) { method ContainerList (line 45) | func (c *mockClient) ContainerList(_ context.Context, options containe... method ContainerStats (line 49) | func (c *mockClient) ContainerStats(_ context.Context, containerID str... method ContainerInspect (line 53) | func (c *mockClient) ContainerInspect(context.Context, string) (contai... method ServiceList (line 57) | func (c *mockClient) ServiceList(context.Context, swarm.ServiceListOpt... method TaskList (line 61) | func (c *mockClient) TaskList(context.Context, swarm.TaskListOptions) ... method NodeList (line 65) | func (c *mockClient) NodeList(context.Context, swarm.NodeListOptions) ... method DiskUsage (line 69) | func (c *mockClient) DiskUsage(context.Context, types.DiskUsageOptions... method ClientVersion (line 73) | func (c *mockClient) ClientVersion() string { method Ping (line 77) | func (c *mockClient) Ping(context.Context) (types.Ping, error) { method Close (line 81) | func (c *mockClient) Close() error { function TestDockerGatherContainerStats (line 121) | func TestDockerGatherContainerStats(t *testing.T) { function TestDockerMemoryExcludesCache (line 274) | func TestDockerMemoryExcludesCache(t *testing.T) { function TestDocker_WindowsMemoryContainerStats (line 430) | func TestDocker_WindowsMemoryContainerStats(t *testing.T) { function TestContainerLabels (line 480) | func TestContainerLabels(t *testing.T) { function genContainerLabeled (line 609) | func genContainerLabeled(labels map[string]string) container.Summary { function TestContainerNames (line 616) | func TestContainerNames(t *testing.T) { function filterMetrics (line 729) | func filterMetrics(metrics []telegraf.Metric, f func(telegraf.Metric) bo... function TestContainerStatus (line 739) | func TestContainerStatus(t *testing.T) { function TestDockerGatherInfo (line 937) | func TestDockerGatherInfo(t *testing.T) { function TestDockerGatherSwarmInfo (line 1091) | func TestDockerGatherSwarmInfo(t *testing.T) { function TestContainerStateFilter (line 1159) | func TestContainerStateFilter(t *testing.T) { function TestNonRunningContainerEmitsStatusMetrics (line 1249) | func TestNonRunningContainerEmitsStatusMetrics(t *testing.T) { function TestContainerName (line 1324) | func TestContainerName(t *testing.T) { function TestHostnameFromID (line 1397) | func TestHostnameFromID(t *testing.T) { function Test_parseContainerStatsPerDeviceAndTotal (line 1430) | func Test_parseContainerStatsPerDeviceAndTotal(t *testing.T) { function TestDocker_Init (line 1576) | func TestDocker_Init(t *testing.T) { function TestDockerGatherDiskUsage (line 1639) | func TestDockerGatherDiskUsage(t *testing.T) { function TestPodmanDetection (line 1719) | func TestPodmanDetection(t *testing.T) { function TestPodmanStatsCache (line 1832) | func TestPodmanStatsCache(t *testing.T) { function TestStartupErrorBehaviorError (line 1881) | func TestStartupErrorBehaviorError(t *testing.T) { function TestStartupErrorBehaviorIgnore (line 1914) | func TestStartupErrorBehaviorIgnore(t *testing.T) { function TestStartSuccess (line 1947) | func TestStartSuccess(t *testing.T) { FILE: plugins/inputs/docker/docker_testdata.go function containerStats (line 274) | func containerStats(s string) container.StatsResponseReader { function testStats (line 401) | func testStats() *container.StatsResponse { function containerStatsWindows (line 503) | func containerStatsWindows() container.StatsResponseReader { function containerInspect (line 545) | func containerInspect() container.InspectResponse { FILE: plugins/inputs/docker_log/client.go type dockerClient (line 13) | type dockerClient interface function newEnvClient (line 22) | func newEnvClient() (dockerClient, error) { function newClient (line 30) | func newClient(host string, tlsConfig *tls.Config) (dockerClient, error) { type socketClient (line 47) | type socketClient struct method ContainerList (line 52) | func (c *socketClient) ContainerList(ctx context.Context, options cont... method ContainerLogs (line 57) | func (c *socketClient) ContainerLogs(ctx context.Context, containerID ... method ContainerInspect (line 62) | func (c *socketClient) ContainerInspect(ctx context.Context, container... FILE: plugins/inputs/docker_log/docker_log.go constant defaultEndpoint (line 38) | defaultEndpoint = "unix:///var/run/docker.sock" type DockerLogs (line 41) | type DockerLogs struct method SampleConfig (line 72) | func (*DockerLogs) SampleConfig() string { method Init (line 76) | func (d *DockerLogs) Init() error { method Start (line 114) | func (*DockerLogs) Start(telegraf.Accumulator) error { method GetState (line 118) | func (d *DockerLogs) GetState() interface{} { method SetState (line 129) | func (d *DockerLogs) SetState(state interface{}) error { method Gather (line 143) | func (d *DockerLogs) Gather(acc telegraf.Accumulator) error { method Stop (line 191) | func (d *DockerLogs) Stop() { method addToContainerList (line 196) | func (d *DockerLogs) addToContainerList(containerID string, cancel con... method removeFromContainerList (line 202) | func (d *DockerLogs) removeFromContainerList(containerID string) { method containerInContainerList (line 208) | func (d *DockerLogs) containerInContainerList(containerID string) bool { method cancelTails (line 215) | func (d *DockerLogs) cancelTails() { method hasTTY (line 223) | func (d *DockerLogs) hasTTY(ctx context.Context, cntnr container.Summa... method tailContainerLogs (line 233) | func (d *DockerLogs) tailContainerLogs( method createContainerFilters (line 441) | func (d *DockerLogs) createContainerFilters() error { method createLabelFilters (line 450) | func (d *DockerLogs) createLabelFilters() error { method createContainerStateFilters (line 459) | func (d *DockerLogs) createContainerStateFilters() error { function parseContainerName (line 311) | func parseContainerName(containerNames []string) string { function parseLine (line 322) | func parseLine(line []byte) (time.Time, string, error) { function tailStream (line 345) | func tailStream( function tailMultiplexed (line 392) | func tailMultiplexed( function hostnameFromID (line 471) | func hostnameFromID(id string) string { function init (line 478) | func init() { FILE: plugins/inputs/docker_log/docker_log_test.go type mockClient (line 20) | type mockClient struct method ContainerList (line 26) | func (c *mockClient) ContainerList(context.Context, container.ListOpti... method ContainerInspect (line 30) | func (c *mockClient) ContainerInspect(context.Context, string) (contai... method ContainerLogs (line 34) | func (c *mockClient) ContainerLogs(context.Context, string, container.... type response (line 38) | type response struct method Close (line 42) | func (*response) Close() error { function mustParse (line 46) | func mustParse(layout, value string) time.Time { function Test (line 54) | func Test(t *testing.T) { FILE: plugins/inputs/dovecot/dovecot.go type Dovecot (line 30) | type Dovecot struct method SampleConfig (line 36) | func (*Dovecot) SampleConfig() string { method Gather (line 40) | func (d *Dovecot) Gather(acc telegraf.Accumulator) error { function gatherServer (line 68) | func gatherServer(addr string, acc telegraf.Accumulator, qtype, filter s... function gatherStats (line 127) | func gatherStats(buf *bytes.Buffer, acc telegraf.Accumulator, host, qtyp... function splitSec (line 163) | func splitSec(tm string) (sec, msec int64) { function timeParser (line 183) | func timeParser(tm string) time.Time { function secParser (line 188) | func secParser(tm string) float64 { function init (line 193) | func init() { FILE: plugins/inputs/dovecot/dovecot_test.go function TestDovecotIntegration (line 21) | func TestDovecotIntegration(t *testing.T) { constant sampleGlobal (line 159) | sampleGlobal = `reset_timestamp last_update num_logins num_cmds num_conn... constant sampleDomain (line 166) | sampleDomain = `domain reset_timestamp last_update num_logins num_cmds n... constant sampleIP (line 173) | sampleIP = `ip reset_timestamp last_update num_logins num_cmds num_conne... constant sampleUser (line 180) | sampleUser = `user reset_timestamp last_update num_logins num_cmds user_... function TestDovecotContainerIntegration (line 187) | func TestDovecotContainerIntegration(t *testing.T) { FILE: plugins/inputs/dpdk/dpdk.go constant defaultPathToSocket (line 26) | defaultPathToSocket = "/var/run/dpdk/rte/dpdk_telemetry.v2" constant defaultAccessTimeout (line 27) | defaultAccessTimeout = config.Duration(200 * time.Millisecond) constant maxCommandLength (line 28) | maxCommandLength = 56 constant maxCommandLengthWithParams (line 29) | maxCommandLengthWithParams = 1024 constant pluginName (line 30) | pluginName = "dpdk" constant ethdevListCommand (line 31) | ethdevListCommand = "/ethdev/list" constant rawdevListCommand (line 32) | rawdevListCommand = "/rawdev/list" constant dpdkMetadataFieldPidName (line 34) | dpdkMetadataFieldPidName = "pid" constant dpdkMetadataFieldVersionName (line 35) | dpdkMetadataFieldVersionName = "version" constant dpdkPluginOptionInMemory (line 37) | dpdkPluginOptionInMemory = "in_memory" constant unreachableSocketBehaviorIgnore (line 39) | unreachableSocketBehaviorIgnore = "ignore" constant unreachableSocketBehaviorError (line 40) | unreachableSocketBehaviorError = "error" type Dpdk (line 43) | type Dpdk struct method SampleConfig (line 65) | func (*Dpdk) SampleConfig() string { method Init (line 69) | func (dpdk *Dpdk) Init() error { method Start (line 102) | func (dpdk *Dpdk) Start(telegraf.Accumulator) error { method Gather (line 108) | func (dpdk *Dpdk) Gather(acc telegraf.Accumulator) error { method Stop (line 122) | func (dpdk *Dpdk) Stop() { method setupDefaultValues (line 132) | func (dpdk *Dpdk) setupDefaultValues() { method getDpdkInMemorySocketPaths (line 157) | func (dpdk *Dpdk) getDpdkInMemorySocketPaths() []string { method validateAdditionalCommands (line 176) | func (dpdk *Dpdk) validateAdditionalCommands() error { method maintainConnections (line 201) | func (dpdk *Dpdk) maintainConnections() error { method gatherCommands (line 260) | func (dpdk *Dpdk) gatherCommands(acc telegraf.Accumulator, dpdkConnect... type ethdevConfig (line 61) | type ethdevConfig struct function init (line 283) | func init() { FILE: plugins/inputs/dpdk/dpdk_cmds.go type linkStatus (line 10) | type linkStatus constant down (line 13) | down linkStatus = iota constant up (line 14) | up constant ethdevLinkStatusCommand (line 18) | ethdevLinkStatusCommand = "/ethdev/link_status" constant linkStatusStringFieldName (line 19) | linkStatusStringFieldName = "status" constant linkStatusIntegerFieldName (line 20) | linkStatusIntegerFieldName = "link_status" function processCommandResponse (line 30) | func processCommandResponse(command string, data map[string]interface{})... function processLinkStatusCmd (line 37) | func processLinkStatusCmd(data map[string]interface{}) error { function parseLinkStatus (line 52) | func parseLinkStatus(s string) (linkStatus, bool) { FILE: plugins/inputs/dpdk/dpdk_cmds_test.go function Test_LinkStatusCommand (line 14) | func Test_LinkStatusCommand(t *testing.T) { FILE: plugins/inputs/dpdk/dpdk_connector.go constant maxInitMessageLength (line 18) | maxInitMessageLength = 1024 constant dpdkSocketTemplateName (line 19) | dpdkSocketTemplateName = "dpdk_telemetry" type initMessage (line 22) | type initMessage struct type dpdkConnector (line 28) | type dpdkConnector struct method connect (line 44) | func (conn *dpdkConnector) connect() (*initMessage, error) { method addMetadataFields (line 66) | func (conn *dpdkConnector) addMetadataFields(metadataFields []string, ... method appendCommandsWithParamsFromList (line 82) | func (conn *dpdkConnector) appendCommandsWithParamsFromList(listComman... method getCommandResponse (line 106) | func (conn *dpdkConnector) getCommandResponse(fullCommand string) ([]b... method processCommand (line 141) | func (conn *dpdkConnector) processCommand(acc telegraf.Accumulator, lo... method tryClose (line 184) | func (conn *dpdkConnector) tryClose() error { method setTimeout (line 197) | func (conn *dpdkConnector) setTimeout() error { method getConnection (line 209) | func (conn *dpdkConnector) getConnection() (net.Conn, error) { method readInitMessage (line 220) | func (conn *dpdkConnector) readInitMessage() (*initMessage, error) { function newDpdkConnector (line 35) | func newDpdkConnector(pathToSocket string, accessTimeout config.Duration... FILE: plugins/inputs/dpdk/dpdk_connector_test.go function Test_readMaxOutputLen (line 17) | func Test_readMaxOutputLen(t *testing.T) { function Test_connect (line 92) | func Test_connect(t *testing.T) { function Test_getCommandResponse (line 107) | func Test_getCommandResponse(t *testing.T) { function Test_processCommand (line 187) | func Test_processCommand(t *testing.T) { FILE: plugins/inputs/dpdk/dpdk_notlinux.go type Dpdk (line 16) | type Dpdk struct method SampleConfig (line 20) | func (*Dpdk) SampleConfig() string { return sampleConfig } method Init (line 22) | func (d *Dpdk) Init() error { method Gather (line 27) | func (*Dpdk) Gather(_ telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/dpdk/dpdk_test.go function Test_Init (line 27) | func Test_Init(t *testing.T) { function Test_Start (line 113) | func Test_Start(t *testing.T) { function TestMaintainConnections (line 157) | func TestMaintainConnections(t *testing.T) { function TestClose (line 296) | func TestClose(t *testing.T) { function Test_validateAdditionalCommands (line 317) | func Test_validateAdditionalCommands(t *testing.T) { function prepareEnvironment (line 395) | func prepareEnvironment() (*mocks.Conn, Dpdk, *testutil.Accumulator) { function prepareEnvironmentWithMultiSockets (line 413) | func prepareEnvironmentWithMultiSockets() ([]*mocks.Conn, Dpdk, *testuti... function prepareEnvironmentWithInitializedMessage (line 442) | func prepareEnvironmentWithInitializedMessage(initMsg *initMessage) (*mo... function Test_appendCommandsWithParams (line 456) | func Test_appendCommandsWithParams(t *testing.T) { function Test_getCommandsAndParamsCombinations (line 473) | func Test_getCommandsAndParamsCombinations(t *testing.T) { function Test_getDpdkInMemorySocketPaths (line 536) | func Test_getDpdkInMemorySocketPaths(t *testing.T) { function Test_Gather (line 594) | func Test_Gather(t *testing.T) { function Test_Gather_MultiSocket (line 788) | func Test_Gather_MultiSocket(t *testing.T) { function simulateResponse (line 837) | func simulateResponse(mockConn *mocks.Conn, response string, readErr err... function createSocketForTest (line 850) | func createSocketForTest(t *testing.T, dirPath string) (string, net.List... function createMultipleSocketsForTest (line 887) | func createMultipleSocketsForTest(t *testing.T, numSockets int, dirPath ... function simulateSocketResponse (line 897) | func simulateSocketResponse(socket net.Listener, t *testing.T) { function prepareGlob (line 916) | func prepareGlob(path string) (*globpath.GlobPath, error) { FILE: plugins/inputs/dpdk/dpdk_utils.go function commandWithParams (line 17) | func commandWithParams(command, params string) string { function stripParams (line 24) | func stripParams(command string) string { function getParams (line 35) | func getParams(command string) string { function isInMemorySocketPath (line 44) | func isInMemorySocketPath(filePath, socketPath string) bool { function isSocket (line 63) | func isSocket(path string) error { function jsonToArray (line 81) | func jsonToArray(input []byte, command string) ([]string, error) { function removeSubset (line 106) | func removeSubset(elements []string, excludedFilter filter.Filter) []str... function uniqueValues (line 121) | func uniqueValues(values []string) []string { function isEmpty (line 134) | func isEmpty(value interface{}) bool { FILE: plugins/inputs/dpdk/dpdk_utils_test.go function Test_isSocket (line 14) | func Test_isSocket(t *testing.T) { function Test_stripParams (line 44) | func Test_stripParams(t *testing.T) { function Test_commandWithParams (line 60) | func Test_commandWithParams(t *testing.T) { function Test_getParams (line 76) | func Test_getParams(t *testing.T) { function Test_jsonToArray (line 92) | func Test_jsonToArray(t *testing.T) { FILE: plugins/inputs/dpdk/mocks/conn.go type Conn (line 13) | type Conn struct method Close (line 18) | func (_m *Conn) Close() error { method LocalAddr (line 36) | func (_m *Conn) LocalAddr() net.Addr { method Read (line 56) | func (_m *Conn) Read(b []byte) (int, error) { method RemoteAddr (line 84) | func (_m *Conn) RemoteAddr() net.Addr { method SetDeadline (line 104) | func (_m *Conn) SetDeadline(t time.Time) error { method SetReadDeadline (line 122) | func (_m *Conn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 140) | func (_m *Conn) SetWriteDeadline(t time.Time) error { method Write (line 158) | func (_m *Conn) Write(b []byte) (int, error) { function NewConn (line 187) | func NewConn(t interface { FILE: plugins/inputs/ecs/cgroupv2_test.go constant cgroupID (line 14) | cgroupID = "c69461b2c836cc3f0e3e5deb07b1f16e25f6009da2a48bb0adc7dd580bef... function TestParseCgroupV2Stats (line 16) | func TestParseCgroupV2Stats(t *testing.T) { function TestParseCgroupV2Meta (line 41) | func TestParseCgroupV2Meta(t *testing.T) { FILE: plugins/inputs/ecs/client.go type client (line 25) | type client interface type httpClient (line 30) | type httpClient interface function newClient (line 35) | func newClient(timeout time.Duration, endpoint string, version int) (*ec... function resolveTaskURL (line 59) | func resolveTaskURL(base *url.URL, version int) string { function resolveStatsURL (line 75) | func resolveStatsURL(base *url.URL, version int) string { function resolveURL (line 95) | func resolveURL(base *url.URL, path string) string { type ecsClient (line 100) | type ecsClient struct method task (line 109) | func (c *ecsClient) task() (*ecsTask, error) { method containerStats (line 135) | func (c *ecsClient) containerStats() (map[string]*container.StatsRespo... function pollSync (line 159) | func pollSync(c client) (*ecsTask, map[string]*container.StatsResponse, ... FILE: plugins/inputs/ecs/client_test.go type pollMock (line 16) | type pollMock struct method task (line 21) | func (p *pollMock) task() (*ecsTask, error) { method containerStats (line 25) | func (p *pollMock) containerStats() (map[string]*container.StatsRespon... function TestEcsClient_PollSync (line 29) | func TestEcsClient_PollSync(t *testing.T) { type mockDo (line 89) | type mockDo struct method Do (line 93) | func (m mockDo) Do(*http.Request) (*http.Response, error) { function TestEcsClient_Task (line 97) | func TestEcsClient_Task(t *testing.T) { function TestEcsClient_ContainerStats (line 171) | func TestEcsClient_ContainerStats(t *testing.T) { function TestResolveTaskURL (line 248) | func TestResolveTaskURL(t *testing.T) { function TestResolveStatsURL (line 285) | func TestResolveStatsURL(t *testing.T) { FILE: plugins/inputs/ecs/ecs.go constant v2Endpoint (line 20) | v2Endpoint = "http://169.254.170.2" type Ecs (line 23) | type Ecs struct method SampleConfig (line 46) | func (*Ecs) SampleConfig() string { method Gather (line 50) | func (ecs *Ecs) Gather(acc telegraf.Accumulator) error { method accContainers (line 151) | func (ecs *Ecs) accContainers(task *ecsTask, taskTags map[string]strin... method createContainerNameFilters (line 196) | func (ecs *Ecs) createContainerNameFilters() error { method createLabelFilters (line 205) | func (ecs *Ecs) createLabelFilters() error { method createContainerStatusFilters (line 214) | func (ecs *Ecs) createContainerStatusFilters() error { function initSetup (line 77) | func initSetup(ecs *Ecs) error { function resolveEndpoint (line 108) | func resolveEndpoint(ecs *Ecs) { function accTask (line 140) | func accTask(task *ecsTask, tags map[string]string, acc telegraf.Accumul... function copyTags (line 179) | func copyTags(in map[string]string) map[string]string { function mergeTags (line 188) | func mergeTags(a, b map[string]string) map[string]string { function init (line 235) | func init() { FILE: plugins/inputs/ecs/ecs_test.go constant pauseStatsKey (line 14) | pauseStatsKey = "e6af031b91deb3136a2b7c42f262ed2ab554e2fe2736998c7d8edf4... constant nginxStatsKey (line 15) | nginxStatsKey = "fffe894e232d46c76475cfeabf4907f712e8b92618a37fca3ef0805... function mustParseNano (line 23) | func mustParseNano(value string) time.Time { function TestResolveEndpoint (line 775) | func TestResolveEndpoint(t *testing.T) { FILE: plugins/inputs/ecs/stats.go function parseContainerStats (line 14) | func parseContainerStats(c *ecsContainer, acc telegraf.Accumulator, tags... function metastats (line 30) | func metastats(id string, c *ecsContainer, acc telegraf.Accumulator, tag... function memstats (line 48) | func memstats(id string, stats *container.StatsResponse, acc telegraf.Ac... function cpustats (line 105) | func cpustats(id string, stats *container.StatsResponse, acc telegraf.Ac... function netstats (line 146) | func netstats(id string, stats *container.StatsResponse, acc telegraf.Ac... function blkstats (line 198) | func blkstats(id string, stats *container.StatsResponse, acc telegraf.Ac... FILE: plugins/inputs/ecs/stats_test.go function Test_metastats (line 10) | func Test_metastats(t *testing.T) { function Test_memstats (line 39) | func Test_memstats(t *testing.T) { function Test_cpustats (line 86) | func Test_cpustats(t *testing.T) { function Test_netstats (line 128) | func Test_netstats(t *testing.T) { function Test_blkstats (line 196) | func Test_blkstats(t *testing.T) { FILE: plugins/inputs/ecs/types.go type ecsTask (line 13) | type ecsTask struct type ecsContainer (line 27) | type ecsContainer struct type network (line 45) | type network struct function unmarshalTask (line 50) | func unmarshalTask(r io.Reader) (*ecsTask, error) { function unmarshalStats (line 57) | func unmarshalStats(r io.Reader) (map[string]*container.StatsResponse, e... function mergeTaskStats (line 66) | func mergeTaskStats(task *ecsTask, stats map[string]*container.StatsResp... FILE: plugins/inputs/ecs/types_test.go function Test_parseTask (line 10) | func Test_parseTask(t *testing.T) { function Test_parseStats (line 20) | func Test_parseStats(t *testing.T) { function Test_mergeTaskStats (line 29) | func Test_mergeTaskStats(t *testing.T) { FILE: plugins/inputs/elasticsearch/elasticsearch.go constant statsPath (line 34) | statsPath = "/_nodes/stats" constant statsPathLocal (line 35) | statsPathLocal = "/_nodes/_local/stats" type Elasticsearch (line 38) | type Elasticsearch struct method SampleConfig (line 145) | func (*Elasticsearch) SampleConfig() string { method Init (line 149) | func (e *Elasticsearch) Init() error { method Start (line 161) | func (*Elasticsearch) Start(telegraf.Accumulator) error { method Gather (line 165) | func (e *Elasticsearch) Gather(acc telegraf.Accumulator) error { method Stop (line 267) | func (e *Elasticsearch) Stop() { method createHTTPClient (line 273) | func (e *Elasticsearch) createHTTPClient() (*http.Client, error) { method nodeStatsURL (line 278) | func (e *Elasticsearch) nodeStatsURL(baseURL string) string { method gatherNodeID (line 294) | func (e *Elasticsearch) gatherNodeID(url string) (string, error) { method gatherNodeStats (line 310) | func (e *Elasticsearch) gatherNodeStats(url string, acc telegraf.Accum... method gatherClusterHealth (line 364) | func (e *Elasticsearch) gatherClusterHealth(url string, acc telegraf.A... method gatherEnrichStats (line 416) | func (e *Elasticsearch) gatherEnrichStats(url string, acc telegraf.Acc... method gatherClusterStats (line 456) | func (e *Elasticsearch) gatherClusterStats(url string, acc telegraf.Ac... method gatherIndicesStats (line 486) | func (e *Elasticsearch) gatherIndicesStats(url string, acc telegraf.Ac... method gatherIndividualIndicesStats (line 523) | func (e *Elasticsearch) gatherIndividualIndicesStats(indices map[strin... method categorizeIndices (line 553) | func (e *Elasticsearch) categorizeIndices(indices map[string]indexStat... method gatherSingleIndexStats (line 583) | func (e *Elasticsearch) gatherSingleIndexStats(name string, index inde... method getCatMaster (line 648) | func (e *Elasticsearch) getCatMaster(url string) (string, error) { method gatherJSONData (line 688) | func (e *Elasticsearch) gatherJSONData(url string, v interface{}) error { method compileIndexMatchers (line 718) | func (e *Elasticsearch) compileIndexMatchers() (map[string]filter.Filt... type nodeStat (line 64) | type nodeStat struct type clusterHealth (line 80) | type clusterHealth struct type enrichStats (line 99) | type enrichStats struct type indexHealth (line 116) | type indexHealth struct type clusterStats (line 127) | type clusterStats struct type indexStat (line 135) | type indexStat struct type serverInfo (line 140) | type serverInfo struct method isMaster (line 735) | func (i serverInfo) isMaster() bool { function mapHealthStatusToCode (line 740) | func mapHealthStatusToCode(s string) int { function mapShardStatusToCode (line 753) | func mapShardStatusToCode(s string) int { function newElasticsearch (line 767) | func newElasticsearch() *Elasticsearch { function init (line 780) | func init() { FILE: plugins/inputs/elasticsearch/elasticsearch_test.go function defaultTags (line 14) | func defaultTags() map[string]string { function defaultServerInfo (line 24) | func defaultServerInfo() serverInfo { type transportMock (line 28) | type transportMock struct method RoundTrip (line 40) | func (t *transportMock) RoundTrip(r *http.Request) (*http.Response, er... function newTransportMock (line 33) | func newTransportMock(body string) http.RoundTripper { function checkNodeStatsResult (line 51) | func checkNodeStatsResult(t *testing.T, acc *testutil.Accumulator) { function TestGather (line 64) | func TestGather(t *testing.T) { function TestGatherIndividualStats (line 77) | func TestGatherIndividualStats(t *testing.T) { function TestGatherEnrichStats (line 101) | func TestGatherEnrichStats(t *testing.T) { function TestGatherNodeStats (line 117) | func TestGatherNodeStats(t *testing.T) { function TestGatherClusterHealthEmptyClusterHealth (line 130) | func TestGatherClusterHealthEmptyClusterHealth(t *testing.T) { function TestGatherClusterHealthSpecificClusterHealth (line 156) | func TestGatherClusterHealthSpecificClusterHealth(t *testing.T) { function TestGatherClusterHealthAlsoIndicesHealth (line 182) | func TestGatherClusterHealthAlsoIndicesHealth(t *testing.T) { function TestGatherClusterStatsMaster (line 208) | func TestGatherClusterStatsMaster(t *testing.T) { function TestGatherClusterStatsNonMaster (line 248) | func TestGatherClusterStatsNonMaster(t *testing.T) { function TestGatherClusterIndicesStats (line 275) | func TestGatherClusterIndicesStats(t *testing.T) { function TestGatherDateStampedIndicesStats (line 291) | func TestGatherDateStampedIndicesStats(t *testing.T) { function TestGatherClusterIndiceShardsStats (line 332) | func TestGatherClusterIndiceShardsStats(t *testing.T) { function newElasticsearchWithClient (line 369) | func newElasticsearchWithClient() *Elasticsearch { FILE: plugins/inputs/elasticsearch/testdata_test.go constant clusterHealthResponse (line 3) | clusterHealthResponse = ` constant clusterHealthResponseWithIndices (line 23) | clusterHealthResponseWithIndices = ` constant enrichStatsResponse (line 65) | enrichStatsResponse = ` constant nodeStatsResponse (line 173) | nodeStatsResponse = ` constant nodeStatsResponseJVMProcess (line 1006) | nodeStatsResponseJVMProcess = ` constant clusterStatsResponse (line 1380) | clusterStatsResponse = ` constant IsMasterResult (line 1647) | IsMasterResult = "SDFsfSDFsdfFSDSDfSFDSDF 10.206.124.66 10.206.124.66 te... constant IsNotMasterResult (line 1649) | IsNotMasterResult = "junk 10.206.124.66 10.206.124.66 test.junk.com " constant clusterIndicesResponse (line 1651) | clusterIndicesResponse = ` constant dateStampedIndicesResponse (line 2159) | dateStampedIndicesResponse = ` constant clusterIndicesShardsResponse (line 4252) | clusterIndicesShardsResponse = ` FILE: plugins/inputs/elasticsearch_query/aggregation_parser.go type resultMetric (line 11) | type resultMetric struct function parseSimpleResult (line 17) | func parseSimpleResult(acc telegraf.Accumulator, measurement string, sea... function parseAggregationResult (line 26) | func parseAggregationResult(acc telegraf.Accumulator, aggregationQueryLi... function recurseResponse (line 58) | func recurseResponse(acc telegraf.Accumulator, aggNameFunction map[strin... function getResponseAggregation (line 128) | func getResponseAggregation(function, aggName string, aggs elastic5.Aggr... function getAggNames (line 146) | func getAggNames(agg elastic5.Aggregations) (aggs []string) { FILE: plugins/inputs/elasticsearch_query/aggregation_query.go type aggKey (line 13) | type aggKey struct type aggregationQueryData (line 20) | type aggregationQueryData struct method runAggregationQuery (line 26) | func (e *ElasticsearchQuery) runAggregationQuery(ctx context.Context, ag... method getMetricFields (line 66) | func (e *ElasticsearchQuery) getMetricFields(ctx context.Context, aggreg... method buildAggregationQuery (line 132) | func (aggregation *esAggregation) buildAggregationQuery() error { function getFunctionAggregation (line 200) | func getFunctionAggregation(function, aggfield string) (elastic5.Aggrega... FILE: plugins/inputs/elasticsearch_query/elasticsearch_query.go type ElasticsearchQuery (line 26) | type ElasticsearchQuery struct method SampleConfig (line 58) | func (*ElasticsearchQuery) SampleConfig() string { method Init (line 62) | func (e *ElasticsearchQuery) Init() error { method Start (line 92) | func (*ElasticsearchQuery) Start(telegraf.Accumulator) error { method Gather (line 97) | func (e *ElasticsearchQuery) Gather(acc telegraf.Accumulator) error { method Stop (line 120) | func (e *ElasticsearchQuery) Stop() { method initAggregation (line 126) | func (e *ElasticsearchQuery) initAggregation(ctx context.Context, agg ... method connectToES (line 148) | func (e *ElasticsearchQuery) connectToES() error { method createHTTPClient (line 207) | func (e *ElasticsearchQuery) createHTTPClient() (*http.Client, error) { method esAggregationQuery (line 212) | func (e *ElasticsearchQuery) esAggregationQuery(acc telegraf.Accumulat... type esAggregation (line 42) | type esAggregation struct function init (line 238) | func init() { FILE: plugins/inputs/elasticsearch_query/elasticsearch_query_test.go constant servicePort (line 27) | servicePort = "9200" constant testindex (line 28) | testindex = "test-elasticsearch" type esAggregationQueryTest (line 31) | type esAggregationQueryTest struct function setupIntegrationTest (line 503) | func setupIntegrationTest(t *testing.T) (*testutil.Container, error) { function TestElasticsearchQueryIntegration (line 601) | func TestElasticsearchQueryIntegration(t *testing.T) { function TestElasticsearchQueryIntegration_getMetricFields (line 665) | func TestElasticsearchQueryIntegration_getMetricFields(t *testing.T) { function TestElasticsearchQuery_buildAggregationQuery (line 729) | func TestElasticsearchQuery_buildAggregationQuery(t *testing.T) { FILE: plugins/inputs/ethtool/ethtool.go constant pluginName (line 11) | pluginName = "ethtool" method SampleConfig (line 13) | func (*Ethtool) SampleConfig() string { FILE: plugins/inputs/ethtool/ethtool_linux.go constant tagInterface (line 25) | tagInterface = "interface" constant tagNamespace (line 26) | tagNamespace = "namespace" constant tagDriverName (line 27) | tagDriverName = "driver" constant fieldInterfaceUp (line 28) | fieldInterfaceUp = "interface_up" type Ethtool (line 31) | type Ethtool struct method Init (line 73) | func (e *Ethtool) Init() error { method Gather (line 108) | func (e *Ethtool) Gather(acc telegraf.Accumulator) error { method interfaceEligibleForGather (line 136) | func (e *Ethtool) interfaceEligibleForGather(iface namespacedInterface... method gatherEthtoolStats (line 156) | func (e *Ethtool) gatherEthtoolStats(iface namespacedInterface, acc te... method normalizeKey (line 197) | func (e *Ethtool) normalizeKey(key string) string { type command (line 60) | type command interface type commandEthtool (line 68) | type commandEthtool struct method init (line 251) | func (c *commandEthtool) init() error { method driverName (line 272) | func (*commandEthtool) driverName(intf namespacedInterface) (driver st... method stats (line 276) | func (*commandEthtool) stats(intf namespacedInterface) (stats map[stri... method get (line 280) | func (*commandEthtool) get(intf namespacedInterface) (stats map[string... method interfaces (line 284) | func (c *commandEthtool) interfaces(includeNamespaces bool) ([]namespa... function camelCase2SnakeCase (line 220) | func camelCase2SnakeCase(value string) string { function inStringSlice (line 229) | func inStringSlice(slice []string, value string) bool { function isLoopback (line 239) | func isLoopback(iface namespacedInterface) bool { function interfaceUp (line 243) | func interfaceUp(iface namespacedInterface) bool { function newCommandEthtool (line 247) | func newCommandEthtool() *commandEthtool { function init (line 360) | func init() { FILE: plugins/inputs/ethtool/ethtool_notlinux.go type Ethtool (line 10) | type Ethtool struct method Init (line 32) | func (e *Ethtool) Init() error { method Gather (line 37) | func (*Ethtool) Gather(_ telegraf.Accumulator) error { function init (line 41) | func init() { FILE: plugins/inputs/ethtool/ethtool_test.go type interfaceMock (line 20) | type interfaceMock struct type namespaceMock (line 30) | type namespaceMock struct method name (line 34) | func (n *namespaceMock) name() string { method interfaces (line 38) | func (*namespaceMock) interfaces() ([]namespacedInterface, error) { method driverName (line 42) | func (*namespaceMock) driverName(_ namespacedInterface) (string, error) { method stats (line 46) | func (*namespaceMock) stats(_ namespacedInterface) (map[string]uint64,... method get (line 50) | func (*namespaceMock) get(_ namespacedInterface) (map[string]uint64, e... type commandEthtoolMock (line 54) | type commandEthtoolMock struct method init (line 58) | func (*commandEthtoolMock) init() error { method driverName (line 63) | func (c *commandEthtoolMock) driverName(intf namespacedInterface) (str... method interfaces (line 71) | func (c *commandEthtoolMock) interfaces(includeNamespaces bool) ([]nam... method stats (line 117) | func (c *commandEthtoolMock) stats(intf namespacedInterface) (map[stri... method get (line 125) | func (c *commandEthtoolMock) get(intf namespacedInterface) (map[string... function setup (line 133) | func setup() { function toStringMapInterface (line 588) | func toStringMapInterface(in map[string]uint64) map[string]interface{} { function toStringMapUint (line 596) | func toStringMapUint(in map[string]interface{}) map[string]uint64 { function TestGather (line 605) | func TestGather(t *testing.T) { function TestGatherIncludeInterfaces (line 644) | func TestGatherIncludeInterfaces(t *testing.T) { function TestGatherIgnoreInterfaces (line 686) | func TestGatherIgnoreInterfaces(t *testing.T) { function TestSkipMetricsForInterfaceDown (line 728) | func TestSkipMetricsForInterfaceDown(t *testing.T) { function TestGatherIncludeNamespaces (line 756) | func TestGatherIncludeNamespaces(t *testing.T) { function TestGatherIgnoreNamespaces (line 798) | func TestGatherIgnoreNamespaces(t *testing.T) { type testCase (line 854) | type testCase struct function TestNormalizedKeys (line 860) | func TestNormalizedKeys(t *testing.T) { FILE: plugins/inputs/ethtool/namespace_linux.go type namespace (line 16) | type namespace interface type namespacedInterface (line 24) | type namespacedInterface struct type namespacedAction (line 29) | type namespacedAction struct type namespacedResult (line 34) | type namespacedResult struct type namespaceGoroutine (line 39) | type namespaceGoroutine struct method name (line 47) | func (n *namespaceGoroutine) name() string { method interfaces (line 51) | func (n *namespaceGoroutine) interfaces() ([]namespacedInterface, erro... method driverName (line 73) | func (n *namespaceGoroutine) driverName(intf namespacedInterface) (str... method stats (line 80) | func (n *namespaceGoroutine) stats(intf namespacedInterface) (map[stri... method get (line 87) | func (n *namespaceGoroutine) get(intf namespacedInterface) (map[string... method start (line 122) | func (n *namespaceGoroutine) start() error { method do (line 173) | func (n *namespaceGoroutine) do(f func(*namespaceGoroutine) (interface... FILE: plugins/inputs/eventhub_consumer/eventhub_consumer.go constant defaultMaxUndeliveredMessages (line 26) | defaultMaxUndeliveredMessages = 1000 type EventHub (line 29) | type EventHub struct method SampleConfig (line 74) | func (*EventHub) SampleConfig() string { method Init (line 78) | func (e *EventHub) Init() (err error) { method SetParser (line 111) | func (e *EventHub) SetParser(parser telegraf.Parser) { method Start (line 115) | func (e *EventHub) Start(acc telegraf.Accumulator) error { method Gather (line 151) | func (*EventHub) Gather(telegraf.Accumulator) error { method Stop (line 155) | func (e *EventHub) Stop() { method configureReceiver (line 164) | func (e *EventHub) configureReceiver() []eventhub.ReceiveOption { method onMessage (line 191) | func (e *EventHub) onMessage(ctx context.Context, event *eventhub.Even... method onDelivery (line 206) | func (e *EventHub) onDelivery( method startTracking (line 233) | func (e *EventHub) startTracking(ctx context.Context, ac telegraf.Accu... method createMetrics (line 273) | func (e *EventHub) createMetrics(event *eventhub.Event) ([]telegraf.Me... type empty (line 70) | type empty struct type semaphore (line 71) | type semaphore function deepCopyMetrics (line 264) | func deepCopyMetrics(in []telegraf.Metric) []telegraf.Metric { function init (line 342) | func init() { FILE: plugins/inputs/example/example.go type Example (line 22) | type Example struct method SampleConfig (line 47) | func (*Example) SampleConfig() string { method Init (line 52) | func (m *Example) Init() error { method Gather (line 86) | func (m *Example) Gather(acc telegraf.Accumulator) error { function init (line 132) | func init() { FILE: plugins/inputs/example/example_test.go function TestInitDefault (line 19) | func TestInitDefault(t *testing.T) { function TestInitFail (line 39) | func TestInitFail(t *testing.T) { function TestFixedValue (line 71) | func TestFixedValue(t *testing.T) { function TestRandomValue (line 235) | func TestRandomValue(t *testing.T) { function TestGatherFail (line 340) | func TestGatherFail(t *testing.T) { function TestRandomValueFailPartial (line 373) | func TestRandomValueFailPartial(t *testing.T) { FILE: plugins/inputs/exec/exec.go constant maxStderrBytes (line 27) | maxStderrBytes int = 512 type Exec (line 29) | type Exec struct method SampleConfig (line 59) | func (*Exec) SampleConfig() string { method Init (line 63) | func (e *Exec) Init() error { method SetParser (line 78) | func (e *Exec) SetParser(parser telegraf.Parser) { method Gather (line 91) | func (e *Exec) Gather(acc telegraf.Accumulator) error { method updateRunners (line 107) | func (e *Exec) updateRunners() []string { method processCommand (line 141) | func (e *Exec) processCommand(acc telegraf.Accumulator, cmd string) er... type exitCodeHandlerFunc (line 47) | type exitCodeHandlerFunc type runner (line 49) | type runner interface type commandRunner (line 53) | type commandRunner struct function truncate (line 198) | func truncate(buf *bytes.Buffer) { function init (line 217) | func init() { FILE: plugins/inputs/exec/exec_test.go constant validJSON (line 28) | validJSON = ` constant malformedJSON (line 42) | malformedJSON = ` type runnerMock (line 47) | type runnerMock struct method run (line 53) | func (r runnerMock) run(string) (out, errout []byte, err error) { function TestExec (line 57) | func TestExec(t *testing.T) { function TestExecMalformed (line 95) | func TestExecMalformed(t *testing.T) { function TestCommandError (line 115) | func TestCommandError(t *testing.T) { function TestCommandIgnoreError (line 135) | func TestCommandIgnoreError(t *testing.T) { function TestExecCommandWithGlob (line 178) | func TestExecCommandWithGlob(t *testing.T) { function TestExecCommandWithoutGlob (line 212) | func TestExecCommandWithoutGlob(t *testing.T) { function TestExecCommandWithoutGlobAndPath (line 246) | func TestExecCommandWithoutGlobAndPath(t *testing.T) { function TestExecCommandWithEnv (line 280) | func TestExecCommandWithEnv(t *testing.T) { function TestStderrLogging (line 315) | func TestStderrLogging(t *testing.T) { function TestTruncate (line 468) | func TestTruncate(t *testing.T) { function TestCSVBehavior (line 510) | func TestCSVBehavior(t *testing.T) { function TestCases (line 587) | func TestCases(t *testing.T) { FILE: plugins/inputs/exec/run_notwindows.go method run (line 17) | func (c *commandRunner) run(command string) (out, errout []byte, err err... FILE: plugins/inputs/exec/run_windows.go method run (line 19) | func (c *commandRunner) run(command string) (out, errout []byte, err err... function removeWindowsCarriageReturns (line 49) | func removeWindowsCarriageReturns(b bytes.Buffer) bytes.Buffer { FILE: plugins/inputs/execd/examples/count.go function main (line 12) | func main() { FILE: plugins/inputs/execd/examples/count.rb function time_ns_str (line 7) | def time_ns_str(t) FILE: plugins/inputs/execd/execd.go type Execd (line 29) | type Execd struct method SampleConfig (line 44) | func (*Execd) SampleConfig() string { method Init (line 48) | func (e *Execd) Init() error { method SetParser (line 55) | func (e *Execd) SetParser(parser telegraf.Parser) { method Start (line 67) | func (e *Execd) Start(acc telegraf.Accumulator) error { method Stop (line 94) | func (e *Execd) Stop() { method cmdReadOut (line 98) | func (e *Execd) cmdReadOut(out io.Reader) { method cmdReadOutStream (line 128) | func (e *Execd) cmdReadOutStream(out io.Reader) { method cmdReadErr (line 152) | func (e *Execd) cmdReadErr(out io.Reader) { function init (line 178) | func init() { FILE: plugins/inputs/execd/execd_posix.go method Gather (line 15) | func (e *Execd) Gather(_ telegraf.Accumulator) error { FILE: plugins/inputs/execd/execd_test.go function TestSettingConfigWorks (line 26) | func TestSettingConfigWorks(t *testing.T) { function TestExternalInputWorks (line 46) | func TestExternalInputWorks(t *testing.T) { function TestParsesLinesContainingNewline (line 80) | func TestParsesLinesContainingNewline(t *testing.T) { function TestParsesPrometheus (line 125) | func TestParsesPrometheus(t *testing.T) { function TestStopOnError (line 162) | func TestStopOnError(t *testing.T) { function TestStopOnErrorSuccess (line 192) | func TestStopOnErrorSuccess(t *testing.T) { function TestLoggingNoPrefix (line 218) | func TestLoggingNoPrefix(t *testing.T) { function TestLoggingWithPrefix (line 277) | func TestLoggingWithPrefix(t *testing.T) { function readChanWithTimeout (line 351) | func readChanWithTimeout(t *testing.T, metrics chan telegraf.Metric, tim... type TestMetricMaker (line 363) | type TestMetricMaker struct method Name (line 365) | func (*TestMetricMaker) Name() string { method LogName (line 369) | func (tm *TestMetricMaker) LogName() string { method MakeMetric (line 373) | func (*TestMetricMaker) MakeMetric(aMetric telegraf.Metric) telegraf.M... method Log (line 377) | func (*TestMetricMaker) Log() telegraf.Logger { function TestMain (line 381) | func TestMain(m *testing.M) { function runCounterProgram (line 414) | func runCounterProgram() error { function runLoggingProgram (line 443) | func runLoggingProgram() error { FILE: plugins/inputs/execd/execd_windows.go method Gather (line 15) | func (e *Execd) Gather(_ telegraf.Accumulator) error { FILE: plugins/inputs/execd/shim/goshim.go constant PollIntervalDisabled (line 38) | PollIntervalDisabled = time.Duration(0) type Shim (line 43) | type Shim struct method AddInput (line 66) | func (s *Shim) AddInput(input telegraf.Input) error { method AddInputs (line 79) | func (s *Shim) AddInputs(newInputs []telegraf.Input) error { method Run (line 89) | func (s *Shim) Run(pollInterval time.Duration) error { method LoadConfig (line 167) | func (s *Shim) LoadConfig(filePath *string) error { method stdinCollectMetricsPrompt (line 219) | func (s *Shim) stdinCollectMetricsPrompt(ctx context.Context, cancel c... method collectMetrics (line 250) | func (s *Shim) collectMetrics(ctx context.Context) { method startGathering (line 263) | func (s *Shim) startGathering(ctx context.Context, input telegraf.Inpu... method closeMetricChannelWhenInputsFinish (line 327) | func (s *Shim) closeMetricChannelWhenInputsFinish(wg *sync.WaitGroup) { type empty (line 53) | type empty struct function New (line 56) | func New() *Shim { function DefaultImportedPlugins (line 178) | func DefaultImportedPlugins() (i []telegraf.Input, e error) { function LoadConfig (line 186) | func LoadConfig(filePath *string) ([]telegraf.Input, error) { function hasQuit (line 210) | func hasQuit(ctx context.Context) bool { function pushCollectMetricsRequest (line 243) | func pushCollectMetricsRequest(collectMetricsPrompt chan<- os.Signal) { function expandEnvVars (line 296) | func expandEnvVars(contents []byte) string { function getEnv (line 300) | func getEnv(key string) string { function loadConfigIntoInputs (line 306) | func loadConfigIntoInputs(md toml.MetaData, inputConfigs map[string][]to... FILE: plugins/inputs/execd/shim/goshim_posix.go function listenForCollectMetricsSignals (line 12) | func listenForCollectMetricsSignals(ctx context.Context, collectMetricsP... FILE: plugins/inputs/execd/shim/goshim_windows.go function listenForCollectMetricsSignals (line 12) | func listenForCollectMetricsSignals(ctx context.Context, collectMetricsP... FILE: plugins/inputs/execd/shim/input.go type inputShim (line 6) | type inputShim struct method LogName (line 11) | func (inputShim) LogName() string { method MakeMetric (line 16) | func (inputShim) MakeMetric(m telegraf.Metric) telegraf.Metric { method Log (line 21) | func (inputShim) Log() telegraf.Logger { FILE: plugins/inputs/execd/shim/shim_posix_test.go function TestShimUSR1SignalingWorks (line 17) | func TestShimUSR1SignalingWorks(t *testing.T) { FILE: plugins/inputs/execd/shim/shim_test.go function TestShimWorks (line 16) | func TestShimWorks(t *testing.T) { function TestShimStdinSignalingWorks (line 32) | func TestShimStdinSignalingWorks(t *testing.T) { function runInputPlugin (line 56) | func runInputPlugin(t *testing.T, interval time.Duration, stdin io.Reade... type testInput (line 84) | type testInput struct method SampleConfig (line 88) | func (*testInput) SampleConfig() string { method Gather (line 92) | func (i *testInput) Gather(acc telegraf.Accumulator) error { method Start (line 104) | func (*testInput) Start(telegraf.Accumulator) error { method Stop (line 108) | func (*testInput) Stop() { function TestLoadConfig (line 111) | func TestLoadConfig(t *testing.T) { type serviceInput (line 130) | type serviceInput struct method SampleConfig (line 136) | func (*serviceInput) SampleConfig() string { method Gather (line 140) | func (*serviceInput) Gather(acc telegraf.Accumulator) error { method Start (line 152) | func (*serviceInput) Start(telegraf.Accumulator) error { method Stop (line 156) | func (*serviceInput) Stop() { function readUntilEmpty (line 161) | func readUntilEmpty(r *bufio.Reader) { FILE: plugins/inputs/fail2ban/fail2ban.go constant cmd (line 36) | cmd = "fail2ban-client" type Fail2ban (line 38) | type Fail2ban struct method SampleConfig (line 44) | func (*Fail2ban) SampleConfig() string { method Init (line 48) | func (f *Fail2ban) Init() error { method Gather (line 66) | func (f *Fail2ban) Gather(acc telegraf.Accumulator) error { function extractCount (line 126) | func extractCount(line string) (string, int) { function init (line 142) | func init() { FILE: plugins/inputs/fail2ban/fail2ban_test.go function TestGather (line 47) | func TestGather(t *testing.T) { function fakeExecCommand (line 88) | func fakeExecCommand(command string, args ...string) *exec.Cmd { function TestHelperProcess (line 97) | func TestHelperProcess(_ *testing.T) { FILE: plugins/inputs/fibaro/fibaro.go constant defaultTimeout (line 22) | defaultTimeout = 5 * time.Second type Fibaro (line 24) | type Fibaro struct method SampleConfig (line 34) | func (*Fibaro) SampleConfig() string { method Init (line 38) | func (f *Fibaro) Init() error { method Gather (line 50) | func (f *Fibaro) Gather(acc telegraf.Accumulator) error { method getJSON (line 84) | func (f *Fibaro) getJSON(path string) ([]byte, error) { function init (line 117) | func init() { FILE: plugins/inputs/fibaro/fibaro_test.go function TestUnauthorized (line 19) | func TestUnauthorized(t *testing.T) { function TestJSONSuccess (line 39) | func TestJSONSuccess(t *testing.T) { function TestHC3JSON (line 170) | func TestHC3JSON(t *testing.T) { function TestInvalidDeviceType (line 302) | func TestInvalidDeviceType(t *testing.T) { FILE: plugins/inputs/fibaro/hc2/parser.go function Parse (line 11) | func Parse(acc telegraf.Accumulator, sectionBytes, roomBytes, devicesByt... FILE: plugins/inputs/fibaro/hc2/types.go type LinkRoomsSections (line 4) | type LinkRoomsSections struct type Sections (line 10) | type Sections struct type Rooms (line 16) | type Rooms struct type Devices (line 23) | type Devices struct FILE: plugins/inputs/fibaro/hc3/parser.go function Parse (line 13) | func Parse(acc telegraf.Accumulator, sectionBytes, roomBytes, devicesByt... FILE: plugins/inputs/fibaro/hc3/types.go type linkRoomsSections (line 4) | type linkRoomsSections struct type Sections (line 10) | type Sections struct type Rooms (line 16) | type Rooms struct type Devices (line 23) | type Devices struct FILE: plugins/inputs/file/file.go type File (line 26) | type File struct method SampleConfig (line 38) | func (*File) SampleConfig() string { method Init (line 42) | func (f *File) Init() error { method SetParserFunc (line 48) | func (f *File) SetParserFunc(fn telegraf.ParserFunc) { method Gather (line 52) | func (f *File) Gather(acc telegraf.Accumulator) error { method refreshFilePaths (line 78) | func (f *File) refreshFilePaths() error { method readMetric (line 96) | func (f *File) readMetric(filename string) ([]telegraf.Metric, error) { function init (line 125) | func init() { FILE: plugins/inputs/file/file_test.go function TestRefreshFilePaths (line 25) | func TestRefreshFilePaths(t *testing.T) { function TestFileTag (line 41) | func TestFileTag(t *testing.T) { function TestJSONParserCompile (line 70) | func TestJSONParserCompile(t *testing.T) { function TestGrokParser (line 91) | func TestGrokParser(t *testing.T) { function TestCharacterEncoding (line 117) | func TestCharacterEncoding(t *testing.T) { function TestStatefulParsers (line 277) | func TestStatefulParsers(t *testing.T) { function TestCSVBehavior (line 400) | func TestCSVBehavior(t *testing.T) { FILE: plugins/inputs/filecount/filecount.go type FileCount (line 23) | type FileCount struct method SampleConfig (line 40) | func (*FileCount) SampleConfig() string { method Gather (line 44) | func (fc *FileCount) Gather(acc telegraf.Accumulator) error { method nameFilter (line 68) | func (fc *FileCount) nameFilter() fileFilterFunc { method regularOnlyFilter (line 82) | func (fc *FileCount) regularOnlyFilter() fileFilterFunc { method sizeFilter (line 92) | func (fc *FileCount) sizeFilter() fileFilterFunc { method mtimeFilter (line 108) | func (fc *FileCount) mtimeFilter() fileFilterFunc { method initFileFilters (line 130) | func (fc *FileCount) initFileFilters() { method count (line 140) | func (fc *FileCount) count(acc telegraf.Accumulator, basedir string, g... method filter (line 229) | func (fc *FileCount) filter(file os.FileInfo) (bool, error) { method resolveLink (line 247) | func (fc *FileCount) resolveLink(path string) (os.FileInfo, error) { method onlyDirectories (line 262) | func (fc *FileCount) onlyDirectories(directories []string) []string { method getDirs (line 273) | func (fc *FileCount) getDirs() []string { method initGlobPaths (line 282) | func (fc *FileCount) initGlobPaths(acc telegraf.Accumulator) { type fileFilterFunc (line 38) | type fileFilterFunc function rejectNilFilters (line 58) | func rejectNilFilters(filters []fileFilterFunc) []fileFilterFunc { function absDuration (line 123) | func absDuration(x time.Duration) time.Duration { function newFileCount (line 295) | func newFileCount() *FileCount { function init (line 308) | func init() { FILE: plugins/inputs/filecount/filecount_test.go function TestNoFilters (line 23) | func TestNoFilters(t *testing.T) { function TestNoFiltersOnChildDir (line 31) | func TestNoFiltersOnChildDir(t *testing.T) { function TestNoRecursiveButSuperMeta (line 46) | func TestNoRecursiveButSuperMeta(t *testing.T) { function TestNameFilter (line 62) | func TestNameFilter(t *testing.T) { function TestNonRecursive (line 69) | func TestNonRecursive(t *testing.T) { function TestDoubleAndSimpleStar (line 77) | func TestDoubleAndSimpleStar(t *testing.T) { function TestRegularOnlyFilter (line 91) | func TestRegularOnlyFilter(t *testing.T) { function TestSizeFilter (line 101) | func TestSizeFilter(t *testing.T) { function TestMTimeFilter (line 114) | func TestMTimeFilter(t *testing.T) { function TestFollowSymlinks (line 134) | func TestFollowSymlinks(t *testing.T) { function TestDirectoryWithTrailingSlash (line 146) | func TestDirectoryWithTrailingSlash(t *testing.T) { function getNoFilterFileCount (line 178) | func getNoFilterFileCount() FileCount { function getTestdataDir (line 192) | func getTestdataDir() string { function getFakeFileSystem (line 213) | func getFakeFileSystem(basePath string) fakeFileSystem { function fileCountEquals (line 243) | func fileCountEquals(t *testing.T, fc FileCount, expectedCount, expected... FILE: plugins/inputs/filecount/filesystem_helpers.go type fileSystem (line 14) | type fileSystem interface type file (line 20) | type file interface type osFS (line 29) | type osFS struct method open (line 31) | func (osFS) open(name string) (file, error) { return os.Open(n... method stat (line 32) | func (osFS) stat(name string) (os.FileInfo, error) { return os.Stat(n... method lstat (line 33) | func (osFS) lstat(name string) (os.FileInfo, error) { return os.Lstat(... FILE: plugins/inputs/filecount/filesystem_helpers_notwindows_test.go type fakeFileSystem (line 23) | type fakeFileSystem struct method open (line 43) | func (fakeFileSystem) open(name string) (file, error) { method stat (line 47) | func (f fakeFileSystem) stat(name string) (os.FileInfo, error) { method lstat (line 54) | func (f fakeFileSystem) lstat(name string) (os.FileInfo, error) { type fakeFileInfo (line 27) | type fakeFileInfo struct method Name (line 36) | func (f fakeFileInfo) Name() string { return f.name } method Size (line 37) | func (f fakeFileInfo) Size() int64 { return f.size } method Mode (line 38) | func (f fakeFileInfo) Mode() os.FileMode { return os.FileMode(f.filem... method ModTime (line 39) | func (f fakeFileInfo) ModTime() time.Time { return f.modtime } method IsDir (line 40) | func (f fakeFileInfo) IsDir() bool { return f.isdir } method Sys (line 41) | func (f fakeFileInfo) Sys() interface{} { return f.sys } FILE: plugins/inputs/filecount/filesystem_helpers_test.go function TestMTime (line 15) | func TestMTime(t *testing.T) { function TestSize (line 25) | func TestSize(t *testing.T) { function TestIsDir (line 34) | func TestIsDir(t *testing.T) { function TestRealFS (line 42) | func TestRealFS(t *testing.T) { function getTestFileSystem (line 63) | func getTestFileSystem() fakeFileSystem { FILE: plugins/inputs/filestat/filestat.go type FileStat (line 19) | type FileStat struct method SampleConfig (line 34) | func (*FileStat) SampleConfig() string { method Gather (line 38) | func (f *FileStat) Gather(acc telegraf.Accumulator) error { function getMd5 (line 112) | func getMd5(file string) (string, error) { function newFileStat (line 129) | func newFileStat() *FileStat { function init (line 137) | func init() { FILE: plugins/inputs/filestat/filestat_test.go function TestGatherNoMd5 (line 20) | func TestGatherNoMd5(t *testing.T) { function TestGatherExplicitFiles (line 50) | func TestGatherExplicitFiles(t *testing.T) { function TestNonExistentFile (line 83) | func TestNonExistentFile(t *testing.T) { function TestGatherGlob (line 100) | func TestGatherGlob(t *testing.T) { function TestGatherSuperAsterisk (line 126) | func TestGatherSuperAsterisk(t *testing.T) { function TestModificationTime (line 159) | func TestModificationTime(t *testing.T) { function TestNoModificationTime (line 177) | func TestNoModificationTime(t *testing.T) { function TestGetMd5 (line 194) | func TestGetMd5(t *testing.T) { function getTestdataDir (line 203) | func getTestdataDir() string { FILE: plugins/inputs/fireboard/fireboard.go type Fireboard (line 21) | type Fireboard struct method SampleConfig (line 42) | func (*Fireboard) SampleConfig() string { method Init (line 46) | func (r *Fireboard) Init() error { method Gather (line 63) | func (r *Fireboard) Gather(acc telegraf.Accumulator) error { type rtt (line 29) | type rtt struct type fireboardStats (line 36) | type fireboardStats struct function scale (line 96) | func scale(n int) string { function gatherTemps (line 108) | func gatherTemps(s fireboardStats, acc telegraf.Accumulator) { function newFireboard (line 125) | func newFireboard() *Fireboard { function init (line 134) | func init() { FILE: plugins/inputs/fireboard/fireboard_test.go function TestFireboard (line 16) | func TestFireboard(t *testing.T) { FILE: plugins/inputs/firehose/firehose.go type Firehose (line 27) | type Firehose struct method SampleConfig (line 48) | func (*Firehose) SampleConfig() string { method SetParser (line 52) | func (f *Firehose) SetParser(parser telegraf.Parser) { method Init (line 56) | func (f *Firehose) Init() error { method Start (line 70) | func (f *Firehose) Start(acc telegraf.Accumulator) error { method Stop (line 105) | func (f *Firehose) Stop() { method Gather (line 111) | func (*Firehose) Gather(telegraf.Accumulator) error { method ServeHTTP (line 115) | func (f *Firehose) ServeHTTP(res http.ResponseWriter, req *http.Reques... method handleRequest (line 130) | func (f *Firehose) handleRequest(req *http.Request) (*message, error) { function init (line 232) | func init() { FILE: plugins/inputs/firehose/firehose_request_test.go function TestInvalidRequests (line 23) | func TestInvalidRequests(t *testing.T) { function TestAuthentication (line 127) | func TestAuthentication(t *testing.T) { function TestCases (line 244) | func TestCases(t *testing.T) { function readInputData (line 348) | func readInputData(path string) (map[string]string, [][]byte, error) { FILE: plugins/inputs/firehose/message.go type record (line 16) | type record struct type requestBody (line 20) | type requestBody struct type responseBody (line 28) | type responseBody struct type message (line 34) | type message struct method authenticate (line 39) | func (m *message) authenticate(req *http.Request, expected config.Secr... method decodeData (line 58) | func (m *message) decodeData(r *requestBody) ([][]byte, error) { method extractTagsFromCommonAttributes (line 72) | func (m *message) extractTagsFromCommonAttributes(req *http.Request, t... method sendResponse (line 105) | func (m *message) sendResponse(w http.ResponseWriter) error { FILE: plugins/inputs/fluentd/fluentd.go constant measurement (line 21) | measurement = "fluentd" type Fluentd (line 23) | type Fluentd struct method SampleConfig (line 54) | func (*Fluentd) SampleConfig() string { method Gather (line 58) | func (h *Fluentd) Gather(acc telegraf.Accumulator) error { type endpointInfo (line 30) | type endpointInfo struct type pluginData (line 34) | type pluginData struct function parse (line 209) | func parse(data []byte) (datapointArray []pluginData, err error) { function init (line 221) | func init() { FILE: plugins/inputs/fluentd/fluentd_test.go constant sampleJSON (line 17) | sampleJSON = ` function Test_parse (line 159) | func Test_parse(t *testing.T) { function Test_Gather (line 169) | func Test_Gather(t *testing.T) { FILE: plugins/inputs/fritzbox/fritzbox.go type serviceHandlerFunc (line 36) | type serviceHandlerFunc type Fritzbox (line 38) | type Fritzbox struct method SampleConfig (line 49) | func (*Fritzbox) SampleConfig() string { method Init (line 53) | func (f *Fritzbox) Init() error { method Gather (line 109) | func (f *Fritzbox) Gather(acc telegraf.Accumulator) error { method gatherDevice (line 123) | func (f *Fritzbox) gatherDevice(acc telegraf.Accumulator, deviceClient... function gatherDeviceInfo (line 139) | func gatherDeviceInfo(acc telegraf.Accumulator, deviceClient *tr064.Clie... function gatherWanInfo (line 163) | func gatherWanInfo(acc telegraf.Accumulator, deviceClient *tr064.Client,... function gatherPppInfo (line 225) | func gatherPppInfo(acc telegraf.Accumulator, deviceClient *tr064.Client,... function gatherDslInfo (line 247) | func gatherDslInfo(acc telegraf.Accumulator, deviceClient *tr064.Client,... function gatherWlanInfo (line 298) | func gatherWlanInfo(acc telegraf.Accumulator, deviceClient *tr064.Client... function wlanBandFromInfo (line 328) | func wlanBandFromInfo(info *wlanconfig.GetInfoResponse) string { function gatherHostsInfo (line 339) | func gatherHostsInfo(acc telegraf.Accumulator, deviceClient *tr064.Clien... function hostRole (line 375) | func hostRole(role string) string { function fetchHostsConnections (line 382) | func fetchHostsConnections(serviceClient *hosts.ServiceClient) ([]*mesh.... function init (line 409) | func init() { FILE: plugins/inputs/fritzbox/fritzbox_test.go function TestValidDefaultConfig (line 19) | func TestValidDefaultConfig(t *testing.T) { function TestValidCustomConfig (line 38) | func TestValidCustomConfig(t *testing.T) { function TestInvalidURLsConfig (line 57) | func TestInvalidURLsConfig(t *testing.T) { function TestInvalidCollectConfig (line 69) | func TestInvalidCollectConfig(t *testing.T) { function TestCases (line 81) | func TestCases(t *testing.T) { FILE: plugins/inputs/github/github.go type GitHub (line 26) | type GitHub struct method SampleConfig (line 41) | func (*GitHub) SampleConfig() string { method Gather (line 45) | func (g *GitHub) Gather(acc telegraf.Accumulator) error { method createGitHubClient (line 116) | func (g *GitHub) createGitHubClient(ctx context.Context) (*github.Clie... method newGithubClient (line 141) | func (g *GitHub) newGithubClient(httpClient *http.Client) (*github.Cli... method handleRateLimit (line 148) | func (g *GitHub) handleRateLimit(response *github.Response, err error) { method getPullRequestFields (line 197) | func (g *GitHub) getPullRequestFields(ctx context.Context, owner, repo... function splitRepositoryName (line 158) | func splitRepositoryName(repositoryName string) (owner, repository strin... function getLicense (line 168) | func getLicense(rI *github.Repository) string { function getTags (line 176) | func getTags(repositoryInfo *github.Repository) map[string]string { function getFields (line 185) | func getFields(repositoryInfo *github.Repository) map[string]interface{} { function init (line 223) | func init() { FILE: plugins/inputs/github/github_test.go function TestNewGithubClient (line 11) | func TestNewGithubClient(t *testing.T) { function TestSplitRepositoryNameWithWorkingExample (line 23) | func TestSplitRepositoryNameWithWorkingExample(t *testing.T) { function TestSplitRepositoryNameWithNoSlash (line 45) | func TestSplitRepositoryNameWithNoSlash(t *testing.T) { function TestGetLicenseWhenExists (line 59) | func TestGetLicenseWhenExists(t *testing.T) { function TestGetLicenseWhenMissing (line 69) | func TestGetLicenseWhenMissing(t *testing.T) { function TestGetTags (line 77) | func TestGetTags(t *testing.T) { function TestGetFields (line 109) | func TestGetFields(t *testing.T) { FILE: plugins/inputs/gnmi/extensions/jnpr_gnmi_extention/GnmiJuniperTelemetryHeaderExtension.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type StreamType (line 24) | type StreamType method Enum (line 46) | func (x StreamType) Enum() *StreamType { method String (line 52) | func (x StreamType) String() string { method Descriptor (line 56) | func (StreamType) Descriptor() protoreflect.EnumDescriptor { method Type (line 60) | func (StreamType) Type() protoreflect.EnumType { method Number (line 64) | func (x StreamType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 69) | func (StreamType) EnumDescriptor() ([]byte, []int) { constant StreamType_INITIAL_SYNC (line 27) | StreamType_INITIAL_SYNC StreamType = 0 constant StreamType_ONCHANGE (line 28) | StreamType_ONCHANGE StreamType = 1 constant StreamType_PERIODIC (line 29) | StreamType_PERIODIC StreamType = 2 type GnmiJuniperTelemetryHeaderExtension (line 74) | type GnmiJuniperTelemetryHeaderExtension struct method Reset (line 114) | func (x *GnmiJuniperTelemetryHeaderExtension) Reset() { method String (line 123) | func (x *GnmiJuniperTelemetryHeaderExtension) String() string { method ProtoMessage (line 127) | func (*GnmiJuniperTelemetryHeaderExtension) ProtoMessage() {} method ProtoReflect (line 129) | func (x *GnmiJuniperTelemetryHeaderExtension) ProtoReflect() protorefl... method Descriptor (line 142) | func (*GnmiJuniperTelemetryHeaderExtension) Descriptor() ([]byte, []in... method GetSystemId (line 146) | func (x *GnmiJuniperTelemetryHeaderExtension) GetSystemId() string { method GetComponentId (line 153) | func (x *GnmiJuniperTelemetryHeaderExtension) GetComponentId() uint32 { method GetSubComponentId (line 160) | func (x *GnmiJuniperTelemetryHeaderExtension) GetSubComponentId() uint... method GetSensorName (line 167) | func (x *GnmiJuniperTelemetryHeaderExtension) GetSensorName() string { method GetSubscribedPath (line 174) | func (x *GnmiJuniperTelemetryHeaderExtension) GetSubscribedPath() stri... method GetStreamedPath (line 181) | func (x *GnmiJuniperTelemetryHeaderExtension) GetStreamedPath() string { method GetComponent (line 188) | func (x *GnmiJuniperTelemetryHeaderExtension) GetComponent() string { method GetSequenceNumber (line 195) | func (x *GnmiJuniperTelemetryHeaderExtension) GetSequenceNumber() uint... method GetPayloadGetTimestamp (line 202) | func (x *GnmiJuniperTelemetryHeaderExtension) GetPayloadGetTimestamp()... method GetStreamCreationTimestamp (line 209) | func (x *GnmiJuniperTelemetryHeaderExtension) GetStreamCreationTimesta... method GetEventTimestamp (line 217) | func (x *GnmiJuniperTelemetryHeaderExtension) GetEventTimestamp() int64 { method GetExportTimestamp (line 224) | func (x *GnmiJuniperTelemetryHeaderExtension) GetExportTimestamp() int... method GetSubSequenceNumber (line 231) | func (x *GnmiJuniperTelemetryHeaderExtension) GetSubSequenceNumber() u... method GetEom (line 238) | func (x *GnmiJuniperTelemetryHeaderExtension) GetEom() bool { method GetEventPublishTimestamp (line 245) | func (x *GnmiJuniperTelemetryHeaderExtension) GetEventPublishTimestamp... method GetStreamId (line 252) | func (x *GnmiJuniperTelemetryHeaderExtension) GetStreamId() StreamType { function file_GnmiJuniperTelemetryHeaderExtension_proto_rawDescGZIP (line 321) | func file_GnmiJuniperTelemetryHeaderExtension_proto_rawDescGZIP() []byte { function init (line 343) | func init() { file_GnmiJuniperTelemetryHeaderExtension_proto_init() } function file_GnmiJuniperTelemetryHeaderExtension_proto_init (line 344) | func file_GnmiJuniperTelemetryHeaderExtension_proto_init() { FILE: plugins/inputs/gnmi/gnmi.go constant emptyNameWarning (line 36) | emptyNameWarning = `Got empty metric-name for response (field %q), usually type GNMI (line 43) | type GNMI struct method SampleConfig (line 97) | func (*GNMI) SampleConfig() string { method Init (line 101) | func (c *GNMI) Init() error { method Start (line 227) | func (c *GNMI) Start(acc telegraf.Accumulator) error { method Gather (line 311) | func (*GNMI) Gather(telegraf.Accumulator) error { method Stop (line 315) | func (c *GNMI) Stop() { method newSubscribeRequest (line 339) | func (c *GNMI) newSubscribeRequest() (*gnmi.SubscribeRequest, error) { type subscription (line 79) | type subscription struct method buildSubscription (line 320) | func (s *subscription) buildSubscription() (*gnmi.Subscription, error) { method buildFullPath (line 411) | func (s *subscription) buildFullPath(c *GNMI) error { method buildAlias (line 431) | func (s *subscription) buildAlias(aliases map[*pathInfo]string, enforc... type tagSubscription (line 91) | type tagSubscription struct function parsePath (line 401) | func parsePath(origin, pathToParse, target string) (*gnmi.Path, error) { function init (line 453) | func init() { FILE: plugins/inputs/gnmi/gnmi_test.go function TestParsePath (line 30) | func TestParsePath(t *testing.T) { type mockServer (line 49) | type mockServer struct method Capabilities (line 54) | func (*mockServer) Capabilities(context.Context, *gnmi.CapabilityReque... method Get (line 58) | func (*mockServer) Get(context.Context, *gnmi.GetRequest) (*gnmi.GetRe... method Set (line 62) | func (*mockServer) Set(context.Context, *gnmi.SetRequest) (*gnmi.SetRe... method Subscribe (line 66) | func (s *mockServer) Subscribe(server gnmi.GNMI_SubscribeServer) error { function TestWaitError (line 70) | func TestWaitError(t *testing.T) { function TestUsernamePassword (line 113) | func TestUsernamePassword(t *testing.T) { function mockGNMINotification (line 173) | func mockGNMINotification() *gnmi.Notification { function TestNotification (line 220) | func TestNotification(t *testing.T) { function TestRedial (line 915) | func TestRedial(t *testing.T) { function TestCases (line 985) | func TestCases(t *testing.T) { FILE: plugins/inputs/gnmi/handler.go constant eidJuniperTelemetryHeader (line 33) | eidJuniperTelemetryHeader = 1 type handler (line 35) | type handler struct method subscribeGNMI (line 57) | func (h *handler) subscribeGNMI(ctx context.Context, acc telegraf.Accu... method handleUpdateMetadata (line 143) | func (h *handler) handleUpdateMetadata(notification *gnmi.Notification... method handleUpdates (line 185) | func (h *handler) handleUpdates(acc telegraf.Accumulator, updates []*g... method handleDeletes (line 338) | func (h *handler) handleDeletes(acc telegraf.Accumulator, deletes []*g... method lookupAlias (line 427) | func (h *handler) lookupAlias(info *pathInfo) (aliasPath, alias string) { type aliasCandidate (line 423) | type aliasCandidate struct function guessPrefix (line 447) | func guessPrefix(paths []*pathInfo) string { FILE: plugins/inputs/gnmi/path.go type keySegment (line 9) | type keySegment struct type segment (line 15) | type segment struct type pathInfo (line 20) | type pathInfo struct method empty (line 107) | func (pi *pathInfo) empty() bool { method append (line 111) | func (pi *pathInfo) append(paths ...*gnmi.Path) *pathInfo { method appendSegments (line 158) | func (pi *pathInfo) appendSegments(segments ...string) *pathInfo { method normalize (line 191) | func (pi *pathInfo) normalize() { method enforceFirstNamespaceAsOrigin (line 214) | func (pi *pathInfo) enforceFirstNamespaceAsOrigin() { method equalsPathNoKeys (line 227) | func (pi *pathInfo) equalsPathNoKeys(path *gnmi.Path) bool { method isSubPathOf (line 239) | func (pi *pathInfo) isSubPathOf(path *pathInfo) bool { method relative (line 265) | func (pi *pathInfo) relative(path *pathInfo, withNamespace bool) string { method keepCommonPart (line 292) | func (pi *pathInfo) keepCommonPart(path *pathInfo) { method dir (line 313) | func (pi *pathInfo) dir() string { method base (line 336) | func (pi *pathInfo) base() string { method path (line 348) | func (pi *pathInfo) path() (origin, path string) { method fullPath (line 362) | func (pi *pathInfo) fullPath() string { method String (line 386) | func (pi *pathInfo) String() string { method tags (line 401) | func (pi *pathInfo) tags(pathPrefix bool) map[string]string { function newInfoFromString (line 27) | func newInfoFromString(path string) *pathInfo { function newInfoFromPathWithoutKeys (line 52) | func newInfoFromPathWithoutKeys(path *gnmi.Path) *pathInfo { function newInfoFromPath (line 68) | func newInfoFromPath(paths ...*gnmi.Path) *pathInfo { FILE: plugins/inputs/gnmi/tag_store.go type tagStore (line 11) | type tagStore struct method insert (line 41) | func (s *tagStore) insert(subscription tagSubscription, path *pathInfo... method lookup (line 127) | func (s *tagStore) lookup(path *pathInfo, metricTags map[string]string... type elementsStore (line 17) | type elementsStore struct function newTagStore (line 22) | func newTagStore(subs []tagSubscription) *tagStore { function getElementsKeys (line 156) | func getElementsKeys(path *pathInfo, elements []string) (string, bool) { FILE: plugins/inputs/gnmi/update_fields.go type keyValuePair (line 16) | type keyValuePair struct type updateField (line 21) | type updateField struct method newFieldsFromUpdate (line 26) | func (h *handler) newFieldsFromUpdate(path *pathInfo, update *gnmi.Updat... method processJSON (line 57) | func (h *handler) processJSON(path *pathInfo, data []byte) ([]updateFiel... method processJSONIETF (line 83) | func (h *handler) processJSONIETF(path *pathInfo, data []byte) ([]update... function flatten (line 149) | func flatten(nested interface{}) []keyValuePair { FILE: plugins/inputs/google_cloud_storage/google_cloud_storage.go constant emulatorHostEnv (line 25) | emulatorHostEnv = "STORAGE_EMULATOR_HOST" constant defaultOffSetKey (line 26) | defaultOffSetKey = "offset-key.json" type GCS (line 32) | type GCS struct method Init (line 50) | func (gcs *GCS) Init() error { method SampleConfig (line 61) | func (*GCS) SampleConfig() string { method SetParser (line 65) | func (gcs *GCS) SetParser(parser telegraf.Parser) { method Gather (line 69) | func (gcs *GCS) Gather(acc telegraf.Accumulator) error { method createQuery (line 111) | func (gcs *GCS) createQuery() storage.Query { method shouldIgnore (line 119) | func (gcs *GCS) shouldIgnore(name string) bool { method processMeasurementsInObject (line 123) | func (gcs *GCS) processMeasurementsInObject(name string, bucket *stora... method fetchedMetrics (line 145) | func (gcs *GCS) fetchedMetrics(r *storage.Reader) ([]telegraf.Metric, ... method reachedThreshlod (line 154) | func (gcs *GCS) reachedThreshlod(processed int) bool { method updateOffset (line 158) | func (gcs *GCS) updateOffset(bucket *storage.BucketHandle, name string... method setUpClient (line 184) | func (gcs *GCS) setUpClient() error { method setUpLocalClient (line 192) | func (gcs *GCS) setUpLocalClient(endpoint string) error { method setUpDefaultClient (line 205) | func (gcs *GCS) setUpDefaultClient() error { method setOffset (line 229) | func (gcs *GCS) setOffset() error { method closeReader (line 263) | func (gcs *GCS) closeReader(r *storage.Reader) { type offSet (line 46) | type offSet struct method isPresent (line 277) | func (offSet *offSet) isPresent() bool { function newEmptyOffset (line 269) | func newEmptyOffset() *offSet { function newOffset (line 273) | func newOffset(offset string) *offSet { function init (line 281) | func init() { FILE: plugins/inputs/google_cloud_storage/google_cloud_storage_test.go constant offSetTemplate (line 21) | offSetTemplate = "{\"offSet\":\"%s\"}" function TestRunSetUpClient (line 23) | func TestRunSetUpClient(t *testing.T) { function TestRunInit (line 36) | func TestRunInit(t *testing.T) { function TestRunInitNoOffsetKey (line 54) | func TestRunInitNoOffsetKey(t *testing.T) { function TestRunGatherOneItem (line 72) | func TestRunGatherOneItem(t *testing.T) { function TestRunGatherOneIteration (line 99) | func TestRunGatherOneIteration(t *testing.T) { function TestRunGatherIteratiosnWithLimit (line 122) | func TestRunGatherIteratiosnWithLimit(t *testing.T) { function TestRunGatherIterationWithPages (line 152) | func TestRunGatherIterationWithPages(t *testing.T) { function createParser (line 182) | func createParser() telegraf.Parser { function startGCSServer (line 198) | func startGCSServer(t *testing.T) *httptest.Server { function startOneItemGCSServer (line 227) | func startOneItemGCSServer(t *testing.T) *httptest.Server { function startMultipleItemGCSServer (line 243) | func startMultipleItemGCSServer(t *testing.T) *httptest.Server { function stateFullGCSServer (line 292) | func stateFullGCSServer(t *testing.T) *httptest.Server { function serveBlobs (line 356) | func serveBlobs(t *testing.T, w http.ResponseWriter, urlPath, offsetKey ... function fetchJSON (line 397) | func fetchJSON(t *testing.T, boundary string, rc io.ReadCloser) (string,... function serveJSONText (line 413) | func serveJSONText(w http.ResponseWriter, jsonText []byte) { function failPath (line 420) | func failPath(path string, t *testing.T, w http.ResponseWriter) { function parseJSONFromFile (line 425) | func parseJSONFromFile(t *testing.T, jsonFilePath string) map[string]int... function readJSON (line 436) | func readJSON(t *testing.T, jsonFilePath string) []byte { function emulatorSetEnv (line 443) | func emulatorSetEnv(t *testing.T, srv *httptest.Server) { FILE: plugins/inputs/graylog/graylog.go type GrayLog (line 27) | type GrayLog struct method SampleConfig (line 83) | func (*GrayLog) SampleConfig() string { method Gather (line 87) | func (h *GrayLog) Gather(acc telegraf.Accumulator) error { method gatherServer (line 129) | func (h *GrayLog) gatherServer( method flatten (line 174) | func (h *GrayLog) flatten(item, fields map[string]interface{}, id stri... method sendRequest (line 200) | func (h *GrayLog) sendRequest(serverURL string) (string, float64, erro... type responseMetrics (line 38) | type responseMetrics struct type metric (line 42) | type metric struct type messageBody (line 49) | type messageBody struct type realHTTPClient (line 53) | type realHTTPClient struct method makeRequest (line 71) | func (c *realHTTPClient) makeRequest(req *http.Request) (*http.Respons... method setHTTPClient (line 75) | func (c *realHTTPClient) setHTTPClient(client *http.Client) { method httpClient (line 79) | func (c *realHTTPClient) httpClient() *http.Client { type httpClient (line 57) | type httpClient interface function init (line 260) | func init() { FILE: plugins/inputs/graylog/graylog_test.go constant validJSON (line 14) | validJSON = ` constant invalidJSON (line 88) | invalidJSON = "I don't think this is JSON" constant empty (line 90) | empty = "" type mockHTTPClient (line 92) | type mockHTTPClient struct method makeRequest (line 100) | func (c *mockHTTPClient) makeRequest(req *http.Request) (*http.Respons... method setHTTPClient (line 122) | func (*mockHTTPClient) setHTTPClient(*http.Client) { method httpClient (line 125) | func (*mockHTTPClient) httpClient() *http.Client { function genMockGrayLog (line 138) | func genMockGrayLog(response string, statusCode int) []*GrayLog { function TestNormalResponse (line 157) | func TestNormalResponse(t *testing.T) { function TestHttpJson500 (line 171) | func TestHttpJson500(t *testing.T) { function TestHttpJsonBadJson (line 182) | func TestHttpJsonBadJson(t *testing.T) { function TestHttpJsonEmptyResponse (line 193) | func TestHttpJsonEmptyResponse(t *testing.T) { FILE: plugins/inputs/haproxy/haproxy.go type HAProxy (line 47) | type HAProxy struct method SampleConfig (line 57) | func (*HAProxy) SampleConfig() string { method Gather (line 61) | func (h *HAProxy) Gather(acc telegraf.Accumulator) error { method gatherServerSocket (line 104) | func (h *HAProxy) gatherServerSocket(addr string, acc telegraf.Accumul... method gatherServer (line 127) | func (h *HAProxy) gatherServer(addr string, acc telegraf.Accumulator) ... method importCsvResult (line 198) | func (h *HAProxy) importCsvResult(r io.Reader, acc telegraf.Accumulato... function getSocketAddr (line 189) | func getSocketAddr(sock string) string { function init (line 279) | func init() { FILE: plugins/inputs/haproxy/haproxy_test.go function serverSocket (line 20) | func serverSocket(l net.Listener) { function TestHaproxyGeneratesMetricsWithAuthentication (line 44) | func TestHaproxyGeneratesMetricsWithAuthentication(t *testing.T) { function TestHaproxyGeneratesMetricsWithoutAuthentication (line 104) | func TestHaproxyGeneratesMetricsWithoutAuthentication(t *testing.T) { function TestHaproxyGeneratesMetricsUsingSocket (line 133) | func TestHaproxyGeneratesMetricsUsingSocket(t *testing.T) { function TestHaproxyGeneratesMetricsUsingTcp (line 186) | func TestHaproxyGeneratesMetricsUsingTcp(t *testing.T) { function TestHaproxyDefaultGetFromLocalhost (line 218) | func TestHaproxyDefaultGetFromLocalhost(t *testing.T) { function TestHaproxyKeepFieldNames (line 228) | func TestHaproxyKeepFieldNames(t *testing.T) { function mustReadSampleOutput (line 279) | func mustReadSampleOutput() []byte { function haproxyGetFieldValues (line 289) | func haproxyGetFieldValues() map[string]interface{} { FILE: plugins/inputs/hddtemp/go-hddtemp/hddtemp.go type Disk (line 12) | type Disk struct type hddtemp (line 20) | type hddtemp struct method Fetch (line 28) | func (*hddtemp) Fetch(address string) ([]Disk, error) { function New (line 23) | func New() *hddtemp { FILE: plugins/inputs/hddtemp/go-hddtemp/hddtemp_test.go function TestFetch (line 10) | func TestFetch(t *testing.T) { function TestFetchWrongAddress (line 28) | func TestFetchWrongAddress(t *testing.T) { function TestFetchStatus (line 33) | func TestFetchStatus(t *testing.T) { function TestFetchTwoDisks (line 52) | func TestFetchTwoDisks(t *testing.T) { function serve (line 77) | func serve(t *testing.T, data []byte) net.Listener { FILE: plugins/inputs/hddtemp/hddtemp.go constant defaultAddress (line 16) | defaultAddress = "127.0.0.1:7634" type HDDTemp (line 18) | type HDDTemp struct method SampleConfig (line 29) | func (*HDDTemp) SampleConfig() string { method Gather (line 33) | func (h *HDDTemp) Gather(acc telegraf.Accumulator) error { type fetcher (line 25) | type fetcher interface function init (line 70) | func init() { FILE: plugins/inputs/hddtemp/hddtemp_test.go type mockFetcher (line 12) | type mockFetcher struct method Fetch (line 15) | func (*mockFetcher) Fetch(string) ([]hddtemp.Disk, error) { function newMockFetcher (line 32) | func newMockFetcher() *mockFetcher { function TestFetch (line 36) | func TestFetch(t *testing.T) { FILE: plugins/inputs/http/http.go type HTTP (line 28) | type HTTP struct method SampleConfig (line 52) | func (*HTTP) SampleConfig() string { method Init (line 56) | func (h *HTTP) Init() error { method SetParserFunc (line 77) | func (h *HTTP) SetParserFunc(fn telegraf.ParserFunc) { method Start (line 81) | func (*HTTP) Start(telegraf.Accumulator) error { method Gather (line 85) | func (h *HTTP) Gather(acc telegraf.Accumulator) error { method Stop (line 102) | func (h *HTTP) Stop() { method gatherURL (line 117) | func (h *HTTP) gatherURL(acc telegraf.Accumulator, url string) error { method setRequestAuth (line 224) | func (h *HTTP) setRequestAuth(request *http.Request) error { function makeRequestBodyReader (line 246) | func makeRequestBodyReader(contentEncoding, body string) io.ReadCloser { function init (line 259) | func init() { FILE: plugins/inputs/http/http_internal_test.go function TestMakeRequestBodyReaderEmptyBody (line 12) | func TestMakeRequestBodyReaderEmptyBody(t *testing.T) { function TestMakeRequestBodyReaderNoEncoding (line 17) | func TestMakeRequestBodyReaderNoEncoding(t *testing.T) { function TestMakeRequestBodyReaderGzip (line 27) | func TestMakeRequestBodyReaderGzip(t *testing.T) { function TestGatherURLEarlyFailureWithGzipBody (line 41) | func TestGatherURLEarlyFailureWithGzipBody(t *testing.T) { FILE: plugins/inputs/http/http_test.go function TestHTTPWithJSONFormat (line 32) | func TestHTTPWithJSONFormat(t *testing.T) { function TestHTTPHeaders (line 73) | func TestHTTPHeaders(t *testing.T) { function TestHTTPContentLengthHeader (line 112) | func TestHTTPContentLengthHeader(t *testing.T) { function TestInvalidStatusCode (line 149) | func TestInvalidStatusCode(t *testing.T) { function TestSuccessStatusCodes (line 172) | func TestSuccessStatusCodes(t *testing.T) { function TestMethod (line 196) | func TestMethod(t *testing.T) { constant simpleJSON (line 223) | simpleJSON = ` constant simpleCSVWithHeader (line 228) | simpleCSVWithHeader = ` function TestBodyAndContentEncoding (line 234) | func TestBodyAndContentEncoding(t *testing.T) { type testHandlerFunc (line 329) | type testHandlerFunc function TestOAuthClientCredentialsGrant (line 331) | func TestOAuthClientCredentialsGrant(t *testing.T) { function TestHTTPWithCSVFormat (line 417) | func TestHTTPWithCSVFormat(t *testing.T) { constant httpOverUnixScheme (line 474) | httpOverUnixScheme = "http+unix" function TestConnectionOverUnixSocket (line 477) | func TestConnectionOverUnixSocket(t *testing.T) { FILE: plugins/inputs/http_listener_v2/http_listener_v2.go constant defaultMaxBodySize (line 43) | defaultMaxBodySize = 500 * 1024 * 1024 constant body (line 44) | body = "body" constant query (line 45) | query = "query" constant pathTag (line 46) | pathTag = "http_listener_v2_path" type HTTPListenerV2 (line 49) | type HTTPListenerV2 struct method SampleConfig (line 84) | func (*HTTPListenerV2) SampleConfig() string { method Init (line 88) | func (h *HTTPListenerV2) Init() error { method SetParser (line 114) | func (h *HTTPListenerV2) SetParser(parser telegraf.Parser) { method Start (line 118) | func (h *HTTPListenerV2) Start(acc telegraf.Accumulator) error { method Gather (line 193) | func (*HTTPListenerV2) Gather(telegraf.Accumulator) error { method Stop (line 197) | func (h *HTTPListenerV2) Stop() { method ServeHTTP (line 205) | func (h *HTTPListenerV2) ServeHTTP(res http.ResponseWriter, req *http.... method createHTTPServer (line 219) | func (h *HTTPListenerV2) createHTTPServer() *http.Server { method serveWrite (line 229) | func (h *HTTPListenerV2) serveWrite(res http.ResponseWriter, req *http... method collectBody (line 307) | func (h *HTTPListenerV2) collectBody(res http.ResponseWriter, req *htt... method collectQuery (line 364) | func (h *HTTPListenerV2) collectQuery(res http.ResponseWriter, req *ht... method authenticateIfSet (line 400) | func (h *HTTPListenerV2) authenticateIfSet(handler http.HandlerFunc, r... type timeFunc (line 82) | type timeFunc function tooLarge (line 379) | func tooLarge(res http.ResponseWriter) error { function methodNotAllowed (line 386) | func methodNotAllowed(res http.ResponseWriter) error { function badRequest (line 393) | func badRequest(res http.ResponseWriter) error { function init (line 415) | func init() { FILE: plugins/inputs/http_listener_v2/http_listener_v2_test.go constant testMsg (line 30) | testMsg = "cpu_load_short,host=server01 value=12.0 1422568543702900257\n" constant testMsgNoNewline (line 32) | testMsgNoNewline = "cpu_load_short,host=server01 value=12.0 142256854370... constant testMsgs (line 34) | testMsgs = `cpu_load_short,host=server02 value=12.0 1422568543702900257 constant badMsg (line 40) | badMsg = "blahblahblah: 42\n" constant emptyMsg (line 42) | emptyMsg = "" constant basicUsername (line 44) | basicUsername = "test-username-please-ignore" constant basicPassword (line 45) | basicPassword = "super-secure-password!" function newTestHTTPListenerV2 (line 52) | func newTestHTTPListenerV2() (*HTTPListenerV2, error) { function newTestHTTPAuthListener (line 72) | func newTestHTTPAuthListener() (*HTTPListenerV2, error) { function newTestHTTPSListenerV2 (line 82) | func newTestHTTPSListenerV2() (*HTTPListenerV2, error) { function getHTTPSClient (line 102) | func getHTTPSClient() *http.Client { function createURL (line 114) | func createURL(listener *HTTPListenerV2, scheme, path, rawquery string) ... function TestInvalidListenerConfig (line 128) | func TestInvalidListenerConfig(t *testing.T) { function TestWriteHTTPSNoClientAuth (line 152) | func TestWriteHTTPSNoClientAuth(t *testing.T) { function TestWriteHTTPSWithClientAuth (line 179) | func TestWriteHTTPSWithClientAuth(t *testing.T) { function TestWriteHTTPBasicAuth (line 195) | func TestWriteHTTPBasicAuth(t *testing.T) { function TestWriteHTTP (line 215) | func TestWriteHTTP(t *testing.T) { function TestWriteHTTPWithPathTag (line 266) | func TestWriteHTTPWithPathTag(t *testing.T) { function TestWriteHTTPWithReturnCode (line 289) | func TestWriteHTTPWithReturnCode(t *testing.T) { function TestWriteHTTPWithMultiplePaths (line 307) | func TestWriteHTTPWithMultiplePaths(t *testing.T) { function TestWriteHTTPNoNewline (line 343) | func TestWriteHTTPNoNewline(t *testing.T) { function TestWriteHTTPExactMaxBodySize (line 365) | func TestWriteHTTPExactMaxBodySize(t *testing.T) { function TestWriteHTTPVerySmallMaxBody (line 391) | func TestWriteHTTPVerySmallMaxBody(t *testing.T) { function TestWriteHTTPGzippedData (line 418) | func TestWriteHTTPGzippedData(t *testing.T) { function TestWriteHTTPSnappyData (line 453) | func TestWriteHTTPSnappyData(t *testing.T) { function TestWriteHTTPHighTraffic (line 490) | func TestWriteHTTPHighTraffic(t *testing.T) { function TestReceive404ForInvalidEndpoint (line 530) | func TestReceive404ForInvalidEndpoint(t *testing.T) { function TestWriteHTTPInvalid (line 546) | func TestWriteHTTPInvalid(t *testing.T) { function TestWriteHTTPEmpty (line 562) | func TestWriteHTTPEmpty(t *testing.T) { function TestWriteHTTPTransformHeaderValuesToTagsSingleWrite (line 578) | func TestWriteHTTPTransformHeaderValuesToTagsSingleWrite(t *testing.T) { function TestWriteHTTPTransformHeaderValuesToTagsBulkWrite (line 622) | func TestWriteHTTPTransformHeaderValuesToTagsBulkWrite(t *testing.T) { function TestWriteHTTPQueryParams (line 657) | func TestWriteHTTPQueryParams(t *testing.T) { function TestWriteHTTPFormData (line 685) | func TestWriteHTTPFormData(t *testing.T) { function TestServerHeaders (line 715) | func TestServerHeaders(t *testing.T) { function TestUnixSocket (line 736) | func TestUnixSocket(t *testing.T) { function mustReadHugeMetric (line 767) | func mustReadHugeMetric() []byte { FILE: plugins/inputs/http_response/http_response.go constant defaultResponseBodyMaxSize (line 36) | defaultResponseBodyMaxSize = 32 * 1024 * 1024 type HTTPResponse (line 39) | type HTTPResponse struct method SampleConfig (line 78) | func (*HTTPResponse) SampleConfig() string { method Init (line 82) | func (h *HTTPResponse) Init() error { method Gather (line 126) | func (h *HTTPResponse) Gather(acc telegraf.Accumulator) error { method createHTTPClient (line 164) | func (h *HTTPResponse) createHTTPClient(address url.URL) (*http.Client... method httpGather (line 302) | func (h *HTTPResponse) httpGather(cl client) (map[string]interface{}, ... method setBodyReadError (line 445) | func (h *HTTPResponse) setBodyReadError(errorMsg string, bodyBytes []b... method setRequestAuth (line 454) | func (h *HTTPResponse) setRequestAuth(request *http.Request) error { type client (line 68) | type client struct type httpClient (line 73) | type httpClient interface function getProxyFunc (line 147) | func getProxyFunc(httpProxy string) func(*http.Request) (*url.URL, error) { function localAddress (line 204) | func localAddress(interfaceName string, address url.URL) (net.Addr, erro... function isURLInIPv6 (line 233) | func isURLInIPv6(address url.URL) (bool, string) { function isIPNetInIPv6 (line 249) | func isIPNetInIPv6(address *net.IPNet) bool { function setResult (line 254) | func setResult(resultString string, fields map[string]interface{}, tags ... function setError (line 270) | func setError(err error, fields map[string]interface{}, tags map[string]... function init (line 474) | func init() { FILE: plugins/inputs/http_response/http_response_test.go function checkAbsentFields (line 24) | func checkAbsentFields(t *testing.T, fields []string, acc *testutil.Accu... function checkAbsentTags (line 32) | func checkAbsentTags(t *testing.T, tags []string, acc *testutil.Accumula... function checkFields (line 41) | func checkFields(t *testing.T, fields map[string]interface{}, acc *testu... function checkTags (line 69) | func checkTags(t *testing.T, tags map[string]interface{}, acc *testutil.... function setUpTestMux (line 86) | func setUpTestMux() http.Handler { function checkOutput (line 152) | func checkOutput(t *testing.T, acc *testutil.Accumulator, presentFields,... function TestHeaders (line 171) | func TestHeaders(t *testing.T) { function TestFields (line 224) | func TestFields(t *testing.T) { function TestResponseBodyField (line 262) | func TestResponseBodyField(t *testing.T) { function TestResponseBodyFormField (line 331) | func TestResponseBodyFormField(t *testing.T) { function TestResponseBodyMaxSize (line 372) | func TestResponseBodyMaxSize(t *testing.T) { function TestHTTPHeaderTags (line 406) | func TestHTTPHeaderTags(t *testing.T) { function findInterface (line 499) | func findInterface() (net.Interface, error) { function TestInterface (line 519) | func TestInterface(t *testing.T) { function TestRedirects (line 564) | func TestRedirects(t *testing.T) { function TestMethod (line 634) | func TestMethod(t *testing.T) { function TestBody (line 737) | func TestBody(t *testing.T) { function TestStringMatch (line 804) | func TestStringMatch(t *testing.T) { function TestStringMatchJson (line 843) | func TestStringMatchJson(t *testing.T) { function TestStringMatchFail (line 882) | func TestStringMatchFail(t *testing.T) { function TestTimeout (line 921) | func TestTimeout(t *testing.T) { function TestBadRegex (line 960) | func TestBadRegex(t *testing.T) { type fakeClient (line 981) | type fakeClient struct method Do (line 986) | func (f *fakeClient) Do(_ *http.Request) (*http.Response, error) { function TestNetworkErrors (line 990) | func TestNetworkErrors(t *testing.T) { function TestContentLength (line 1051) | func TestContentLength(t *testing.T) { function TestRedirect (line 1121) | func TestRedirect(t *testing.T) { function TestBasicAuth (line 1172) | func TestBasicAuth(t *testing.T) { function TestStatusCodeMatchFail (line 1217) | func TestStatusCodeMatchFail(t *testing.T) { function TestStatusCodeMatch (line 1250) | func TestStatusCodeMatch(t *testing.T) { function TestStatusCodeAndStringMatch (line 1283) | func TestStatusCodeAndStringMatch(t *testing.T) { function TestStatusCodeAndStringMatchFail (line 1318) | func TestStatusCodeAndStringMatchFail(t *testing.T) { function TestSNI (line 1353) | func TestSNI(t *testing.T) { function Test_isURLInIPv6 (line 1396) | func Test_isURLInIPv6(t *testing.T) { function Test_isIPNetInIPv6 (line 1436) | func Test_isIPNetInIPv6(t *testing.T) { function parseURL (line 1476) | func parseURL(t *testing.T, address string) url.URL { FILE: plugins/inputs/huebridge/bridge.go type bridge (line 20) | type bridge struct method String (line 34) | func (b *bridge) String() string { method process (line 38) | func (b *bridge) process(acc telegraf.Accumulator) error { method processLights (line 58) | func (b *bridge) processLights(acc telegraf.Accumulator) error { method processTemperatures (line 85) | func (b *bridge) processTemperatures(acc telegraf.Accumulator) error { method processLightLevels (line 110) | func (b *bridge) processLightLevels(acc telegraf.Accumulator) error { method processMotionSensors (line 136) | func (b *bridge) processMotionSensors(acc telegraf.Accumulator) error { method processDevicePowers (line 165) | func (b *bridge) processDevicePowers(acc telegraf.Accumulator) error { method resolve (line 193) | func (b *bridge) resolve() error { method resolveViaAddress (line 210) | func (b *bridge) resolveViaAddress() error { method resolveViaCloud (line 218) | func (b *bridge) resolveViaCloud() error { method resolveViaMDNS (line 231) | func (b *bridge) resolveViaMDNS() error { method resolveLocalBridge (line 236) | func (b *bridge) resolveLocalBridge(locator hue.BridgeLocator) error { method resolveViaRemote (line 250) | func (b *bridge) resolveViaRemote() error { method resolveRemoteBridge (line 284) | func (b *bridge) resolveRemoteBridge(locator *hue.RemoteBridgeLocator)... method fetchMetadata (line 298) | func (b *bridge) fetchMetadata() error { method fetchResourceTree (line 310) | func (b *bridge) fetchResourceTree() error { method fetchDeviceNames (line 332) | func (b *bridge) fetchDeviceNames() error { method fetchRoomAssignments (line 352) | func (b *bridge) fetchRoomAssignments() error { method resolveResourceRoom (line 375) | func (b *bridge) resolveResourceRoom(resourceID, resourceName string) ... method resolveDeviceName (line 401) | func (b *bridge) resolveDeviceName(resourceID string) string { FILE: plugins/inputs/huebridge/huebridge.go type HueBridge (line 21) | type HueBridge struct method SampleConfig (line 39) | func (*HueBridge) SampleConfig() string { method Init (line 43) | func (h *HueBridge) Init() error { method Gather (line 86) | func (h *HueBridge) Gather(acc telegraf.Accumulator) error { type remoteClientConfig (line 32) | type remoteClientConfig struct function init (line 99) | func init() { FILE: plugins/inputs/huebridge/huebridge_test.go function TestConfig (line 19) | func TestConfig(t *testing.T) { function TestInitSuccess (line 42) | func TestInitSuccess(t *testing.T) { function TestInitIgnoreInvalidUrls (line 70) | func TestInitIgnoreInvalidUrls(t *testing.T) { function TestGatherLocal (line 119) | func TestGatherLocal(t *testing.T) { FILE: plugins/inputs/hugepages/hugepages.go constant rootHugepagePath (line 57) | rootHugepagePath = "/sys/kernel/mm/hugepages" constant numaNodePath (line 59) | numaNodePath = "/sys/devices/system/node" constant meminfoPath (line 61) | meminfoPath = "/proc/meminfo" constant rootHugepages (line 63) | rootHugepages = "root" constant perNodeHugepages (line 64) | perNodeHugepages = "per_node" constant meminfoHugepages (line 65) | meminfoHugepages = "meminfo" type Hugepages (line 68) | type Hugepages struct method SampleConfig (line 80) | func (*Hugepages) SampleConfig() string { method Init (line 84) | func (h *Hugepages) Init() error { method Gather (line 97) | func (h *Hugepages) Gather(acc telegraf.Accumulator) error { method gatherRootStats (line 120) | func (h *Hugepages) gatherRootStats(acc telegraf.Accumulator) error { method gatherStatsPerNode (line 125) | func (h *Hugepages) gatherStatsPerNode(acc telegraf.Accumulator) error { method gatherStatsFromMeminfo (line 216) | func (h *Hugepages) gatherStatsFromMeminfo(acc telegraf.Accumulator) e... method parseHugepagesConfig (line 247) | func (h *Hugepages) parseHugepagesConfig() error { function gatherFromHugepagePath (line 155) | func gatherFromHugepagePath(acc telegraf.Accumulator, measurement, path ... function init (line 276) | func init() { FILE: plugins/inputs/hugepages/hugepages_notlinux.go type Hugepages (line 16) | type Hugepages struct method SampleConfig (line 20) | func (*Hugepages) SampleConfig() string { method Init (line 24) | func (h *Hugepages) Init() error { method Gather (line 29) | func (*Hugepages) Gather(_ telegraf.Accumulator) error { return nil } function init (line 31) | func init() { FILE: plugins/inputs/hugepages/hugepages_test.go function TestInit (line 13) | func TestInit(t *testing.T) { function TestGather (line 54) | func TestGather(t *testing.T) { FILE: plugins/inputs/icinga2/icinga2.go type Icinga2 (line 26) | type Icinga2 struct method SampleConfig (line 71) | func (*Icinga2) SampleConfig() string { method Init (line 75) | func (i *Icinga2) Init() error { method Gather (line 99) | func (i *Icinga2) Gather(acc telegraf.Accumulator) error { method gatherObjects (line 161) | func (i *Icinga2) gatherObjects(acc telegraf.Accumulator, checks resul... method createHTTPClient (line 196) | func (i *Icinga2) createHTTPClient() (*http.Client, error) { method icingaRequest (line 212) | func (i *Icinga2) icingaRequest(address string) (*http.Response, error) { type resultObject (line 40) | type resultObject struct type resultCIB (line 56) | type resultCIB struct type resultPerfdata (line 62) | type resultPerfdata struct function parseObjectResponse (line 230) | func parseObjectResponse(resp *http.Response, result *resultObject) error { function parseCIBResponse (line 243) | func parseCIBResponse(resp *http.Response) (map[string]interface{}, erro... function parsePerfdataResponse (line 259) | func parsePerfdataResponse(resp *http.Response) (map[string]interface{},... function init (line 285) | func init() { FILE: plugins/inputs/icinga2/icinga2_test.go function TestIcinga2Default (line 16) | func TestIcinga2Default(t *testing.T) { constant icinga2ServiceResponse (line 30) | icinga2ServiceResponse = `{ function TestGatherServicesStatus (line 48) | func TestGatherServicesStatus(t *testing.T) { constant icinga2HostResponse (line 95) | icinga2HostResponse = `{ function TestGatherHostsStatus (line 114) | func TestGatherHostsStatus(t *testing.T) { constant icinga2StatusCIB (line 162) | icinga2StatusCIB = `{ function TestGatherStatusCIB (line 176) | func TestGatherStatusCIB(t *testing.T) { constant icinga2StatusPgsql (line 216) | icinga2StatusPgsql = `{ function TestGatherStatusPgsql (line 249) | func TestGatherStatusPgsql(t *testing.T) { FILE: plugins/inputs/infiniband/infiniband.go type Infiniband (line 14) | type Infiniband struct method SampleConfig (line 19) | func (*Infiniband) SampleConfig() string { function init (line 24) | func init() { FILE: plugins/inputs/infiniband/infiniband_linux.go method Gather (line 15) | func (ib *Infiniband) Gather(acc telegraf.Accumulator) error { function addStats (line 52) | func addStats(dev, port string, stats []rdmamap.RdmaStatEntry, acc teleg... FILE: plugins/inputs/infiniband/infiniband_notlinux.go method Init (line 10) | func (i *Infiniband) Init() error { method Gather (line 15) | func (*Infiniband) Gather(_ telegraf.Accumulator) error { function init (line 19) | func init() { FILE: plugins/inputs/infiniband/infiniband_test.go function TestInfiniband (line 13) | func TestInfiniband(t *testing.T) { function TestInfinibandRDMA (line 137) | func TestInfinibandRDMA(t *testing.T) { FILE: plugins/inputs/influxdb/influxdb.go constant maxErrorResponseBodyLength (line 26) | maxErrorResponseBodyLength = 1024 type InfluxDB (line 29) | type InfluxDB struct method SampleConfig (line 52) | func (*InfluxDB) SampleConfig() string { method Gather (line 56) | func (i *InfluxDB) Gather(acc telegraf.Accumulator) error { method gatherURL (line 100) | func (i *InfluxDB) gatherURL(acc telegraf.Accumulator, url string) err... type apiError (line 39) | type apiError struct method Error (line 45) | func (e *apiError) Error() string { function readResponseError (line 286) | func readResponseError(resp *http.Response) error { function init (line 307) | func init() { FILE: plugins/inputs/influxdb/influxdb_test.go function TestBasic (line 17) | func TestBasic(t *testing.T) { function TestInfluxDB (line 68) | func TestInfluxDB(t *testing.T) { function TestInfluxDB2 (line 142) | func TestInfluxDB2(t *testing.T) { function TestCloud1 (line 185) | func TestCloud1(t *testing.T) { function TestErrorHandling (line 227) | func TestErrorHandling(t *testing.T) { function TestErrorHandling404 (line 249) | func TestErrorHandling404(t *testing.T) { function TestErrorResponse (line 271) | func TestErrorResponse(t *testing.T) { constant basicJSON (line 300) | basicJSON = ` FILE: plugins/inputs/influxdb/types.go type point (line 3) | type point struct type memstats (line 9) | type memstats struct type system (line 39) | type system struct type build (line 45) | type build struct type crypto (line 52) | type crypto struct FILE: plugins/inputs/influxdb_listener/influxdb_listener.go constant defaultMaxBodySize (line 33) | defaultMaxBodySize = 32 * 1024 * 1024 type InfluxDBListener (line 36) | type InfluxDBListener struct method SampleConfig (line 74) | func (*InfluxDBListener) SampleConfig() string { method Gather (line 78) | func (*InfluxDBListener) Gather(telegraf.Accumulator) error { method Init (line 82) | func (h *InfluxDBListener) Init() error { method Start (line 119) | func (h *InfluxDBListener) Start(acc telegraf.Accumulator) error { method Stop (line 162) | func (h *InfluxDBListener) Stop() { method routes (line 169) | func (h *InfluxDBListener) routes() { method ServeHTTP (line 191) | func (h *InfluxDBListener) ServeHTTP(res http.ResponseWriter, req *htt... method handleQuery (line 197) | func (h *InfluxDBListener) handleQuery() http.HandlerFunc { method handlePing (line 212) | func (h *InfluxDBListener) handlePing() http.HandlerFunc { method handleDefault (line 235) | func (h *InfluxDBListener) handleDefault() http.HandlerFunc { method handleWrite (line 242) | func (h *InfluxDBListener) handleWrite() http.HandlerFunc { method handleWriteInternalParser (line 252) | func (h *InfluxDBListener) handleWriteInternalParser(res http.Response... method handleWriteUpstreamParser (line 361) | func (h *InfluxDBListener) handleWriteUpstreamParser(res http.Response... function tooLarge (line 477) | func tooLarge(res http.ResponseWriter) error { function badRequest (line 486) | func badRequest(res http.ResponseWriter, errString string) error { function partialWrite (line 498) | func partialWrite(res http.ResponseWriter, errString string) error { function getPrecisionMultiplier (line 507) | func getPrecisionMultiplier(precision string) time.Duration { function init (line 528) | func init() { FILE: plugins/inputs/influxdb_listener/influxdb_listener_benchmark_test.go function newListener (line 17) | func newListener() *InfluxDBListener { function BenchmarkInfluxDBListener_serveWrite (line 28) | func BenchmarkInfluxDBListener_serveWrite(b *testing.B) { function lines (line 85) | func lines(lines, numTags, numFields int) string { FILE: plugins/inputs/influxdb_listener/influxdb_listener_test.go constant testMsg (line 27) | testMsg = "cpu_load_short,host=server01 value=12.0 1422568543702900257\n" constant testMsgNoNewline (line 29) | testMsgNoNewline = "cpu_load_short,host=server01 value=12.0 142256854370... constant testMsgs (line 31) | testMsgs = `cpu_load_short,host=server02 value=12.0 1422568543702900257 constant testPartial (line 37) | testPartial = `cpu,host=a value1=1 constant badMsg (line 41) | badMsg = "blahblahblah: 42\n" constant emptyMsg (line 43) | emptyMsg = "" constant basicUsername (line 45) | basicUsername = "test-username-please-ignore" constant basicPassword (line 46) | basicPassword = "super-secure-password!" function newTestListener (line 59) | func newTestListener() *InfluxDBListener { function newTestAuthListener (line 68) | func newTestAuthListener() *InfluxDBListener { function newTestSecureListener (line 75) | func newTestSecureListener() *InfluxDBListener { function getSecureClient (line 86) | func getSecureClient() *http.Client { function createURL (line 98) | func createURL(listener *InfluxDBListener, scheme, path, rawquery string... function TestWriteSecureNoClientAuth (line 108) | func TestWriteSecureNoClientAuth(t *testing.T) { function TestWriteSecureWithClientAuth (line 134) | func TestWriteSecureWithClientAuth(t *testing.T) { function TestWriteBasicAuth (line 149) | func TestWriteBasicAuth(t *testing.T) { function TestWriteToken (line 168) | func TestWriteToken(t *testing.T) { function TestWriteTokenInvalidUser (line 199) | func TestWriteTokenInvalidUser(t *testing.T) { function TestWriteTokenExpired (line 230) | func TestWriteTokenExpired(t *testing.T) { function TestWriteKeepDatabase (line 264) | func TestWriteKeepDatabase(t *testing.T) { function TestWriteRetentionPolicyTag (line 321) | func TestWriteRetentionPolicyTag(t *testing.T) { function TestWriteNoNewline (line 353) | func TestWriteNoNewline(t *testing.T) { function TestPartialWrite (line 379) | func TestPartialWrite(t *testing.T) { function TestWriteMaxLineSizeIncrease (line 409) | func TestWriteMaxLineSizeIncrease(t *testing.T) { function TestWriteVerySmallMaxBody (line 437) | func TestWriteVerySmallMaxBody(t *testing.T) { function TestWriteLargeLine (line 469) | func TestWriteLargeLine(t *testing.T) { function TestWriteGzippedData (line 554) | func TestWriteGzippedData(t *testing.T) { function TestWriteHighTraffic (line 592) | func TestWriteHighTraffic(t *testing.T) { function TestReceive404ForInvalidEndpoint (line 635) | func TestReceive404ForInvalidEndpoint(t *testing.T) { function TestWriteInvalid (line 655) | func TestWriteInvalid(t *testing.T) { function TestWriteEmpty (line 675) | func TestWriteEmpty(t *testing.T) { function TestQuery (line 695) | func TestQuery(t *testing.T) { function TestPing (line 716) | func TestPing(t *testing.T) { function TestPingVerbose (line 738) | func TestPingVerbose(t *testing.T) { function TestWriteWithPrecision (line 760) | func TestWriteWithPrecision(t *testing.T) { function TestWriteWithPrecisionNoTimestamp (line 787) | func TestWriteWithPrecisionNoTimestamp(t *testing.T) { function TestWriteUpstreamParseErrors (line 818) | func TestWriteUpstreamParseErrors(t *testing.T) { function TestWriteParseErrors (line 860) | func TestWriteParseErrors(t *testing.T) { FILE: plugins/inputs/influxdb_v2_listener/influxdb_v2_listener.go constant defaultMaxBodySize (line 36) | defaultMaxBodySize = 32 * 1024 * 1024 constant defaultReadTimeout (line 37) | defaultReadTimeout = 10 * time.Second constant defaultWriteTimeout (line 38) | defaultWriteTimeout = 10 * time.Second constant internalError (line 39) | internalError badRequestCode = "internal error" constant invalid (line 40) | invalid badRequestCode = "invalid" type InfluxDBV2Listener (line 43) | type InfluxDBV2Listener struct method SampleConfig (line 93) | func (*InfluxDBV2Listener) SampleConfig() string { method Init (line 97) | func (h *InfluxDBV2Listener) Init() error { method Gather (line 146) | func (*InfluxDBV2Listener) Gather(telegraf.Accumulator) error { method Start (line 150) | func (h *InfluxDBV2Listener) Start(acc telegraf.Accumulator) error { method Stop (line 215) | func (h *InfluxDBV2Listener) Stop() { method ServeHTTP (line 223) | func (h *InfluxDBV2Listener) ServeHTTP(res http.ResponseWriter, req *h... method routes (line 229) | func (h *InfluxDBV2Listener) routes() error { method handleHealth (line 258) | func (h *InfluxDBV2Listener) handleHealth() http.HandlerFunc { method handleReady (line 291) | func (h *InfluxDBV2Listener) handleReady() http.HandlerFunc { method handleDefault (line 312) | func (h *InfluxDBV2Listener) handleDefault() http.HandlerFunc { method handlePing (line 319) | func (h *InfluxDBV2Listener) handlePing() http.HandlerFunc { method handleWrite (line 328) | func (h *InfluxDBV2Listener) handleWrite() http.HandlerFunc { method writeWithTracking (line 431) | func (h *InfluxDBV2Listener) writeWithTracking(res http.ResponseWriter... method write (line 457) | func (h *InfluxDBV2Listener) write(res http.ResponseWriter, metrics []... type badRequestCode (line 91) | type badRequestCode function tooLarge (line 465) | func tooLarge(res http.ResponseWriter, maxLength int64) error { function badRequest (line 480) | func badRequest(res http.ResponseWriter, code badRequestCode, errString ... function getPrecisionMultiplier (line 500) | func getPrecisionMultiplier(precision string) time.Duration { function init (line 517) | func init() { FILE: plugins/inputs/influxdb_v2_listener/influxdb_v2_listener_benchmark_test.go function newListener (line 20) | func newListener(b *testing.B) *InfluxDBV2Listener { function BenchmarkInfluxDBV2Listener_serveWrite (line 45) | func BenchmarkInfluxDBV2Listener_serveWrite(b *testing.B) { function lines (line 98) | func lines(lines, numTags, numFields int) string { FILE: plugins/inputs/influxdb_v2_listener/influxdb_v2_listener_test.go constant testMsg (line 27) | testMsg = "cpu_load_short,host=server01 value=12.0 1422568543702900257\n" constant testMsgNoNewline (line 29) | testMsgNoNewline = "cpu_load_short,host=server01 value=12.0 142256854370... constant testMsgs (line 31) | testMsgs = `cpu_load_short,host=server02 value=12.0 1422568543702900257 constant testPartial (line 37) | testPartial = `cpu,host=a value1=1 constant badMsg (line 41) | badMsg = "blahblahblah: 42\n" constant emptyMsg (line 43) | emptyMsg = "" constant token (line 45) | token = "test-token-please-ignore" function newTestListener (line 58) | func newTestListener() *InfluxDBV2Listener { function newTestAuthListener (line 68) | func newTestAuthListener() *InfluxDBV2Listener { function newRateLimitedTestListener (line 74) | func newRateLimitedTestListener(maxUndeliveredMetrics int) *InfluxDBV2Li... function newTestSecureListener (line 80) | func newTestSecureListener() *InfluxDBV2Listener { function getSecureClient (line 86) | func getSecureClient() *http.Client { function createURL (line 98) | func createURL(listener *InfluxDBV2Listener, scheme, path, rawquery stri... function TestWriteSecureNoClientAuth (line 108) | func TestWriteSecureNoClientAuth(t *testing.T) { function TestWriteSecureWithClientAuth (line 135) | func TestWriteSecureWithClientAuth(t *testing.T) { function TestWriteTokenAuth (line 151) | func TestWriteTokenAuth(t *testing.T) { function TestWriteKeepBucket (line 171) | func TestWriteKeepBucket(t *testing.T) { function TestWriteNoNewline (line 225) | func TestWriteNoNewline(t *testing.T) { function TestAllOrNothing (line 252) | func TestAllOrNothing(t *testing.T) { function TestWriteMaxLineSizeIncrease (line 272) | func TestWriteMaxLineSizeIncrease(t *testing.T) { function TestWriteVerySmallMaxBody (line 297) | func TestWriteVerySmallMaxBody(t *testing.T) { function TestWriteLargeLine (line 322) | func TestWriteLargeLine(t *testing.T) { function TestWriteGzippedData (line 400) | func TestWriteGzippedData(t *testing.T) { function TestWriteHighTraffic (line 434) | func TestWriteHighTraffic(t *testing.T) { function TestReceive404ForInvalidEndpoint (line 474) | func TestReceive404ForInvalidEndpoint(t *testing.T) { function TestWriteInvalid (line 495) | func TestWriteInvalid(t *testing.T) { function TestWriteEmpty (line 516) | func TestWriteEmpty(t *testing.T) { function TestHealth (line 537) | func TestHealth(t *testing.T) { function TestPing (line 598) | func TestPing(t *testing.T) { function TestReady (line 627) | func TestReady(t *testing.T) { function TestWriteWithPrecision (line 666) | func TestWriteWithPrecision(t *testing.T) { function TestWriteWithPrecisionNoTimestamp (line 693) | func TestWriteWithPrecisionNoTimestamp(t *testing.T) { function TestRateLimitedConnectionDropsSecondRequest (line 720) | func TestRateLimitedConnectionDropsSecondRequest(t *testing.T) { function TestRateLimitedConnectionAcceptsNewRequestOnDelivery (line 741) | func TestRateLimitedConnectionAcceptsNewRequestOnDelivery(t *testing.T) { function TestRateLimitedConnectionRejectsBatchesLargerThanMaxUndeliveredMetrics (line 770) | func TestRateLimitedConnectionRejectsBatchesLargerThanMaxUndeliveredMetr... FILE: plugins/inputs/intel_baseband/intel_baseband.go constant pluginName (line 23) | pluginName = "intel_baseband" constant vfCodeBlocks (line 26) | vfCodeBlocks = "Code Blocks" constant vfDataBlock (line 27) | vfDataBlock = "Data (Bytes)" constant engineBlock (line 30) | engineBlock = "Per Engine" constant socketExtension (line 33) | socketExtension = ".sock" constant logFileExtension (line 34) | logFileExtension = ".log" constant unreachableSocketBehaviorError (line 37) | unreachableSocketBehaviorError = "error" constant unreachableSocketBehaviorIgnore (line 38) | unreachableSocketBehaviorIgnore = "ignore" constant defaultAccessSocketTimeout (line 40) | defaultAccessSocketTimeout = config.Duration(time.Second) constant defaultWaitForTelemetryTimeout (line 41) | defaultWaitForTelemetryTimeout = config.Duration(time.Second) type Baseband (line 44) | type Baseband struct method SampleConfig (line 59) | func (*Baseband) SampleConfig() string { method Init (line 63) | func (b *Baseband) Init() error { method Gather (line 103) | func (b *Baseband) Gather(acc telegraf.Accumulator) error { method gatherVFMetric (line 141) | func (b *Baseband) gatherVFMetric(acc telegraf.Accumulator, metricName... method gatherEngineMetric (line 173) | func (b *Baseband) gatherEngineMetric(acc telegraf.Accumulator, metric... method checkFilePath (line 202) | func (b *Baseband) checkFilePath(path string, fileType fileType) (resu... function newBaseband (line 216) | func newBaseband() *Baseband { function init (line 223) | func init() { FILE: plugins/inputs/intel_baseband/intel_baseband_notamd64linux.go type Baseband (line 16) | type Baseband struct method SampleConfig (line 20) | func (*Baseband) SampleConfig() string { return sampleConfig } method Init (line 22) | func (b *Baseband) Init() error { method Gather (line 26) | func (*Baseband) Gather(_ telegraf.Accumulator) error { return nil } function init (line 28) | func init() { FILE: plugins/inputs/intel_baseband/intel_baseband_test.go function TestInit (line 16) | func TestInit(t *testing.T) { type tempSocket (line 113) | type tempSocket struct method Close (line 120) | func (ts *tempSocket) Close() { function newTempSocket (line 131) | func newTempSocket(t *testing.T) *tempSocket { type tempLogFile (line 149) | type tempLogFile struct method close (line 154) | func (tlf *tempLogFile) close() { function newTempLogFile (line 165) | func newTempLogFile(t *testing.T) *tempLogFile { function prepareBasebandEnvironment (line 175) | func prepareBasebandEnvironment() *Baseband { FILE: plugins/inputs/intel_baseband/log_connector.go constant infoLine (line 15) | infoLine = "INFO:" constant countersLine (line 16) | countersLine = "counters:" constant deviceStatusStartPrefix (line 18) | deviceStatusStartPrefix = "Device Status::" constant deviceStatusEndPrefix (line 19) | deviceStatusEndPrefix = "VFs" constant clearLogCmdText (line 21) | clearLogCmdText = "clear_log" type logConnector (line 26) | type logConnector struct method readLogFile (line 46) | func (lc *logConnector) readLogFile() error { method checkLogFreshness (line 71) | func (lc *logConnector) checkLogFreshness() error { method isClearLogContainedInFile (line 106) | func (lc *logConnector) isClearLogContainedInFile() bool { method getLogLines (line 117) | func (lc *logConnector) getLogLines() []string { method getLogLinesNum (line 122) | func (lc *logConnector) getLogLinesNum() int { method getNumVFs (line 127) | func (lc *logConnector) getNumVFs() int { method readNumVFs (line 132) | func (lc *logConnector) readNumVFs() error { method getSubstringLine (line 151) | func (lc *logConnector) getSubstringLine(offsetLine int, substring str... method getMetrics (line 166) | func (lc *logConnector) getMetrics(name string) (metrics []*logMetric,... method getMetric (line 186) | func (lc *logConnector) getMetric(offsetLine int, name string) (int, *... type logMetric (line 40) | type logMetric struct function parseNumVFs (line 224) | func parseNumVFs(s string) (int, error) { function parseOperationName (line 247) | func parseOperationName(s string) string { function newLogConnector (line 260) | func newLogConnector(path string, waitForTelemetryTimeout time.Duration)... FILE: plugins/inputs/intel_baseband/log_connector_test.go function TestReadLogFile (line 13) | func TestReadLogFile(t *testing.T) { function TestGetMetric (line 44) | func TestGetMetric(t *testing.T) { function TestReadAndGetMetrics (line 111) | func TestReadAndGetMetrics(t *testing.T) { function TestGetMetrics (line 149) | func TestGetMetrics(t *testing.T) { function TestGetNumVFs (line 194) | func TestGetNumVFs(t *testing.T) { function TestParseOperationName (line 231) | func TestParseOperationName(t *testing.T) { function prepareLogConnMock (line 251) | func prepareLogConnMock() *logConnector { FILE: plugins/inputs/intel_baseband/mocks/conn.go type Conn (line 13) | type Conn struct method Close (line 18) | func (_m *Conn) Close() error { method LocalAddr (line 36) | func (_m *Conn) LocalAddr() net.Addr { method Read (line 56) | func (_m *Conn) Read(b []byte) (int, error) { method RemoteAddr (line 84) | func (_m *Conn) RemoteAddr() net.Addr { method SetDeadline (line 104) | func (_m *Conn) SetDeadline(t time.Time) error { method SetReadDeadline (line 122) | func (_m *Conn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 140) | func (_m *Conn) SetWriteDeadline(t time.Time) error { method Write (line 158) | func (_m *Conn) Write(b []byte) (int, error) { function NewConn (line 187) | func NewConn(t interface { FILE: plugins/inputs/intel_baseband/sock_connector.go constant clearLogCmdID (line 14) | clearLogCmdID = 0x4 constant deviceDataCmdID (line 15) | deviceDataCmdID = 0x9 type socketConnector (line 18) | type socketConnector struct method dumpTelemetryToLog (line 24) | func (sc *socketConnector) dumpTelemetryToLog() error { method sendCommandToSocket (line 39) | func (sc *socketConnector) sendCommandToSocket(c byte) error { method writeCommandToSocket (line 52) | func (sc *socketConnector) writeCommandToSocket(c byte) error { method connect (line 74) | func (sc *socketConnector) connect() error { method close (line 84) | func (sc *socketConnector) close() error { function newSocketConnector (line 97) | func newSocketConnector(pathToSocket string, accessTimeout time.Duration... FILE: plugins/inputs/intel_baseband/sock_connector_test.go function TestWriteCommandToSocket (line 16) | func TestWriteCommandToSocket(t *testing.T) { function TestDumpTelemetryToLog (line 66) | func TestDumpTelemetryToLog(t *testing.T) { FILE: plugins/inputs/intel_baseband/utils.go type fileType (line 15) | type fileType constant log (line 18) | log fileType = iota constant socket (line 19) | socket function validatePath (line 22) | func validatePath(pathToRead string, ft fileType) (string, error) { function checkFile (line 36) | func checkFile(pathToFile string, fileType fileType) error { function metricNameToTagName (line 65) | func metricNameToTagName(metricName string) string { function logMetricDataToValue (line 70) | func logMetricDataToValue(data string) (int, error) { FILE: plugins/inputs/intel_baseband/utils_test.go function TestMetricNameToTagName (line 12) | func TestMetricNameToTagName(t *testing.T) { function TestValidatePath (line 31) | func TestValidatePath(t *testing.T) { function TestCheckFile (line 102) | func TestCheckFile(t *testing.T) { function TestLogMetricDataToValue (line 156) | func TestLogMetricDataToValue(t *testing.T) { FILE: plugins/inputs/intel_dlb/intel_dlb.go constant defaultSocketPath (line 30) | defaultSocketPath = "/var/run/dpdk/rte/dpdk_telemetry.v2" constant pluginName (line 31) | pluginName = "intel_dlb" constant eventdevListCommand (line 32) | eventdevListCommand = "/eventdev/dev_list" constant dlbDeviceIDLocation (line 33) | dlbDeviceIDLocation = "/sys/devices/*/*/device" constant aerCorrectableFileName (line 34) | aerCorrectableFileName = "aer_dev_correctable" constant aerFatalFileName (line 35) | aerFatalFileName = "aer_dev_fatal" constant aerNonFatalFileName (line 36) | aerNonFatalFileName = "aer_dev_nonfatal" constant defaultDLBDevice (line 37) | defaultDLBDevice = "0x2710" type IntelDLB (line 40) | type IntelDLB struct method SampleConfig (line 53) | func (*IntelDLB) SampleConfig() string { method Init (line 57) | func (d *IntelDLB) Init() error { method Gather (line 106) | func (d *IntelDLB) Gather(acc telegraf.Accumulator) error { method gatherRasMetrics (line 124) | func (d *IntelDLB) gatherRasMetrics(acc telegraf.Accumulator) error { method readRasMetrics (line 143) | func (d *IntelDLB) readRasMetrics(devicePath, metricPath string) (map[... method gatherMetricsFromSocket (line 170) | func (d *IntelDLB) gatherMetricsFromSocket(acc telegraf.Accumulator) e... method gatherCommandsWithDeviceIndex (line 200) | func (d *IntelDLB) gatherCommandsWithDeviceIndex() ([]string, error) { method gatherCommandsResult (line 229) | func (d *IntelDLB) gatherCommandsResult(command string, deviceToParse ... method gatherSecondDeviceIndex (line 248) | func (d *IntelDLB) gatherSecondDeviceIndex(index int, command string) ... method ensureConnected (line 279) | func (d *IntelDLB) ensureConnected() error { method setInitMessageLength (line 297) | func (d *IntelDLB) setInitMessageLength() error { method writeReadSocketMessage (line 326) | func (d *IntelDLB) writeReadSocketMessage(messageToWrite string) (int,... method parseJSON (line 346) | func (d *IntelDLB) parseJSON(replyMsgLen int, socketReply []byte, pars... method closeSocketAndThrowError (line 368) | func (d *IntelDLB) closeSocketAndThrowError(errType string, err error)... method checkAndAddDLBDevice (line 404) | func (d *IntelDLB) checkAndAddDLBDevice() error { function checkSocketPath (line 440) | func checkSocketPath(path string) error { function validateEventdevCommands (line 457) | func validateEventdevCommands(commands []string) error { function init (line 468) | func init() { FILE: plugins/inputs/intel_dlb/intel_dlb_notlinux.go type IntelDLB (line 16) | type IntelDLB struct method SampleConfig (line 20) | func (*IntelDLB) SampleConfig() string { return sampleConfig } method Init (line 22) | func (i *IntelDLB) Init() error { method Gather (line 26) | func (*IntelDLB) Gather(_ telegraf.Accumulator) error { return nil } function init (line 28) | func init() { FILE: plugins/inputs/intel_dlb/intel_dlb_test.go function TestDLB_Init (line 23) | func TestDLB_Init(t *testing.T) { function TestDLB_writeReadSocketMessage (line 145) | func TestDLB_writeReadSocketMessage(t *testing.T) { function TestDLB_parseJSON (line 195) | func TestDLB_parseJSON(t *testing.T) { function TestDLB_getInitMessageLength (line 225) | func TestDLB_getInitMessageLength(t *testing.T) { function TestDLB_gatherCommandsResult (line 267) | func TestDLB_gatherCommandsResult(t *testing.T) { function TestDLB_gatherCommandsWithDeviceIndex (line 287) | func TestDLB_gatherCommandsWithDeviceIndex(t *testing.T) { function TestDLB_gatherSecondDeviceIndex (line 373) | func TestDLB_gatherSecondDeviceIndex(t *testing.T) { function TestDLB_processCommandResult (line 464) | func TestDLB_processCommandResult(t *testing.T) { function Test_checkAndAddDLBDevice (line 650) | func Test_checkAndAddDLBDevice(t *testing.T) { function Test_readRasMetrics (line 776) | func Test_readRasMetrics(t *testing.T) { function Test_gatherRasMetrics (line 824) | func Test_gatherRasMetrics(t *testing.T) { function Test_rasReader (line 879) | func Test_rasReader(t *testing.T) { function simulateResponse (line 924) | func simulateResponse(mockConn *mocks.Conn, response string, readErr err... function simulateSocketResponseForGather (line 936) | func simulateSocketResponseForGather(socket net.Listener, t *testing.T) { function createSocketForTest (line 970) | func createSocketForTest(t *testing.T) (string, net.Listener) { constant testFileContent (line 978) | testFileContent = ` constant aerCorrectableData (line 985) | aerCorrectableData = ` constant aerFatalData (line 995) | aerFatalData = ` constant aerNonFatalData (line 1015) | aerNonFatalData = ` FILE: plugins/inputs/intel_dlb/ras_reader.go type rasReader (line 12) | type rasReader interface type rasReaderImpl (line 17) | type rasReaderImpl struct method gatherPaths (line 21) | func (rasReaderImpl) gatherPaths(pattern string) ([]string, error) { method readFromFile (line 35) | func (rasReaderImpl) readFromFile(filePath string) ([]byte, error) { FILE: plugins/inputs/intel_dlb/ras_reader_mock.go type mockRasReader (line 8) | type mockRasReader struct method gatherPaths (line 13) | func (_m *mockRasReader) gatherPaths(path string) ([]string, error) { method readFromFile (line 43) | func (_m *mockRasReader) readFromFile(filePath string) ([]byte, error) { function newMockRasReader (line 74) | func newMockRasReader(t interface { FILE: plugins/inputs/intel_pmt/filtering.go method verifyNoEmpty (line 21) | func (p *IntelPMT) verifyNoEmpty() error { method filterAggregatorByDatatype (line 54) | func (a *aggregator) filterAggregatorByDatatype(datatypes []string) { method filterAggregatorBySampleName (line 85) | func (a *aggregator) filterAggregatorBySampleName(sampleNames []string) { function shouldAddSample (line 107) | func shouldAddSample(s sample, sampleNames []string) bool { method filterAggInterfaceByDatatype (line 131) | func (a *aggregatorInterface) filterAggInterfaceByDatatype(datatypes []s... method filterAggInterfaceBySampleName (line 152) | func (a *aggregatorInterface) filterAggInterfaceBySampleName(sampleNames... function shouldAddAggregatorSample (line 164) | func shouldAddAggregatorSample(s aggregatorSample, sampleNames []string,... FILE: plugins/inputs/intel_pmt/filtering_test.go function TestFilterAggregatorByDatatype (line 13) | func TestFilterAggregatorByDatatype(t *testing.T) { function TestFilterAggregatorInterfaceByDatatype (line 108) | func TestFilterAggregatorInterfaceByDatatype(t *testing.T) { function TestFilterAggregatorBySampleName (line 174) | func TestFilterAggregatorBySampleName(t *testing.T) { function TestFilterAggregatorInterfaceBySampleName (line 270) | func TestFilterAggregatorInterfaceBySampleName(t *testing.T) { function TestVerifyNoEmpty (line 400) | func TestVerifyNoEmpty(t *testing.T) { FILE: plugins/inputs/intel_pmt/intel_pmt.go constant defaultPmtBasePath (line 32) | defaultPmtBasePath = "/sys/class/intel_pmt" constant pluginName (line 33) | pluginName = "intel_pmt" type IntelPMT (line 36) | type IntelPMT struct method SampleConfig (line 59) | func (*IntelPMT) SampleConfig() string { method Init (line 63) | func (p *IntelPMT) Init() error { method Gather (line 77) | func (p *IntelPMT) Gather(acc telegraf.Accumulator) error { method checkPmtSpec (line 116) | func (p *IntelPMT) checkPmtSpec() error { method explorePmtInSysfs (line 145) | func (p *IntelPMT) explorePmtInSysfs() error { method getSampleValues (line 238) | func (p *IntelPMT) getSampleValues(guid string, data []byte) (map[stri... method aggregateSamples (line 299) | func (p *IntelPMT) aggregateSamples(acc telegraf.Accumulator, guid str... type pmtFileInfo (line 51) | type pmtFileInfo type fileInfo (line 53) | type fileInfo struct function isFileReadable (line 210) | func isFileReadable(path string) bool { function getTelemSample (line 271) | func getTelemSample(s sample, buf []byte, offset uint64) (uint64, error) { function transformEquation (line 354) | func transformEquation(eq string) string { function eval (line 377) | func eval(eq string, params map[string]interface{}) (interface{}, error) { function hexToDec (line 393) | func hexToDec(hexStr string) string { function init (line 401) | func init() { FILE: plugins/inputs/intel_pmt/intel_pmt_notamd64linux.go type IntelPMT (line 16) | type IntelPMT struct method SampleConfig (line 20) | func (*IntelPMT) SampleConfig() string { return sampleConfig } method Init (line 22) | func (p *IntelPMT) Init() error { method Gather (line 27) | func (*IntelPMT) Gather(_ telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/intel_pmt/intel_pmt_test.go function createTempFile (line 17) | func createTempFile(t *testing.T, dir, pattern string, data []byte) (*os... function TestTransformEquation (line 34) | func TestTransformEquation(t *testing.T) { function TestEval (line 70) | func TestEval(t *testing.T) { function TestGetTelemSample (line 161) | func TestGetTelemSample(t *testing.T) { function TestInit (line 228) | func TestInit(t *testing.T) { function TestGather (line 267) | func TestGather(t *testing.T) { FILE: plugins/inputs/intel_pmt/tags_extraction.go method extractTagsFromSample (line 14) | func (a *aggregatorInterface) extractTagsFromSample() { FILE: plugins/inputs/intel_pmt/tags_extraction_test.go function TestExtractTagsFromSample (line 11) | func TestExtractTagsFromSample(t *testing.T) { FILE: plugins/inputs/intel_pmt/xml_parser.go type pmt (line 14) | type pmt struct type mappings (line 18) | type mappings struct type mapping (line 23) | type mapping struct type xmlset (line 29) | type xmlset struct type aggregator (line 36) | type aggregator struct method calculateMasks (line 237) | func (a *aggregator) calculateMasks() { type sampleGroup (line 42) | type sampleGroup struct type sample (line 48) | type sample struct type aggregatorInterface (line 59) | type aggregatorInterface struct type transformations (line 65) | type transformations struct type transformation (line 70) | type transformation struct type aggregatorSamples (line 77) | type aggregatorSamples struct type aggregatorSample (line 82) | type aggregatorSample struct type transformInputs (line 94) | type transformInputs struct type transformInput (line 99) | type transformInput struct type sourceReader (line 105) | type sourceReader interface type fileReader (line 109) | type fileReader struct method getReadCloser (line 111) | func (fileReader) getReadCloser(source string) (io.ReadCloser, error) { method parseXMLs (line 125) | func (p *IntelPMT) parseXMLs() error { method readXMLs (line 158) | func (p *IntelPMT) readXMLs() error { method getAllXMLData (line 199) | func (p *IntelPMT) getAllXMLData(guid string, dtMetricsFound, smFound ma... function computeMask (line 246) | func computeMask(msb, lsb uint64) uint64 { function parseXML (line 252) | func parseXML(source string, sr sourceReader, v interface{}) error { FILE: plugins/inputs/intel_pmt/xml_parser_test.go type mockReader (line 15) | type mockReader struct method getReadCloser (line 20) | func (mr mockReader) getReadCloser(_ string) (io.ReadCloser, error) { function TestParseXMLs (line 27) | func TestParseXMLs(t *testing.T) { function TestParseXML (line 44) | func TestParseXML(t *testing.T) { function TestReadXMLs (line 99) | func TestReadXMLs(t *testing.T) { FILE: plugins/inputs/intel_pmu/activators.go type placementMaker (line 12) | type placementMaker interface type iaPlacementMaker (line 17) | type iaPlacementMaker struct method makeCorePlacements (line 19) | func (iaPlacementMaker) makeCorePlacements(cores []int, factory ia.Pla... method makeUncorePlacements (line 40) | func (iaPlacementMaker) makeUncorePlacements(socket int, factory ia.Pl... type eventsActivator (line 44) | type eventsActivator interface type iaEventsActivator (line 50) | type iaEventsActivator struct method activateEvent (line 52) | func (iaEventsActivator) activateEvent(a ia.Activator, p ia.PlacementP... method activateGroup (line 56) | func (iaEventsActivator) activateGroup(p ia.PlacementProvider, e []ia.... method activateMulti (line 60) | func (iaEventsActivator) activateMulti(a ia.MultiActivator, p []ia.Pla... type entitiesActivator (line 64) | type entitiesActivator interface type iaEntitiesActivator (line 68) | type iaEntitiesActivator struct method activateEntities (line 73) | func (ea *iaEntitiesActivator) activateEntities(coreEntities []*coreEv... method activateCoreEvents (line 89) | func (ea *iaEntitiesActivator) activateCoreEvents(entity *coreEventEnt... method activateUncoreEvents (line 120) | func (ea *iaEntitiesActivator) activateUncoreEvents(entity *uncoreEven... method activateCoreEventsGroup (line 153) | func (ea *iaEntitiesActivator) activateCoreEventsGroup(entity *coreEve... method activateEventForPlacements (line 185) | func (ea *iaEntitiesActivator) activateEventForPlacements(event *event... FILE: plugins/inputs/intel_pmu/activators_test.go type mockPlacementFactory (line 14) | type mockPlacementFactory struct method NewPlacements (line 18) | func (m *mockPlacementFactory) NewPlacements(_ string, cpu int, cpus .... function TestActivateEntities (line 31) | func TestActivateEntities(t *testing.T) { function TestActivateUncoreEvents (line 58) | func TestActivateUncoreEvents(t *testing.T) { function TestActivateCoreEvents (line 155) | func TestActivateCoreEvents(t *testing.T) { function TestActivateCoreEventsGroup (line 253) | func TestActivateCoreEventsGroup(t *testing.T) { function TestMakeCorePlacements (line 336) | func TestMakeCorePlacements(t *testing.T) { function TestActivateEventForPlacement (line 371) | func TestActivateEventForPlacement(t *testing.T) { FILE: plugins/inputs/intel_pmu/config.go constant maxIDsSize (line 15) | maxIDsSize = 1 << 13 type entitiesParser (line 17) | type entitiesParser interface type configParser (line 21) | type configParser struct method parseEntities (line 26) | func (cp *configParser) parseEntities(coreEntities []*coreEventEntity,... method parseEvents (line 79) | func (cp *configParser) parseEvents(events []string) []*eventWithQuals { method parseCores (line 93) | func (cp *configParser) parseCores(cores []string) ([]int, error) { method parseSockets (line 118) | func (cp *configParser) parseSockets(sockets []string) ([]int, error) { method parseIntRanges (line 143) | func (cp *configParser) parseIntRanges(ranges []string) ([]int, error) { function parseEventsWithQualifiers (line 160) | func parseEventsWithQualifiers(events []string) []*eventWithQuals { function parseIDs (line 177) | func parseIDs(allIDsStrings []string) ([]int, error) { function removeDuplicateValues (line 213) | func removeDuplicateValues(intSlice []int) (result, duplicates []int) { function removeDuplicateStrings (line 227) | func removeDuplicateStrings(strSlice []string) (result, duplicates []str... FILE: plugins/inputs/intel_pmu/config_test.go function TestConfigParser_parseEntities (line 17) | func TestConfigParser_parseEntities(t *testing.T) { function TestConfigParser_parseCores (line 103) | func TestConfigParser_parseCores(t *testing.T) { function TestConfigParser_parseSockets (line 137) | func TestConfigParser_parseSockets(t *testing.T) { function TestConfigParser_parseEvents (line 171) | func TestConfigParser_parseEvents(t *testing.T) { function TestConfigParser_parseIntRanges (line 202) | func TestConfigParser_parseIntRanges(t *testing.T) { FILE: plugins/inputs/intel_pmu/intel_pmu.go constant fileMaxPath (line 27) | fileMaxPath = "/proc/sys/fs/file-max" type IntelPMU (line 29) | type IntelPMU struct method SampleConfig (line 116) | func (*IntelPMU) SampleConfig() string { method Init (line 120) | func (i *IntelPMU) Init() error { method Start (line 142) | func (*IntelPMU) Start(_ telegraf.Accumulator) error { method Gather (line 146) | func (i *IntelPMU) Gather(acc telegraf.Accumulator) error { method Stop (line 176) | func (i *IntelPMU) Stop() { method initialization (line 209) | func (i *IntelPMU) initialization(parser entitiesParser, resolver enti... method checkFileDescriptors (line 236) | func (i *IntelPMU) checkFileDescriptors() error { type coreEventEntity (line 40) | type coreEventEntity struct type uncoreEventEntity (line 53) | type uncoreEventEntity struct type multiEvent (line 66) | type multiEvent struct type eventWithQuals (line 72) | type eventWithQuals struct type fileInfoProvider (line 79) | type fileInfoProvider interface type fileHelper (line 85) | type fileHelper struct method readFile (line 87) | func (fileHelper) readFile(path string) ([]byte, error) { method lstat (line 91) | func (fileHelper) lstat(path string) (os.FileInfo, error) { method fileLimit (line 95) | func (fileHelper) fileLimit() (uint64, error) { type sysInfoProvider (line 101) | type sysInfoProvider interface type iaSysInfo (line 106) | type iaSysInfo struct method allCPUs (line 108) | func (iaSysInfo) allCPUs() ([]int, error) { method allSockets (line 112) | func (iaSysInfo) allSockets() ([]int, error) { function newReader (line 271) | func newReader(log telegraf.Logger, files []string) (*ia.JSONFilesReader... function estimateCoresFd (line 287) | func estimateCoresFd(entities []*coreEventEntity) (uint64, error) { function estimateUncoreFd (line 304) | func estimateUncoreFd(entities []*uncoreEventEntity) (uint64, error) { function multiplyAndAdd (line 326) | func multiplyAndAdd(factorA, factorB, sum uint64) (uint64, error) { function readMaxFD (line 340) | func readMaxFD(reader fileInfoProvider) (uint64, error) { function checkFiles (line 355) | func checkFiles(paths []string, fileInfo fileInfoProvider) error { function publishCoreMeasurements (line 383) | func publishCoreMeasurements(metrics []coreMetric, acc telegraf.Accumula... function publishUncoreMeasurements (line 403) | func publishUncoreMeasurements(metrics []uncoreMetric, acc telegraf.Accu... function init (line 427) | func init() { FILE: plugins/inputs/intel_pmu/intel_pmu_notamd64linux.go type IntelPMU (line 16) | type IntelPMU struct method SampleConfig (line 20) | func (*IntelPMU) SampleConfig() string { return sampleConfig } method Init (line 22) | func (i *IntelPMU) Init() error { method Start (line 27) | func (*IntelPMU) Start(_ telegraf.Accumulator) error { return nil } method Gather (line 29) | func (*IntelPMU) Gather(_ telegraf.Accumulator) error { return nil } method Stop (line 31) | func (*IntelPMU) Stop() {} function init (line 33) | func init() { FILE: plugins/inputs/intel_pmu/intel_pmu_test.go function TestInitialization (line 19) | func TestInitialization(t *testing.T) { function TestGather (line 120) | func TestGather(t *testing.T) { function TestCheckFileDescriptors (line 291) | func TestCheckFileDescriptors(t *testing.T) { function TestEstimateUncoreFd (line 347) | func TestEstimateUncoreFd(t *testing.T) { function TestEstimateCoresFd (line 374) | func TestEstimateCoresFd(t *testing.T) { function makeEvents (line 402) | func makeEvents(number, pmusNumber int) []*eventWithQuals { function makeIDs (line 416) | func makeIDs(number int) []int { function TestReadMaxFD (line 424) | func TestReadMaxFD(t *testing.T) { function TestAddFiles (line 470) | func TestAddFiles(t *testing.T) { type fakeFileInfo (line 546) | type fakeFileInfo struct method Name (line 550) | func (fakeFileInfo) Name() string { return "" } method Size (line 551) | func (fakeFileInfo) Size() int64 { return 0 } method Mode (line 552) | func (f fakeFileInfo) Mode() os.FileMode { return f.fileMode } method ModTime (line 553) | func (fakeFileInfo) ModTime() time.Time { return time.Time{} } method IsDir (line 554) | func (fakeFileInfo) IsDir() bool { return false } method Sys (line 555) | func (fakeFileInfo) Sys() interface{} { return nil } FILE: plugins/inputs/intel_pmu/mocks.go type mockValuesReader (line 13) | type mockValuesReader struct method readValue (line 18) | func (_m *mockValuesReader) readValue(event *iaevents.ActiveEvent) (ia... type mockEntitiesValuesReader (line 39) | type mockEntitiesValuesReader struct method readEntities (line 44) | func (_m *mockEntitiesValuesReader) readEntities(_a0 []*coreEventEntit... type mockEntitiesActivator (line 76) | type mockEntitiesActivator struct method activateEntities (line 81) | func (_m *mockEntitiesActivator) activateEntities(coreEntities []*core... type mockEntitiesParser (line 95) | type mockEntitiesParser struct method parseEntities (line 100) | func (_m *mockEntitiesParser) parseEntities(coreEntities []*coreEventE... type mockEntitiesResolver (line 114) | type mockEntitiesResolver struct method resolveEntities (line 119) | func (_m *mockEntitiesResolver) resolveEntities(coreEntities []*coreEv... type mockEventsActivator (line 133) | type mockEventsActivator struct method activateEvent (line 138) | func (_m *mockEventsActivator) activateEvent(_a0 iaevents.Activator, _... method activateGroup (line 161) | func (_m *mockEventsActivator) activateGroup(_a0 iaevents.PlacementPro... method activateMulti (line 184) | func (_m *mockEventsActivator) activateMulti( type mockFileInfoProvider (line 211) | type mockFileInfoProvider struct method fileLimit (line 216) | func (_m *mockFileInfoProvider) fileLimit() (uint64, error) { method readFile (line 237) | func (_m *mockFileInfoProvider) readFile(_a0 string) ([]byte, error) { method lstat (line 260) | func (_m *mockFileInfoProvider) lstat(_a0 string) (os.FileInfo, error) { type mockPlacementMaker (line 283) | type mockPlacementMaker struct method makeCorePlacements (line 288) | func (_m *mockPlacementMaker) makeCorePlacements(cores []int, factory ... method makeUncorePlacements (line 311) | func (_m *mockPlacementMaker) makeUncorePlacements(socket int, factory... type mockSysInfoProvider (line 334) | type mockSysInfoProvider struct method allCPUs (line 339) | func (_m *mockSysInfoProvider) allCPUs() ([]int, error) { method allSockets (line 362) | func (_m *mockSysInfoProvider) allSockets() ([]int, error) { type MockTransformer (line 385) | type MockTransformer struct method Transform (line 390) | func (_m *MockTransformer) Transform(reader iaevents.Reader, matcher i... FILE: plugins/inputs/intel_pmu/reader.go type coreMetric (line 14) | type coreMetric struct type uncoreMetric (line 25) | type uncoreMetric struct type valuesReader (line 40) | type valuesReader interface type iaValuesReader (line 44) | type iaValuesReader struct method readValue (line 46) | func (iaValuesReader) readValue(event *ia.ActiveEvent) (ia.CounterValu... type entitiesValuesReader (line 50) | type entitiesValuesReader interface type iaEntitiesValuesReader (line 54) | type iaEntitiesValuesReader struct method readEntities (line 69) | func (ie *iaEntitiesValuesReader) readEntities(coreEntities []*coreEve... method readCoreEvents (line 90) | func (ie *iaEntitiesValuesReader) readCoreEvents(entity *coreEventEnti... method readUncoreEvents (line 129) | func (ie *iaEntitiesValuesReader) readUncoreEvents(entity *uncoreEvent... method readMultiEventSeparately (line 157) | func (ie *iaEntitiesValuesReader) readMultiEventSeparately(multiEvent ... method readMultiEventAgg (line 195) | func (ie *iaEntitiesValuesReader) readMultiEventAgg(multiEvent multiEv... type clock (line 59) | type clock interface type realClock (line 63) | type realClock struct method now (line 65) | func (realClock) now() time.Time { FILE: plugins/inputs/intel_pmu/reader_test.go type moonClock (line 16) | type moonClock struct method now (line 18) | func (moonClock) now() time.Time { type eventWithValues (line 22) | type eventWithValues struct function TestReadCoreEvents (line 27) | func TestReadCoreEvents(t *testing.T) { function TestReadMultiEventSeparately (line 112) | func TestReadMultiEventSeparately(t *testing.T) { function TestReadMultiEventAgg (line 190) | func TestReadMultiEventAgg(t *testing.T) { function TestReadUncoreEvents (line 297) | func TestReadUncoreEvents(t *testing.T) { function TestReadEntities (line 443) | func TestReadEntities(t *testing.T) { FILE: plugins/inputs/intel_pmu/resolver.go type entitiesResolver (line 15) | type entitiesResolver interface type iaEntitiesResolver (line 19) | type iaEntitiesResolver struct method resolveEntities (line 25) | func (e *iaEntitiesResolver) resolveEntities(coreEntities []*coreEvent... method resolveAllEvents (line 81) | func (e *iaEntitiesResolver) resolveAllEvents() (coreEvents, uncoreEve... method resolveEvent (line 124) | func (e *iaEntitiesResolver) resolveEvent(name string, qualifiers []st... FILE: plugins/inputs/intel_pmu/resolver_test.go function TestResolveEntities (line 16) | func TestResolveEntities(t *testing.T) { function TestResolveAllEvents (line 242) | func TestResolveAllEvents(t *testing.T) { function TestResolveEvent (line 303) | func TestResolveEvent(t *testing.T) { FILE: plugins/inputs/intel_powerstat/fetcher.go type topologyFetcher (line 10) | type topologyFetcher interface type cpuFreqFetcher (line 31) | type cpuFreqFetcher interface type cpuMsrFetcher (line 37) | type cpuMsrFetcher interface type cpuPerfFetcher (line 65) | type cpuPerfFetcher interface type packageRaplFetcher (line 90) | type packageRaplFetcher interface type packageUncoreFreqFetcher (line 102) | type packageUncoreFreqFetcher interface type packageMsrFetcher (line 120) | type packageMsrFetcher interface type metricFetcher (line 129) | type metricFetcher interface FILE: plugins/inputs/intel_powerstat/intel_powerstat.go type PowerStat (line 27) | type PowerStat struct method SampleConfig (line 58) | func (*PowerStat) SampleConfig() string { method Init (line 62) | func (p *PowerStat) Init() error { method Start (line 78) | func (p *PowerStat) Start(_ telegraf.Accumulator) error { method Gather (line 106) | func (p *PowerStat) Gather(acc telegraf.Accumulator) error { method Stop (line 126) | func (p *PowerStat) Stop() { method parseConfig (line 137) | func (p *PowerStat) parseConfig() error { method parsePackageMetrics (line 216) | func (p *PowerStat) parsePackageMetrics() error { method parseCPUMetrics (line 234) | func (p *PowerStat) parseCPUMetrics() error { method parseCPUTimeRelatedMsrMetrics (line 243) | func (p *PowerStat) parseCPUTimeRelatedMsrMetrics() { method parseCPUPerfMetrics (line 262) | func (p *PowerStat) parseCPUPerfMetrics() { method parsePackageRaplMetrics (line 278) | func (p *PowerStat) parsePackageRaplMetrics() { method parsePackageMsrMetrics (line 294) | func (p *PowerStat) parsePackageMsrMetrics() { method addCPUMetrics (line 396) | func (p *PowerStat) addCPUMetrics(acc telegraf.Accumulator) { method addPerCPUMsrMetrics (line 419) | func (p *PowerStat) addPerCPUMsrMetrics(acc telegraf.Accumulator, cpuI... method addCPUTimeRelatedMsrMetrics (line 456) | func (p *PowerStat) addCPUTimeRelatedMsrMetrics(acc telegraf.Accumulat... method addCPUPerfMetrics (line 476) | func (p *PowerStat) addCPUPerfMetrics(acc telegraf.Accumulator) { method addPerCPUPerfMetrics (line 510) | func (p *PowerStat) addPerCPUPerfMetrics(acc telegraf.Accumulator, cpu... method addPackageMetrics (line 539) | func (p *PowerStat) addPackageMetrics(acc telegraf.Accumulator) { method addPerPackageRaplMetrics (line 559) | func (p *PowerStat) addPerPackageRaplMetrics(acc telegraf.Accumulator,... method addPerPackageMsrMetrics (line 573) | func (p *PowerStat) addPerPackageMsrMetrics(acc telegraf.Accumulator, ... method addCPUFrequency (line 585) | func (p *PowerStat) addCPUFrequency(acc telegraf.Accumulator, cpuID, c... method addCPUTemperature (line 603) | func (p *PowerStat) addCPUTemperature(acc telegraf.Accumulator, cpuID,... method addCPUC0StateResidency (line 621) | func (p *PowerStat) addCPUC0StateResidency(acc telegraf.Accumulator, c... method addCPUC1StateResidency (line 639) | func (p *PowerStat) addCPUC1StateResidency(acc telegraf.Accumulator, c... method addCPUC3StateResidency (line 657) | func (p *PowerStat) addCPUC3StateResidency(acc telegraf.Accumulator, c... method addCPUC6StateResidency (line 675) | func (p *PowerStat) addCPUC6StateResidency(acc telegraf.Accumulator, c... method addCPUC7StateResidency (line 693) | func (p *PowerStat) addCPUC7StateResidency(acc telegraf.Accumulator, c... method addCPUBusyFrequency (line 711) | func (p *PowerStat) addCPUBusyFrequency(acc telegraf.Accumulator, cpuI... method addCPUC0SubstateC01Percent (line 730) | func (p *PowerStat) addCPUC0SubstateC01Percent(acc telegraf.Accumulato... method addCPUC0SubstateC02Percent (line 749) | func (p *PowerStat) addCPUC0SubstateC02Percent(acc telegraf.Accumulato... method addCPUC0SubstateC0WaitPercent (line 768) | func (p *PowerStat) addCPUC0SubstateC0WaitPercent(acc telegraf.Accumul... method addCurrentPackagePower (line 786) | func (p *PowerStat) addCurrentPackagePower(acc telegraf.Accumulator, p... method addCurrentDramPower (line 802) | func (p *PowerStat) addCurrentDramPower(acc telegraf.Accumulator, pack... method addThermalDesignPower (line 818) | func (p *PowerStat) addThermalDesignPower(acc telegraf.Accumulator, pa... method addCPUBaseFrequency (line 834) | func (p *PowerStat) addCPUBaseFrequency(acc telegraf.Accumulator, pack... method addUncoreFrequency (line 850) | func (p *PowerStat) addUncoreFrequency(acc telegraf.Accumulator, packa... method addUncoreFrequencyInitialLimits (line 868) | func (p *PowerStat) addUncoreFrequencyInitialLimits(acc telegraf.Accum... method addUncoreFrequencyCurrentValues (line 907) | func (p *PowerStat) addUncoreFrequencyCurrentValues(acc telegraf.Accum... method addMaxTurboFreqLimits (line 992) | func (p *PowerStat) addMaxTurboFreqLimits(acc telegraf.Accumulator, pa... method disableUnsupportedMetrics (line 1057) | func (p *PowerStat) disableUnsupportedMetrics() error { method disableCPUMetric (line 1133) | func (p *PowerStat) disableCPUMetric(metricToDisable cpuMetricType) { method disablePackageMetric (line 1145) | func (p *PowerStat) disablePackageMetric(metricToDisable packageMetric... function hasDuplicate (line 309) | func hasDuplicate[S ~[]E, E comparable](s S) bool { function parseCores (line 323) | func parseCores(cores []string) ([]int, error) { function parseGroupCores (line 342) | func parseGroupCores(coreGroup string) ([]int, error) { function parseCoreRange (line 366) | func parseCoreRange(coreRange string) ([]int, error) { function getDataCPUID (line 524) | func getDataCPUID(t topologyFetcher, cpuID int) (coreID, packageID int, ... function getUncoreFreqInitialLimits (line 946) | func getUncoreFreqInitialLimits(fetcher metricFetcher, packageID, dieID ... type uncoreFreqValues (line 960) | type uncoreFreqValues struct function getUncoreFreqCurrentValues (line 968) | func getUncoreFreqCurrentValues(fetcher metricFetcher, packageID, dieID ... function isHybridCPU (line 1045) | func isHybridCPU(turboFreqList []powertelemetry.MaxTurboFreq) bool { function logErrorOnce (line 1159) | func logErrorOnce(acc telegraf.Accumulator, logOnceMap map[string]struct... function init (line 1166) | func init() { FILE: plugins/inputs/intel_powerstat/intel_powerstat_notlinux.go type IntelPowerstat (line 16) | type IntelPowerstat struct method SampleConfig (line 20) | func (*IntelPowerstat) SampleConfig() string { return sampleConfig } method Init (line 22) | func (i *IntelPowerstat) Init() error { method Gather (line 27) | func (*IntelPowerstat) Gather(_ telegraf.Accumulator) error { return n... function init (line 29) | func init() { FILE: plugins/inputs/intel_powerstat/intel_powerstat_test.go type parsePackageMetricTestCase (line 18) | type parsePackageMetricTestCase struct type parseCPUMetricTestCase (line 25) | type parseCPUMetricTestCase struct function TestParsePackageMetrics (line 32) | func TestParsePackageMetrics(t *testing.T) { function TestParseCPUMetrics (line 78) | func TestParseCPUMetrics(t *testing.T) { function TestParseCPUTimeRelatedMsrMetrics (line 120) | func TestParseCPUTimeRelatedMsrMetrics(t *testing.T) { function TestParseCPUPerfMetrics (line 187) | func TestParseCPUPerfMetrics(t *testing.T) { function TestParsePackageRaplMetrics (line 249) | func TestParsePackageRaplMetrics(t *testing.T) { function TestParsePackageMsrMetrics (line 299) | func TestParsePackageMsrMetrics(t *testing.T) { function TestParseCoreRange (line 347) | func TestParseCoreRange(t *testing.T) { function TestParseGroupCores (line 416) | func TestParseGroupCores(t *testing.T) { function TestHasDuplicate (line 456) | func TestHasDuplicate(t *testing.T) { function TestParseCores (line 482) | func TestParseCores(t *testing.T) { function TestParseConfig (line 532) | func TestParseConfig(t *testing.T) { type mockOptGenerator (line 679) | type mockOptGenerator struct method generate (line 683) | func (m *mockOptGenerator) generate(cfg optConfig) []ptel.Option { function TestSampleConfig (line 688) | func TestSampleConfig(t *testing.T) { function TestInit (line 693) | func TestInit(t *testing.T) { function TestStart (line 733) | func TestStart(t *testing.T) { function TestGather (line 794) | func TestGather(t *testing.T) { function TestStop (line 1151) | func TestStop(t *testing.T) { function TestDisableUnsupportedMetrics (line 1210) | func TestDisableUnsupportedMetrics(t *testing.T) { function TestDisableCPUMetric (line 1340) | func TestDisableCPUMetric(t *testing.T) { function TestDisablePackageMetric (line 1378) | func TestDisablePackageMetric(t *testing.T) { type fetcherMock (line 1416) | type fetcherMock struct method GetMsrCPUIDs (line 1420) | func (m *fetcherMock) GetMsrCPUIDs() []int { method GetPerfCPUIDs (line 1428) | func (m *fetcherMock) GetPerfCPUIDs() []int { method GetPackageIDs (line 1436) | func (m *fetcherMock) GetPackageIDs() []int { method GetCPUPackageID (line 1444) | func (m *fetcherMock) GetCPUPackageID(cpuID int) (int, error) { method GetCPUCoreID (line 1449) | func (m *fetcherMock) GetCPUCoreID(cpuID int) (int, error) { method GetPackageDieIDs (line 1454) | func (m *fetcherMock) GetPackageDieIDs(packageID int) ([]int, error) { method GetCPUFrequency (line 1462) | func (m *fetcherMock) GetCPUFrequency(cpuID int) (float64, error) { method UpdatePerCPUMetrics (line 1467) | func (m *fetcherMock) UpdatePerCPUMetrics(cpuID int) error { method GetCPUTemperature (line 1472) | func (m *fetcherMock) GetCPUTemperature(cpuID int) (uint64, error) { method GetCPUC0StateResidency (line 1477) | func (m *fetcherMock) GetCPUC0StateResidency(cpuID int) (float64, erro... method GetCPUC1StateResidency (line 1482) | func (m *fetcherMock) GetCPUC1StateResidency(cpuID int) (float64, erro... method GetCPUC3StateResidency (line 1487) | func (m *fetcherMock) GetCPUC3StateResidency(cpuID int) (float64, erro... method GetCPUC6StateResidency (line 1492) | func (m *fetcherMock) GetCPUC6StateResidency(cpuID int) (float64, erro... method GetCPUC7StateResidency (line 1497) | func (m *fetcherMock) GetCPUC7StateResidency(cpuID int) (float64, erro... method GetCPUBusyFrequencyMhz (line 1502) | func (m *fetcherMock) GetCPUBusyFrequencyMhz(cpuID int) (float64, erro... method ReadPerfEvents (line 1507) | func (m *fetcherMock) ReadPerfEvents() error { method DeactivatePerfEvents (line 1512) | func (m *fetcherMock) DeactivatePerfEvents() error { method GetCPUC0SubstateC01Percent (line 1517) | func (m *fetcherMock) GetCPUC0SubstateC01Percent(cpuID int) (float64, ... method GetCPUC0SubstateC02Percent (line 1522) | func (m *fetcherMock) GetCPUC0SubstateC02Percent(cpuID int) (float64, ... method GetCPUC0SubstateC0WaitPercent (line 1527) | func (m *fetcherMock) GetCPUC0SubstateC0WaitPercent(cpuID int) (float6... method GetCPUBaseFrequency (line 1532) | func (m *fetcherMock) GetCPUBaseFrequency(packageID int) (uint64, erro... method GetInitialUncoreFrequencyMin (line 1537) | func (m *fetcherMock) GetInitialUncoreFrequencyMin(packageID, dieID in... method GetCustomizedUncoreFrequencyMin (line 1542) | func (m *fetcherMock) GetCustomizedUncoreFrequencyMin(packageID, dieID... method GetInitialUncoreFrequencyMax (line 1547) | func (m *fetcherMock) GetInitialUncoreFrequencyMax(packageID, dieID in... method GetCustomizedUncoreFrequencyMax (line 1552) | func (m *fetcherMock) GetCustomizedUncoreFrequencyMax(packageID, dieID... method GetCurrentUncoreFrequency (line 1557) | func (m *fetcherMock) GetCurrentUncoreFrequency(packageID, dieID int) ... method GetCurrentPackagePowerConsumptionWatts (line 1562) | func (m *fetcherMock) GetCurrentPackagePowerConsumptionWatts(packageID... method GetCurrentDramPowerConsumptionWatts (line 1567) | func (m *fetcherMock) GetCurrentDramPowerConsumptionWatts(packageID in... method GetPackageThermalDesignPowerWatts (line 1572) | func (m *fetcherMock) GetPackageThermalDesignPowerWatts(packageID int)... method GetMaxTurboFreqList (line 1577) | func (m *fetcherMock) GetMaxTurboFreqList(packageID int) ([]ptel.MaxTu... function TestAddCPUMetrics (line 1585) | func TestAddCPUMetrics(t *testing.T) { function TestAddPerCPUMsrMetrics (line 1893) | func TestAddPerCPUMsrMetrics(t *testing.T) { function TestAddCPUTimeRelatedMsrMetrics (line 2184) | func TestAddCPUTimeRelatedMsrMetrics(t *testing.T) { function TestAddCPUPerfMetrics (line 2299) | func TestAddCPUPerfMetrics(t *testing.T) { function TestAddPerCPUPerfMetrics (line 2602) | func TestAddPerCPUPerfMetrics(t *testing.T) { function TestGetDataCPUID (line 2676) | func TestGetDataCPUID(t *testing.T) { function TestAddPackageMetrics (line 2732) | func TestAddPackageMetrics(t *testing.T) { function TestAddPerPackageRaplMetrics (line 2927) | func TestAddPerPackageRaplMetrics(t *testing.T) { function TestAddPerPackageMsrMetrics (line 3117) | func TestAddPerPackageMsrMetrics(t *testing.T) { function TestAddCPUFrequency (line 3326) | func TestAddCPUFrequency(t *testing.T) { function TestAddCPUTemperature (line 3396) | func TestAddCPUTemperature(t *testing.T) { function TestAddCPUC0StateResidency (line 3465) | func TestAddCPUC0StateResidency(t *testing.T) { function TestAddCPUC1StateResidency (line 3535) | func TestAddCPUC1StateResidency(t *testing.T) { function TestAddCPUC3StateResidency (line 3605) | func TestAddCPUC3StateResidency(t *testing.T) { function TestAddCPUC6StateResidency (line 3675) | func TestAddCPUC6StateResidency(t *testing.T) { function TestAddCPUC7StateResidency (line 3745) | func TestAddCPUC7StateResidency(t *testing.T) { function TestAddCPUBusyFrequency (line 3815) | func TestAddCPUBusyFrequency(t *testing.T) { function TestAddCPUC0SubstateC01Percent (line 3885) | func TestAddCPUC0SubstateC01Percent(t *testing.T) { function TestAddCPUC0SubstateC02Percent (line 3955) | func TestAddCPUC0SubstateC02Percent(t *testing.T) { function TestAddCPUC0SubstateC0WaitPercent (line 4025) | func TestAddCPUC0SubstateC0WaitPercent(t *testing.T) { function TestAddCurrentPackagePowerConsumption (line 4095) | func TestAddCurrentPackagePowerConsumption(t *testing.T) { function TestAddCurrentDramPowerConsumption (line 4159) | func TestAddCurrentDramPowerConsumption(t *testing.T) { function TestAddThermalDesignPower (line 4223) | func TestAddThermalDesignPower(t *testing.T) { function TestAddCPUBaseFrequency (line 4287) | func TestAddCPUBaseFrequency(t *testing.T) { function TestAddUncoreFrequency (line 4350) | func TestAddUncoreFrequency(t *testing.T) { function TestAddUncoreFrequencyInitialLimits (line 4576) | func TestAddUncoreFrequencyInitialLimits(t *testing.T) { function TestAddUncoreFrequencyCurrentValues (line 4686) | func TestAddUncoreFrequencyCurrentValues(t *testing.T) { function TestGetUncoreFreqInitialLimits (line 4801) | func TestGetUncoreFreqInitialLimits(t *testing.T) { function TestGetUncoreFreqCurrentValues (line 4856) | func TestGetUncoreFreqCurrentValues(t *testing.T) { function TestAddMaxTurboFreqLimits (line 4937) | func TestAddMaxTurboFreqLimits(t *testing.T) { FILE: plugins/inputs/intel_powerstat/metrics.go type cpuMetricType (line 17) | type cpuMetricType method String (line 42) | func (m cpuMetricType) String() string { method UnmarshalText (line 71) | func (m *cpuMetricType) UnmarshalText(data []byte) (err error) { constant cpuFrequency (line 22) | cpuFrequency cpuMetricType = iota constant cpuTemperature (line 25) | cpuTemperature constant cpuC0StateResidency (line 28) | cpuC0StateResidency constant cpuC1StateResidency (line 29) | cpuC1StateResidency constant cpuC3StateResidency (line 30) | cpuC3StateResidency constant cpuC6StateResidency (line 31) | cpuC6StateResidency constant cpuC7StateResidency (line 32) | cpuC7StateResidency constant cpuBusyFrequency (line 33) | cpuBusyFrequency constant cpuC0SubstateC01Percent (line 36) | cpuC0SubstateC01Percent constant cpuC0SubstateC02Percent (line 37) | cpuC0SubstateC02Percent constant cpuC0SubstateC0WaitPercent (line 38) | cpuC0SubstateC0WaitPercent function cpuMetricTypeFromString (line 80) | func cpuMetricTypeFromString(metric string) (cpuMetricType, error) { type packageMetricType (line 110) | type packageMetricType method String (line 130) | func (m packageMetricType) String() string { method UnmarshalText (line 149) | func (m *packageMetricType) UnmarshalText(data []byte) (err error) { constant packageCurrentPowerConsumption (line 115) | packageCurrentPowerConsumption packageMetricType = iota constant packageCurrentDramPowerConsumption (line 116) | packageCurrentDramPowerConsumption constant packageThermalDesignPower (line 117) | packageThermalDesignPower constant packageCPUBaseFrequency (line 120) | packageCPUBaseFrequency constant packageUncoreFrequency (line 123) | packageUncoreFrequency constant packageTurboLimit (line 126) | packageTurboLimit function packageMetricTypeFromString (line 158) | func packageMetricTypeFromString(metric string) (packageMetricType, erro... type numeric (line 178) | type numeric interface type metricInfoProvider (line 183) | type metricInfoProvider interface function addMetric (line 198) | func addMetric(acc telegraf.Accumulator, m metricInfoProvider, logOnceMa... type metricCommon (line 226) | type metricCommon struct method name (line 231) | func (m *metricCommon) name() string { method measurement (line 242) | func (m *metricCommon) measurement() string { type cpuMetric (line 255) | type cpuMetric struct method fields (line 264) | func (m *cpuMetric[T]) fields() (map[string]interface{}, error) { method tags (line 275) | func (m *cpuMetric[T]) tags() map[string]string { type packageMetric (line 285) | type packageMetric struct method fields (line 292) | func (m *packageMetric[T]) fields() (map[string]interface{}, error) { method tags (line 303) | func (m *packageMetric[T]) tags() map[string]string { function round (line 310) | func round[T numeric](val T) T { FILE: plugins/inputs/intel_powerstat/metrics_test.go function TestCoreMetric_String (line 11) | func TestCoreMetric_String(t *testing.T) { function TestPackageMetric_String (line 74) | func TestPackageMetric_String(t *testing.T) { function TestCPUMetricTypeFromString (line 117) | func TestCPUMetricTypeFromString(t *testing.T) { function TestPackageMetricTypeFromString (line 133) | func TestPackageMetricTypeFromString(t *testing.T) { FILE: plugins/inputs/intel_powerstat/options.go type optConfig (line 15) | type optConfig struct type optionGenerator (line 27) | type optionGenerator interface type optGenerator (line 32) | type optGenerator struct method generate (line 36) | func (*optGenerator) generate(cfg optConfig) []ptel.Option { function needsMsrCPU (line 79) | func needsMsrCPU(metrics []cpuMetricType) bool { function needsMsrPackage (line 100) | func needsMsrPackage(metrics []packageMetricType) bool { function needsTimeRelatedMsr (line 118) | func needsTimeRelatedMsr(metrics []cpuMetricType) bool { function needsRapl (line 138) | func needsRapl(metrics []packageMetricType) bool { function needsCoreFreq (line 156) | func needsCoreFreq(metrics []cpuMetricType) bool { function needsUncoreFreq (line 163) | func needsUncoreFreq(metrics []packageMetricType) bool { function needsPerf (line 169) | func needsPerf(metrics []cpuMetricType) bool { FILE: plugins/inputs/intel_powerstat/options_test.go function TestGenerate (line 17) | func TestGenerate(t *testing.T) { function TestNeedsMsrPackage (line 133) | func TestNeedsMsrPackage(t *testing.T) { function TestNeedsMsrCPU (line 162) | func TestNeedsMsrCPU(t *testing.T) { function TestNeedsRapl (line 210) | func TestNeedsRapl(t *testing.T) { function TestNeedsCoreFreq (line 239) | func TestNeedsCoreFreq(t *testing.T) { function TestNeedsUncoreFreq (line 257) | func TestNeedsUncoreFreq(t *testing.T) { function TestNeedsPerf (line 274) | func TestNeedsPerf(t *testing.T) { FILE: plugins/inputs/intel_rdt/intel_rdt.go constant timestampFormat (line 42) | timestampFormat = "2006-01-02 15:04:05" constant defaultSamplingInterval (line 43) | defaultSamplingInterval = 10 constant pqosInitOutputLinesNumber (line 44) | pqosInitOutputLinesNumber = 4 constant numberOfMetrics (line 45) | numberOfMetrics = 6 constant secondsDenominator (line 46) | secondsDenominator = 10 type IntelRDT (line 49) | type IntelRDT struct method SampleConfig (line 80) | func (*IntelRDT) SampleConfig() string { method Start (line 84) | func (r *IntelRDT) Start(acc telegraf.Accumulator) error { method Gather (line 103) | func (*IntelRDT) Gather(telegraf.Accumulator) error { method Stop (line 107) | func (r *IntelRDT) Stop() { method initialize (line 112) | func (r *IntelRDT) initialize() error { method errorHandler (line 144) | func (r *IntelRDT) errorHandler(ctx context.Context) { method scheduler (line 160) | func (r *IntelRDT) scheduler(ctx context.Context) { method checkPIDsAssociation (line 186) | func (r *IntelRDT) checkPIDsAssociation(ctx context.Context) error { method associateProcessesWithPIDs (line 203) | func (r *IntelRDT) associateProcessesWithPIDs(providedProcesses []stri... method createArgsAndStartPQOS (line 222) | func (r *IntelRDT) createArgsAndStartPQOS(ctx context.Context) { method readData (line 236) | func (r *IntelRDT) readData(ctx context.Context, args []string, proces... method processOutput (line 281) | func (r *IntelRDT) processOutput(cmdReader io.ReadCloser, processesPID... type processMeasurement (line 69) | type processMeasurement struct type splitCSVLine (line 74) | type splitCSVLine struct function shutDownPqos (line 327) | func shutDownPqos(pqos *exec.Cmd) error { function createArgCores (line 356) | func createArgCores(cores []string) string { function createArgProcess (line 366) | func createArgProcess(processPIDs map[string]string) string { function createArgsForGroups (line 376) | func createArgsForGroups(coresOrPIDs []string) string { function validatePqosPath (line 390) | func validatePqosPath(pqosPath string) error { function parseCoresConfig (line 404) | func parseCoresConfig(cores []string) ([]string, error) { function validateAndParseCores (line 429) | func validateAndParseCores(coreStr string) ([]int, error) { function findPIDsInMeasurement (line 463) | func findPIDsInMeasurement(measurements string) (string, error) { function splitCSVLineIntoValues (line 474) | func splitCSVLineIntoValues(line string) (splitCSVLine, error) { function validateInterval (line 491) | func validateInterval(interval int32) error { function splitMeasurementLine (line 498) | func splitMeasurementLine(line string) ([]string, error) { function parseTime (line 506) | func parseTime(value string) (time.Time, error) { function parseFloat (line 514) | func parseFloat(value string) (float64, error) { function arrayToString (line 522) | func arrayToString(array []int) string { function checkForDuplicates (line 530) | func checkForDuplicates(values, valuesToCheck []int) bool { function makeRange (line 541) | func makeRange(low, high int) []int { function init (line 549) | func init() { FILE: plugins/inputs/intel_rdt/intel_rdt_test.go type mockProc (line 13) | type mockProc struct method getAllProcesses (line 15) | func (*mockProc) getAllProcesses() ([]process, error) { function TestAssociateProcessesWithPIDs (line 24) | func TestAssociateProcessesWithPIDs(t *testing.T) { function TestSplitCSVLineIntoValues (line 49) | func TestSplitCSVLineIntoValues(t *testing.T) { function TestFindPIDsInMeasurement (line 69) | func TestFindPIDsInMeasurement(t *testing.T) { function TestCreateArgsProcesses (line 82) | func TestCreateArgsProcesses(t *testing.T) { function TestCreateArgsCores (line 103) | func TestCreateArgsCores(t *testing.T) { function TestParseCoresConfig (line 119) | func TestParseCoresConfig(t *testing.T) { FILE: plugins/inputs/intel_rdt/intel_rdt_windows.go type IntelRDT (line 15) | type IntelRDT struct method SampleConfig (line 19) | func (*IntelRDT) SampleConfig() string { return sampleConfig } method Init (line 21) | func (i *IntelRDT) Init() error { method Start (line 26) | func (*IntelRDT) Start(_ telegraf.Accumulator) error { return nil } method Gather (line 28) | func (*IntelRDT) Gather(_ telegraf.Accumulator) error { return nil } method Stop (line 30) | func (*IntelRDT) Stop() {} function init (line 32) | func init() { FILE: plugins/inputs/intel_rdt/processes.go type processesHandler (line 7) | type processesHandler interface type process (line 11) | type process struct type processManager (line 16) | type processManager struct method getAllProcesses (line 22) | func (*processManager) getAllProcesses() ([]process, error) { function newProcessor (line 18) | func newProcessor() processesHandler { FILE: plugins/inputs/intel_rdt/publisher.go type parsedCoresMeasurement (line 14) | type parsedCoresMeasurement struct type parsedProcessMeasurement (line 20) | type parsedProcessMeasurement struct type publisher (line 28) | type publisher struct method publish (line 48) | func (p *publisher) publish(ctx context.Context) { method publishCores (line 65) | func (p *publisher) publishCores(measurement string) { method publishProcess (line 73) | func (p *publisher) publishProcess(measurement processMeasurement) { method addToAccumulatorCores (line 106) | func (p *publisher) addToAccumulatorCores(measurement parsedCoresMeasu... method addToAccumulatorProcesses (line 157) | func (p *publisher) addToAccumulatorProcesses(measurement parsedProces... function newPublisher (line 37) | func newPublisher(acc telegraf.Accumulator, log telegraf.Logger, shorten... function parseCoresMeasurement (line 81) | func parseCoresMeasurement(measurements string) (parsedCoresMeasurement,... function parseProcessesMeasurement (line 126) | func parseProcessesMeasurement(measurement processMeasurement) (parsedPr... FILE: plugins/inputs/intel_rdt/publisher_test.go function TestParseCoresMeasurement (line 24) | func TestParseCoresMeasurement(t *testing.T) { function TestParseProcessesMeasurement (line 103) | func TestParseProcessesMeasurement(t *testing.T) { function TestAddToAccumulatorCores (line 198) | func TestAddToAccumulatorCores(t *testing.T) { function TestAddToAccumulatorProcesses (line 229) | func TestAddToAccumulatorProcesses(t *testing.T) { FILE: plugins/inputs/internal/internal.go type Internal (line 23) | type Internal struct method SampleConfig (line 29) | func (*Internal) SampleConfig() string { method Gather (line 33) | func (s *Internal) Gather(acc telegraf.Accumulator) error { function collectIndividualPluginStat (line 51) | func collectIndividualPluginStat(acc telegraf.Accumulator) { function collectAccumulatedPluginStat (line 61) | func collectAccumulatedPluginStat(acc telegraf.Accumulator) { function collectMemStat (line 89) | func collectMemStat(acc telegraf.Accumulator) { function collectGoStat (line 112) | func collectGoStat(acc telegraf.Accumulator) { function sanitizeName (line 149) | func sanitizeName(name string) string { function medianBucket (line 153) | func medianBucket(h *metrics.Float64Histogram) float64 { function init (line 171) | func init() { FILE: plugins/inputs/internal/internal_test.go function TestSelfPlugin (line 16) | func TestSelfPlugin(t *testing.T) { function TestNoMemStat (line 76) | func TestNoMemStat(t *testing.T) { function TestGostats (line 88) | func TestGostats(t *testing.T) { function TestPerInstance (line 121) | func TestPerInstance(t *testing.T) { function TestAccumulatedPerType (line 183) | func TestAccumulatedPerType(t *testing.T) { FILE: plugins/inputs/internet_speed/internet_speed.go constant measurement (line 26) | measurement = "internet_speed" constant testModeSingle (line 27) | testModeSingle = "single" constant testModeMulti (line 28) | testModeMulti = "multi" type InternetSpeed (line 31) | type InternetSpeed struct method SampleConfig (line 46) | func (*InternetSpeed) SampleConfig() string { method Init (line 50) | func (is *InternetSpeed) Init() error { method Gather (line 68) | func (is *InternetSpeed) Gather(acc telegraf.Accumulator) error { method findClosestServer (line 148) | func (is *InternetSpeed) findClosestServer() error { method selectServer (line 176) | func (is *InternetSpeed) selectServer() error { function timeDurationMillisecondToFloat64 (line 207) | func timeDurationMillisecondToFloat64(d time.Duration) float64 { function init (line 211) | func init() { FILE: plugins/inputs/internet_speed/internet_speed_test.go function TestSelectServer (line 13) | func TestSelectServer(t *testing.T) { function TestSelectServerError (line 88) | func TestSelectServerError(t *testing.T) { function TestGathering (line 102) | func TestGathering(t *testing.T) { function TestDataGen (line 116) | func TestDataGen(t *testing.T) { FILE: plugins/inputs/interrupts/interrupts.go type Interrupts (line 20) | type Interrupts struct method SampleConfig (line 32) | func (*Interrupts) SampleConfig() string { method Gather (line 36) | func (s *Interrupts) Gather(acc telegraf.Accumulator) error { type irq (line 24) | type irq struct function parseInterrupts (line 48) | func parseInterrupts(r io.Reader) ([]irq, error) { function gatherTagsFields (line 96) | func gatherTagsFields(irq irq) (map[string]string, map[string]interface{... function parseFile (line 106) | func parseFile(file string) ([]irq, error) { function reportMetrics (line 120) | func reportMetrics(measurement string, irqs []irq, acc telegraf.Accumula... function newIRQ (line 137) | func newIRQ(id string) *irq { function init (line 141) | func init() { FILE: plugins/inputs/interrupts/interrupts_test.go function expectCPUAsTags (line 17) | func expectCPUAsTags(m *testutil.Accumulator, t *testing.T, measurement ... function expectCPUAsFields (line 26) | func expectCPUAsFields(m *testutil.Accumulator, t *testing.T, measuremen... function setup (line 38) | func setup(t *testing.T, irqString string, cpuAsTags bool) (*testutil.Ac... constant softIrqsString (line 54) | softIrqsString = ` CPU0 CPU1 function TestCpuAsTagsSoftIrqs (line 72) | func TestCpuAsTagsSoftIrqs(t *testing.T) { function TestCpuAsFieldsSoftIrqs (line 81) | func TestCpuAsFieldsSoftIrqs(t *testing.T) { constant hwIrqsString (line 94) | hwIrqsString = ` CPU0 CPU1 CPU2 CPU3 function TestCpuAsTagsHwIrqs (line 144) | func TestCpuAsTagsHwIrqs(t *testing.T) { function TestCpuAsFieldsHwIrqs (line 153) | func TestCpuAsFieldsHwIrqs(t *testing.T) { FILE: plugins/inputs/ipmi_sensor/connection.go type connection (line 9) | type connection struct method options (line 50) | func (c *connection) options() []string { function newConnection (line 19) | func newConnection(server, privilege, hexKey string) *connection { FILE: plugins/inputs/ipmi_sensor/connection_test.go function TestNewConnection (line 9) | func TestNewConnection(t *testing.T) { function TestGetCommandOptions (line 55) | func TestGetCommandOptions(t *testing.T) { FILE: plugins/inputs/ipmi_sensor/ipmi_sensor.go constant cmd (line 38) | cmd = "ipmitool" type Ipmi (line 40) | type Ipmi struct method SampleConfig (line 54) | func (*Ipmi) SampleConfig() string { method Init (line 58) | func (m *Ipmi) Init() error { method Gather (line 85) | func (m *Ipmi) Gather(acc telegraf.Accumulator) error { method parse (line 114) | func (m *Ipmi) parse(acc telegraf.Accumulator, server, sensor string) ... method parseDCMIPowerReading (line 206) | func (m *Ipmi) parseDCMIPowerReading(acc telegraf.Accumulator, hostnam... method parseV1 (line 246) | func (m *Ipmi) parseV1(acc telegraf.Accumulator, hostname string, cmdO... method parseV2 (line 303) | func (m *Ipmi) parseV2(acc telegraf.Accumulator, hostname string, cmdO... method extractFieldsFromRegex (line 358) | func (m *Ipmi) extractFieldsFromRegex(re *regexp.Regexp, input string)... function parseChassisPowerStatus (line 189) | func parseChassisPowerStatus(acc telegraf.Accumulator, hostname string, ... function aToFloat (line 375) | func aToFloat(val string) (float64, error) { function sanitizeIPMICmd (line 383) | func sanitizeIPMICmd(args []string) []string { function trim (line 393) | func trim(s string) string { function transform (line 397) | func transform(s string) string { function init (line 403) | func init() { FILE: plugins/inputs/ipmi_sensor/ipmi_sensor_test.go function TestGather (line 17) | func TestGather(t *testing.T) { function fakeExecCommand (line 219) | func fakeExecCommand(command string, args ...string) *exec.Cmd { function TestHelperProcess (line 232) | func TestHelperProcess(_ *testing.T) { function TestGatherV2 (line 389) | func TestGatherV2(t *testing.T) { function fakeExecCommandV2 (line 542) | func fakeExecCommandV2(command string, args ...string) *exec.Cmd { function TestHelperProcessV2 (line 555) | func TestHelperProcessV2(_ *testing.T) { function TestExtractFields (line 587) | func TestExtractFields(t *testing.T) { function Test_parseV1 (line 629) | func Test_parseV1(t *testing.T) { function Test_parseV2 (line 680) | func Test_parseV2(t *testing.T) { function Test_parsePowerStatus (line 776) | func Test_parsePowerStatus(t *testing.T) { function Test_parsePowerReading (line 835) | func Test_parsePowerReading(t *testing.T) { function TestSanitizeIPMICmd (line 894) | func TestSanitizeIPMICmd(t *testing.T) { FILE: plugins/inputs/ipset/ipset.go constant measurement (line 25) | measurement = "ipset" type Ipset (line 27) | type Ipset struct method SampleConfig (line 39) | func (*Ipset) SampleConfig() string { method Init (line 43) | func (*Ipset) Init() error { method Gather (line 52) | func (i *Ipset) Gather(acc telegraf.Accumulator) error { type setLister (line 37) | type setLister function setList (line 116) | func setList(timeout config.Duration, useSudo bool) (*bytes.Buffer, erro... function init (line 142) | func init() { FILE: plugins/inputs/ipset/ipset_entries.go type ipsetEntries (line 13) | type ipsetEntries struct method addLine (line 44) | func (counter *ipsetEntries) addLine(line string, acc telegraf.Accumul... method commit (line 68) | func (counter *ipsetEntries) commit(acc telegraf.Accumulator) { function getCountInCidr (line 20) | func getCountInCidr(cidr string) (int, error) { FILE: plugins/inputs/ipset/ipset_entries_test.go function TestIpsetEntries (line 13) | func TestIpsetEntries(t *testing.T) { function TestIpsetEntriesCidr (line 47) | func TestIpsetEntriesCidr(t *testing.T) { FILE: plugins/inputs/ipset/ipset_test.go function TestIpset (line 13) | func TestIpset(t *testing.T) { function TestIpset_Gather_listerError (line 138) | func TestIpset_Gather_listerError(t *testing.T) { FILE: plugins/inputs/iptables/iptables.go constant measurement (line 28) | measurement = "iptables" type Iptables (line 30) | type Iptables struct method SampleConfig (line 42) | func (*Iptables) SampleConfig() string { method Gather (line 46) | func (ipt *Iptables) Gather(acc telegraf.Accumulator) error { method chainList (line 67) | func (ipt *Iptables) chainList(table, chain string) (string, error) { method parseAndGather (line 93) | func (ipt *Iptables) parseAndGather(data string, acc telegraf.Accumula... type chainLister (line 40) | type chainLister function init (line 133) | func init() { FILE: plugins/inputs/iptables/iptables_notlinux.go type Iptables (line 16) | type Iptables struct method SampleConfig (line 20) | func (*Iptables) SampleConfig() string { return sampleConfig } method Init (line 22) | func (i *Iptables) Init() error { method Gather (line 27) | func (*Iptables) Gather(_ telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/iptables/iptables_test.go function TestIptables_Gather (line 13) | func TestIptables_Gather(t *testing.T) { function TestIptables_Gather_listerError (line 237) | func TestIptables_Gather_listerError(t *testing.T) { FILE: plugins/inputs/ipvs/ipvs.go type IPVS (line 23) | type IPVS struct method SampleConfig (line 28) | func (*IPVS) SampleConfig() string { method Gather (line 32) | func (i *IPVS) Gather(acc telegraf.Accumulator) error { function serviceTags (line 95) | func serviceTags(s *ipvs.Service) map[string]string { function destinationTags (line 114) | func destinationTags(d *ipvs.Destination) map[string]string { function protocolToString (line 123) | func protocolToString(p uint16) string { function addressFamilyToString (line 137) | func addressFamilyToString(af uint16) string { function init (line 148) | func init() { FILE: plugins/inputs/ipvs/ipvs_notlinux.go type Ipvs (line 16) | type Ipvs struct method SampleConfig (line 20) | func (*Ipvs) SampleConfig() string { return sampleConfig } method Init (line 22) | func (i *Ipvs) Init() error { method Gather (line 27) | func (*Ipvs) Gather(_ telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/jenkins/client.go constant maxBuildsPerJob (line 11) | maxBuildsPerJob = 20 type client (line 13) | type client struct method init (line 32) | func (c *client) init() error { method doGet (line 57) | func (c *client) doGet(ctx context.Context, url string, v interface{})... method getJobs (line 133) | func (c *client) getJobs(ctx context.Context, jr *jobRequest) (js *job... method getBuild (line 143) | func (c *client) getBuild(ctx context.Context, jr jobRequest, number i... method getAllNodes (line 150) | func (c *client) getAllNodes(ctx context.Context) (nodeResp *nodeRespo... function newClient (line 22) | func newClient(httpClient *http.Client, url, username, password string, ... type apiError (line 104) | type apiError struct method Error (line 111) | func (e apiError) Error() string { function createGetRequest (line 118) | func createGetRequest(url, username, password string, sessionCookie *htt... FILE: plugins/inputs/jenkins/jenkins.go constant measurementJenkins (line 28) | measurementJenkins = "jenkins" constant measurementNode (line 29) | measurementNode = "jenkins_node" constant measurementJob (line 30) | measurementJob = "jenkins_job" type Jenkins (line 33) | type Jenkins struct method SampleConfig (line 63) | func (*Jenkins) SampleConfig() string { method Gather (line 67) | func (j *Jenkins) Gather(acc telegraf.Accumulator) error { method newHTTPClient (line 84) | func (j *Jenkins) newHTTPClient() (*http.Client, error) { method initialize (line 99) | func (j *Jenkins) initialize(client *http.Client) error { method gatherNodeData (line 145) | func (j *Jenkins) gatherNodeData(n node, acc telegraf.Accumulator) err... method gatherNodesData (line 210) | func (j *Jenkins) gatherNodesData(acc telegraf.Accumulator) { method gatherJobs (line 235) | func (j *Jenkins) gatherJobs(acc telegraf.Accumulator) { method getJobDetail (line 257) | func (j *Jenkins) getJobDetail(jr jobRequest, acc telegraf.Accumulator... method gatherJobBuild (line 444) | func (j *Jenkins) gatherJobBuild(jr jobRequest, b *buildResponse, acc ... type nodeResponse (line 331) | type nodeResponse struct type node (line 337) | type node struct type label (line 345) | type label struct type monitorData (line 349) | type monitorData struct type nodeSpaceMonitor (line 357) | type nodeSpaceMonitor struct type responseTimeMonitor (line 362) | type responseTimeMonitor struct type swapSpaceMonitor (line 366) | type swapSpaceMonitor struct type jobResponse (line 373) | type jobResponse struct type innerJob (line 380) | type innerJob struct type jobBuild (line 386) | type jobBuild struct type buildResponse (line 391) | type buildResponse struct method getTimestamp (line 399) | func (b *buildResponse) getTimestamp() time.Time { constant nodePath (line 404) | nodePath = "/computer/api/json" constant jobPath (line 405) | jobPath = "/api/json" type jobRequest (line 408) | type jobRequest struct method combined (line 414) | func (jr jobRequest) combined() []string { method combinedEscaped (line 420) | func (jr jobRequest) combinedEscaped() []string { method url (line 428) | func (jr jobRequest) url() string { method buildURL (line 432) | func (jr jobRequest) buildURL(number int64) string { method hierarchyName (line 436) | func (jr jobRequest) hierarchyName() string { method parentsString (line 440) | func (jr jobRequest) parentsString() string { function mapResultCode (line 455) | func mapResultCode(s string) int { function init (line 471) | func init() { FILE: plugins/inputs/jenkins/jenkins_test.go function TestJobRequestHierarchyName (line 22) | func TestJobRequestHierarchyName(t *testing.T) { function TestJobRequestURL (line 57) | func TestJobRequestURL(t *testing.T) { function TestResultCode (line 87) | func TestResultCode(t *testing.T) { type mockHandler (line 105) | type mockHandler struct method ServeHTTP (line 112) | func (h mockHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { function TestInitFail (line 132) | func TestInitFail(t *testing.T) { function TestInit (line 159) | func TestInit(t *testing.T) { function TestGatherFail (line 205) | func TestGatherFail(t *testing.T) { function TestGatherNodeData (line 323) | func TestGatherNodeData(t *testing.T) { function TestGatherLabels (line 598) | func TestGatherLabels(t *testing.T) { function TestGatherJobBuilds (line 724) | func TestGatherJobBuilds(t *testing.T) { function TestGatherBuildFetchErrorPartial (line 1182) | func TestGatherBuildFetchErrorPartial(t *testing.T) { function TestGatherBuildsCappedAt20 (line 1310) | func TestGatherBuildsCappedAt20(t *testing.T) { function TestGatherJobs (line 1394) | func TestGatherJobs(t *testing.T) { FILE: plugins/inputs/jolokia2_agent/jolokia2_agent.go type JolokiaAgent (line 20) | type JolokiaAgent struct method SampleConfig (line 38) | func (*JolokiaAgent) SampleConfig() string { method Gather (line 42) | func (ja *JolokiaAgent) Gather(acc telegraf.Accumulator) error { method createMetrics (line 79) | func (ja *JolokiaAgent) createMetrics() []common.Metric { method createClient (line 88) | func (ja *JolokiaAgent) createClient(url string) (*common.Client, erro... function init (line 98) | func init() { FILE: plugins/inputs/jolokia2_agent/jolokia2_agent_test.go function TestScalarValues (line 26) | func TestScalarValues(t *testing.T) { function TestObjectValues (line 126) | func TestObjectValues(t *testing.T) { function TestStatusCodes (line 216) | func TestStatusCodes(t *testing.T) { function TestTagRenaming (line 271) | func TestTagRenaming(t *testing.T) { function TestFieldRenaming (line 328) | func TestFieldRenaming(t *testing.T) { function TestMetricMbeanMatching (line 431) | func TestMetricMbeanMatching(t *testing.T) { function TestMetricCompaction (line 539) | func TestMetricCompaction(t *testing.T) { function TestJolokia2_ClientAuthRequest (line 622) | func TestJolokia2_ClientAuthRequest(t *testing.T) { function TestFillFields (line 667) | func TestFillFields(t *testing.T) { function TestIntegrationArtemis (line 686) | func TestIntegrationArtemis(t *testing.T) { function setupServer (line 903) | func setupServer(resp string) *httptest.Server { function setupPlugin (line 910) | func setupPlugin(t *testing.T, conf string) telegraf.Input { FILE: plugins/inputs/jolokia2_proxy/jolokia2_proxy.go type JolokiaProxy (line 18) | type JolokiaProxy struct method SampleConfig (line 45) | func (*JolokiaProxy) SampleConfig() string { method Gather (line 49) | func (jp *JolokiaProxy) Gather(acc telegraf.Accumulator) error { method createMetrics (line 67) | func (jp *JolokiaProxy) createMetrics() []common.Metric { method createClient (line 76) | func (jp *JolokiaProxy) createClient() (*common.Client, error) { type jolokiaProxyTargetConfig (line 39) | type jolokiaProxyTargetConfig struct function init (line 99) | func init() { FILE: plugins/inputs/jolokia2_proxy/jolokia2_proxy_test.go function TestJolokia2_ProxyTargets (line 21) | func TestJolokia2_ProxyTargets(t *testing.T) { function TestJolokia2_ClientProxyAuthRequest (line 79) | func TestJolokia2_ClientProxyAuthRequest(t *testing.T) { function TestFillFields (line 146) | func TestFillFields(t *testing.T) { function setupServer (line 165) | func setupServer(resp string) *httptest.Server { function setupPlugin (line 172) | func setupPlugin(t *testing.T, conf string) telegraf.Input { FILE: plugins/inputs/jti_openconfig_telemetry/auth/authentication_service.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type LoginRequest (line 25) | type LoginRequest struct method Reset (line 35) | func (x *LoginRequest) Reset() { method String (line 44) | func (x *LoginRequest) String() string { method ProtoMessage (line 48) | func (*LoginRequest) ProtoMessage() {} method ProtoReflect (line 50) | func (x *LoginRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 63) | func (*LoginRequest) Descriptor() ([]byte, []int) { method GetUserName (line 67) | func (x *LoginRequest) GetUserName() string { method GetPassword (line 74) | func (x *LoginRequest) GetPassword() string { method GetClientId (line 81) | func (x *LoginRequest) GetClientId() string { type LoginReply (line 91) | type LoginReply struct method Reset (line 99) | func (x *LoginReply) Reset() { method String (line 108) | func (x *LoginReply) String() string { method ProtoMessage (line 112) | func (*LoginReply) ProtoMessage() {} method ProtoReflect (line 114) | func (x *LoginReply) ProtoReflect() protoreflect.Message { method Descriptor (line 127) | func (*LoginReply) Descriptor() ([]byte, []int) { method GetResult (line 131) | func (x *LoginReply) GetResult() bool { function file_auth_authentication_service_proto_rawDescGZIP (line 167) | func file_auth_authentication_service_proto_rawDescGZIP() []byte { function init (line 189) | func init() { file_auth_authentication_service_proto_init() } function file_auth_authentication_service_proto_init (line 190) | func file_auth_authentication_service_proto_init() { FILE: plugins/inputs/jti_openconfig_telemetry/auth/authentication_service_grpc.pb.go constant _ (line 16) | _ = grpc.SupportPackageIsVersion7 type LoginClient (line 21) | type LoginClient interface type loginClient (line 25) | type loginClient struct method LoginCheck (line 33) | func (c *loginClient) LoginCheck(ctx context.Context, in *LoginRequest... function NewLoginClient (line 29) | func NewLoginClient(cc grpc.ClientConnInterface) LoginClient { type LoginServer (line 45) | type LoginServer interface type UnimplementedLoginServer (line 51) | type UnimplementedLoginServer struct method LoginCheck (line 54) | func (UnimplementedLoginServer) LoginCheck(context.Context, *LoginRequ... method mustEmbedUnimplementedLoginServer (line 57) | func (UnimplementedLoginServer) mustEmbedUnimplementedLoginServer() {} type UnsafeLoginServer (line 62) | type UnsafeLoginServer interface function RegisterLoginServer (line 66) | func RegisterLoginServer(s grpc.ServiceRegistrar, srv LoginServer) { function _Login_LoginCheck_Handler (line 70) | func _Login_LoginCheck_Handler(srv interface{}, ctx context.Context, dec... FILE: plugins/inputs/jti_openconfig_telemetry/collection.go type dataGroup (line 5) | type dataGroup struct type collectionByKeys (line 12) | type collectionByKeys method Len (line 14) | func (a collectionByKeys) Len() int { return len(a) } method Swap (line 15) | func (a collectionByKeys) Swap(i, j int) { a[i], a[j] = a[j], a[i] } method Less (line 16) | func (a collectionByKeys) Less(i, j int) bool { return a[i].numKeys < ... method isAvailable (line 19) | func (a collectionByKeys) isAvailable(tags map[string]string) *dataGro... method insert (line 48) | func (a collectionByKeys) insert(tags map[string]string, data map[stri... FILE: plugins/inputs/jti_openconfig_telemetry/jti_openconfig_telemetry.go type OpenConfigTelemetry (line 39) | type OpenConfigTelemetry struct method SampleConfig (line 76) | func (*OpenConfigTelemetry) SampleConfig() string { method Init (line 80) | func (m *OpenConfigTelemetry) Init() error { method Start (line 91) | func (m *OpenConfigTelemetry) Start(acc telegraf.Accumulator) error { method Gather (line 175) | func (*OpenConfigTelemetry) Gather(telegraf.Accumulator) error { method Stop (line 179) | func (m *OpenConfigTelemetry) Stop() { method extractData (line 216) | func (m *OpenConfigTelemetry) extractData(r *telemetry.OpenConfigData,... method splitSensorConfig (line 277) | func (m *OpenConfigTelemetry) splitSensorConfig() int { method collectData (line 337) | func (m *OpenConfigTelemetry) collectData( method authenticate (line 430) | func (m *OpenConfigTelemetry) authenticate(ctx context.Context, server... type sensorConfig (line 61) | type sensorConfig struct type grpcConnection (line 66) | type grpcConnection struct method close (line 71) | func (g *grpcConnection) close() { function spitTagsNPath (line 190) | func spitTagsNPath(xmlpath string) (string, map[string]string) { function init (line 452) | func init() { FILE: plugins/inputs/jti_openconfig_telemetry/jti_openconfig_telemetry_test.go type openConfigTelemetryServer (line 57) | type openConfigTelemetryServer struct method TelemetrySubscribe (line 61) | func (*openConfigTelemetryServer) TelemetrySubscribe(req *telemetry.Su... method CancelTelemetrySubscription (line 78) | func (*openConfigTelemetryServer) CancelTelemetrySubscription( method GetTelemetrySubscriptions (line 85) | func (*openConfigTelemetryServer) GetTelemetrySubscriptions( method GetTelemetryOperationalState (line 92) | func (*openConfigTelemetryServer) GetTelemetryOperationalState( method GetDataEncodings (line 99) | func (*openConfigTelemetryServer) GetDataEncodings(context.Context, *t... function newServer (line 103) | func newServer() *openConfigTelemetryServer { function TestOpenConfigTelemetryData (line 108) | func TestOpenConfigTelemetryData(t *testing.T) { function TestOpenConfigTelemetryData_timestamp (line 134) | func TestOpenConfigTelemetryData_timestamp(t *testing.T) { function TestOpenConfigTelemetryDataWithPrefix (line 158) | func TestOpenConfigTelemetryDataWithPrefix(t *testing.T) { function TestOpenConfigTelemetryDataWithMultipleTags (line 182) | func TestOpenConfigTelemetryDataWithMultipleTags(t *testing.T) { function TestOpenConfigTelemetryDataWithStringValues (line 222) | func TestOpenConfigTelemetryDataWithStringValues(t *testing.T) { function TestMain (line 247) | func TestMain(m *testing.M) { FILE: plugins/inputs/jti_openconfig_telemetry/oc/oc.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type ReturnCode (line 25) | type ReturnCode method Enum (line 47) | func (x ReturnCode) Enum() *ReturnCode { method String (line 53) | func (x ReturnCode) String() string { method Descriptor (line 57) | func (ReturnCode) Descriptor() protoreflect.EnumDescriptor { method Type (line 61) | func (ReturnCode) Type() protoreflect.EnumType { method Number (line 65) | func (x ReturnCode) Number() protoreflect.EnumNumber { method EnumDescriptor (line 70) | func (ReturnCode) EnumDescriptor() ([]byte, []int) { constant ReturnCode_SUCCESS (line 28) | ReturnCode_SUCCESS ReturnCode = 0 constant ReturnCode_NO_SUBSCRIPTION_ENTRY (line 29) | ReturnCode_NO_SUBSCRIPTION_ENTRY ReturnCode = 1 constant ReturnCode_UNKNOWN_ERROR (line 30) | ReturnCode_UNKNOWN_ERROR ReturnCode = 2 type VerbosityLevel (line 75) | type VerbosityLevel method Enum (line 97) | func (x VerbosityLevel) Enum() *VerbosityLevel { method String (line 103) | func (x VerbosityLevel) String() string { method Descriptor (line 107) | func (VerbosityLevel) Descriptor() protoreflect.EnumDescriptor { method Type (line 111) | func (VerbosityLevel) Type() protoreflect.EnumType { method Number (line 115) | func (x VerbosityLevel) Number() protoreflect.EnumNumber { method EnumDescriptor (line 120) | func (VerbosityLevel) EnumDescriptor() ([]byte, []int) { constant VerbosityLevel_DETAIL (line 78) | VerbosityLevel_DETAIL VerbosityLevel = 0 constant VerbosityLevel_TERSE (line 79) | VerbosityLevel_TERSE VerbosityLevel = 1 constant VerbosityLevel_BRIEF (line 80) | VerbosityLevel_BRIEF VerbosityLevel = 2 type EncodingType (line 125) | type EncodingType method Enum (line 150) | func (x EncodingType) Enum() *EncodingType { method String (line 156) | func (x EncodingType) String() string { method Descriptor (line 160) | func (EncodingType) Descriptor() protoreflect.EnumDescriptor { method Type (line 164) | func (EncodingType) Type() protoreflect.EnumType { method Number (line 168) | func (x EncodingType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 173) | func (EncodingType) EnumDescriptor() ([]byte, []int) { constant EncodingType_UNDEFINED (line 128) | EncodingType_UNDEFINED EncodingType = 0 constant EncodingType_XML (line 129) | EncodingType_XML EncodingType = 1 constant EncodingType_JSON_IETF (line 130) | EncodingType_JSON_IETF EncodingType = 2 constant EncodingType_PROTO3 (line 131) | EncodingType_PROTO3 EncodingType = 3 type SubscriptionRequest (line 178) | type SubscriptionRequest struct method Reset (line 194) | func (x *SubscriptionRequest) Reset() { method String (line 203) | func (x *SubscriptionRequest) String() string { method ProtoMessage (line 207) | func (*SubscriptionRequest) ProtoMessage() {} method ProtoReflect (line 209) | func (x *SubscriptionRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 222) | func (*SubscriptionRequest) Descriptor() ([]byte, []int) { method GetInput (line 226) | func (x *SubscriptionRequest) GetInput() *SubscriptionInput { method GetPathList (line 233) | func (x *SubscriptionRequest) GetPathList() []*Path { method GetAdditionalConfig (line 240) | func (x *SubscriptionRequest) GetAdditionalConfig() *SubscriptionAddit... type SubscriptionInput (line 248) | type SubscriptionInput struct method Reset (line 260) | func (x *SubscriptionInput) Reset() { method String (line 269) | func (x *SubscriptionInput) String() string { method ProtoMessage (line 273) | func (*SubscriptionInput) ProtoMessage() {} method ProtoReflect (line 275) | func (x *SubscriptionInput) ProtoReflect() protoreflect.Message { method Descriptor (line 288) | func (*SubscriptionInput) Descriptor() ([]byte, []int) { method GetCollectorList (line 292) | func (x *SubscriptionInput) GetCollectorList() []*Collector { type Collector (line 300) | type Collector struct method Reset (line 311) | func (x *Collector) Reset() { method String (line 320) | func (x *Collector) String() string { method ProtoMessage (line 324) | func (*Collector) ProtoMessage() {} method ProtoReflect (line 326) | func (x *Collector) ProtoReflect() protoreflect.Message { method Descriptor (line 339) | func (*Collector) Descriptor() ([]byte, []int) { method GetAddress (line 343) | func (x *Collector) GetAddress() string { method GetPort (line 350) | func (x *Collector) GetPort() uint32 { type Path (line 358) | type Path struct method Reset (line 392) | func (x *Path) Reset() { method String (line 401) | func (x *Path) String() string { method ProtoMessage (line 405) | func (*Path) ProtoMessage() {} method ProtoReflect (line 407) | func (x *Path) ProtoReflect() protoreflect.Message { method Descriptor (line 420) | func (*Path) Descriptor() ([]byte, []int) { method GetPath (line 424) | func (x *Path) GetPath() string { method GetFilter (line 431) | func (x *Path) GetFilter() string { method GetSuppressUnchanged (line 438) | func (x *Path) GetSuppressUnchanged() bool { method GetMaxSilentInterval (line 445) | func (x *Path) GetMaxSilentInterval() uint32 { method GetSampleFrequency (line 452) | func (x *Path) GetSampleFrequency() uint32 { method GetNeedEom (line 459) | func (x *Path) GetNeedEom() bool { type SubscriptionAdditionalConfig (line 467) | type SubscriptionAdditionalConfig struct method Reset (line 480) | func (x *SubscriptionAdditionalConfig) Reset() { method String (line 489) | func (x *SubscriptionAdditionalConfig) String() string { method ProtoMessage (line 493) | func (*SubscriptionAdditionalConfig) ProtoMessage() {} method ProtoReflect (line 495) | func (x *SubscriptionAdditionalConfig) ProtoReflect() protoreflect.Mes... method Descriptor (line 508) | func (*SubscriptionAdditionalConfig) Descriptor() ([]byte, []int) { method GetLimitRecords (line 512) | func (x *SubscriptionAdditionalConfig) GetLimitRecords() int32 { method GetLimitTimeSeconds (line 519) | func (x *SubscriptionAdditionalConfig) GetLimitTimeSeconds() int32 { method GetNeedEos (line 526) | func (x *SubscriptionAdditionalConfig) GetNeedEos() bool { type SubscriptionReply (line 534) | type SubscriptionReply struct method Reset (line 547) | func (x *SubscriptionReply) Reset() { method String (line 556) | func (x *SubscriptionReply) String() string { method ProtoMessage (line 560) | func (*SubscriptionReply) ProtoMessage() {} method ProtoReflect (line 562) | func (x *SubscriptionReply) ProtoReflect() protoreflect.Message { method Descriptor (line 575) | func (*SubscriptionReply) Descriptor() ([]byte, []int) { method GetResponse (line 579) | func (x *SubscriptionReply) GetResponse() *SubscriptionResponse { method GetPathList (line 586) | func (x *SubscriptionReply) GetPathList() []*Path { type SubscriptionResponse (line 594) | type SubscriptionResponse struct method Reset (line 605) | func (x *SubscriptionResponse) Reset() { method String (line 614) | func (x *SubscriptionResponse) String() string { method ProtoMessage (line 618) | func (*SubscriptionResponse) ProtoMessage() {} method ProtoReflect (line 620) | func (x *SubscriptionResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 633) | func (*SubscriptionResponse) Descriptor() ([]byte, []int) { method GetSubscriptionId (line 637) | func (x *SubscriptionResponse) GetSubscriptionId() uint32 { type OpenConfigData (line 646) | type OpenConfigData struct method Reset (line 675) | func (x *OpenConfigData) Reset() { method String (line 684) | func (x *OpenConfigData) String() string { method ProtoMessage (line 688) | func (*OpenConfigData) ProtoMessage() {} method ProtoReflect (line 690) | func (x *OpenConfigData) ProtoReflect() protoreflect.Message { method Descriptor (line 703) | func (*OpenConfigData) Descriptor() ([]byte, []int) { method GetSystemId (line 707) | func (x *OpenConfigData) GetSystemId() string { method GetComponentId (line 714) | func (x *OpenConfigData) GetComponentId() uint32 { method GetSubComponentId (line 721) | func (x *OpenConfigData) GetSubComponentId() uint32 { method GetPath (line 728) | func (x *OpenConfigData) GetPath() string { method GetSequenceNumber (line 735) | func (x *OpenConfigData) GetSequenceNumber() uint64 { method GetTimestamp (line 742) | func (x *OpenConfigData) GetTimestamp() uint64 { method GetKv (line 749) | func (x *OpenConfigData) GetKv() []*KeyValue { method GetDelete (line 756) | func (x *OpenConfigData) GetDelete() []*Delete { method GetEom (line 763) | func (x *OpenConfigData) GetEom() []*Eom { method GetSyncResponse (line 770) | func (x *OpenConfigData) GetSyncResponse() bool { type KeyValue (line 778) | type KeyValue struct method Reset (line 798) | func (x *KeyValue) Reset() { method String (line 807) | func (x *KeyValue) String() string { method ProtoMessage (line 811) | func (*KeyValue) ProtoMessage() {} method ProtoReflect (line 813) | func (x *KeyValue) ProtoReflect() protoreflect.Message { method Descriptor (line 826) | func (*KeyValue) Descriptor() ([]byte, []int) { method GetKey (line 830) | func (x *KeyValue) GetKey() string { method GetValue (line 837) | func (m *KeyValue) GetValue() isKeyValue_Value { method GetDoubleValue (line 844) | func (x *KeyValue) GetDoubleValue() float64 { method GetIntValue (line 851) | func (x *KeyValue) GetIntValue() int64 { method GetUintValue (line 858) | func (x *KeyValue) GetUintValue() uint64 { method GetSintValue (line 865) | func (x *KeyValue) GetSintValue() int64 { method GetBoolValue (line 872) | func (x *KeyValue) GetBoolValue() bool { method GetStrValue (line 879) | func (x *KeyValue) GetStrValue() string { method GetBytesValue (line 886) | func (x *KeyValue) GetBytesValue() []byte { type isKeyValue_Value (line 893) | type isKeyValue_Value interface type KeyValue_DoubleValue (line 897) | type KeyValue_DoubleValue struct method isKeyValue_Value (line 925) | func (*KeyValue_DoubleValue) isKeyValue_Value() {} type KeyValue_IntValue (line 901) | type KeyValue_IntValue struct method isKeyValue_Value (line 927) | func (*KeyValue_IntValue) isKeyValue_Value() {} type KeyValue_UintValue (line 905) | type KeyValue_UintValue struct method isKeyValue_Value (line 929) | func (*KeyValue_UintValue) isKeyValue_Value() {} type KeyValue_SintValue (line 909) | type KeyValue_SintValue struct method isKeyValue_Value (line 931) | func (*KeyValue_SintValue) isKeyValue_Value() {} type KeyValue_BoolValue (line 913) | type KeyValue_BoolValue struct method isKeyValue_Value (line 933) | func (*KeyValue_BoolValue) isKeyValue_Value() {} type KeyValue_StrValue (line 917) | type KeyValue_StrValue struct method isKeyValue_Value (line 935) | func (*KeyValue_StrValue) isKeyValue_Value() {} type KeyValue_BytesValue (line 921) | type KeyValue_BytesValue struct method isKeyValue_Value (line 937) | func (*KeyValue_BytesValue) isKeyValue_Value() {} type Delete (line 940) | type Delete struct method Reset (line 948) | func (x *Delete) Reset() { method String (line 957) | func (x *Delete) String() string { method ProtoMessage (line 961) | func (*Delete) ProtoMessage() {} method ProtoReflect (line 963) | func (x *Delete) ProtoReflect() protoreflect.Message { method Descriptor (line 976) | func (*Delete) Descriptor() ([]byte, []int) { method GetPath (line 980) | func (x *Delete) GetPath() string { type Eom (line 988) | type Eom struct method Reset (line 996) | func (x *Eom) Reset() { method String (line 1005) | func (x *Eom) String() string { method ProtoMessage (line 1009) | func (*Eom) ProtoMessage() {} method ProtoReflect (line 1011) | func (x *Eom) ProtoReflect() protoreflect.Message { method Descriptor (line 1024) | func (*Eom) Descriptor() ([]byte, []int) { method GetPath (line 1028) | func (x *Eom) GetPath() string { type CancelSubscriptionRequest (line 1036) | type CancelSubscriptionRequest struct method Reset (line 1046) | func (x *CancelSubscriptionRequest) Reset() { method String (line 1055) | func (x *CancelSubscriptionRequest) String() string { method ProtoMessage (line 1059) | func (*CancelSubscriptionRequest) ProtoMessage() {} method ProtoReflect (line 1061) | func (x *CancelSubscriptionRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 1074) | func (*CancelSubscriptionRequest) Descriptor() ([]byte, []int) { method GetSubscriptionId (line 1078) | func (x *CancelSubscriptionRequest) GetSubscriptionId() uint32 { type CancelSubscriptionReply (line 1086) | type CancelSubscriptionReply struct method Reset (line 1097) | func (x *CancelSubscriptionReply) Reset() { method String (line 1106) | func (x *CancelSubscriptionReply) String() string { method ProtoMessage (line 1110) | func (*CancelSubscriptionReply) ProtoMessage() {} method ProtoReflect (line 1112) | func (x *CancelSubscriptionReply) ProtoReflect() protoreflect.Message { method Descriptor (line 1125) | func (*CancelSubscriptionReply) Descriptor() ([]byte, []int) { method GetCode (line 1129) | func (x *CancelSubscriptionReply) GetCode() ReturnCode { method GetCodeStr (line 1136) | func (x *CancelSubscriptionReply) GetCodeStr() string { type GetSubscriptionsRequest (line 1144) | type GetSubscriptionsRequest struct method Reset (line 1156) | func (x *GetSubscriptionsRequest) Reset() { method String (line 1165) | func (x *GetSubscriptionsRequest) String() string { method ProtoMessage (line 1169) | func (*GetSubscriptionsRequest) ProtoMessage() {} method ProtoReflect (line 1171) | func (x *GetSubscriptionsRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 1184) | func (*GetSubscriptionsRequest) Descriptor() ([]byte, []int) { method GetSubscriptionId (line 1188) | func (x *GetSubscriptionsRequest) GetSubscriptionId() uint32 { type GetSubscriptionsReply (line 1196) | type GetSubscriptionsReply struct method Reset (line 1205) | func (x *GetSubscriptionsReply) Reset() { method String (line 1214) | func (x *GetSubscriptionsReply) String() string { method ProtoMessage (line 1218) | func (*GetSubscriptionsReply) ProtoMessage() {} method ProtoReflect (line 1220) | func (x *GetSubscriptionsReply) ProtoReflect() protoreflect.Message { method Descriptor (line 1233) | func (*GetSubscriptionsReply) Descriptor() ([]byte, []int) { method GetSubscriptionList (line 1237) | func (x *GetSubscriptionsReply) GetSubscriptionList() []*SubscriptionR... type GetOperationalStateRequest (line 1245) | type GetOperationalStateRequest struct method Reset (line 1265) | func (x *GetOperationalStateRequest) Reset() { method String (line 1274) | func (x *GetOperationalStateRequest) String() string { method ProtoMessage (line 1278) | func (*GetOperationalStateRequest) ProtoMessage() {} method ProtoReflect (line 1280) | func (x *GetOperationalStateRequest) ProtoReflect() protoreflect.Messa... method Descriptor (line 1293) | func (*GetOperationalStateRequest) Descriptor() ([]byte, []int) { method GetSubscriptionId (line 1297) | func (x *GetOperationalStateRequest) GetSubscriptionId() uint32 { method GetVerbosity (line 1304) | func (x *GetOperationalStateRequest) GetVerbosity() VerbosityLevel { type GetOperationalStateReply (line 1312) | type GetOperationalStateReply struct method Reset (line 1323) | func (x *GetOperationalStateReply) Reset() { method String (line 1332) | func (x *GetOperationalStateReply) String() string { method ProtoMessage (line 1336) | func (*GetOperationalStateReply) ProtoMessage() {} method ProtoReflect (line 1338) | func (x *GetOperationalStateReply) ProtoReflect() protoreflect.Message { method Descriptor (line 1351) | func (*GetOperationalStateReply) Descriptor() ([]byte, []int) { method GetKv (line 1355) | func (x *GetOperationalStateReply) GetKv() []*KeyValue { type DataEncodingRequest (line 1363) | type DataEncodingRequest struct method Reset (line 1369) | func (x *DataEncodingRequest) Reset() { method String (line 1378) | func (x *DataEncodingRequest) String() string { method ProtoMessage (line 1382) | func (*DataEncodingRequest) ProtoMessage() {} method ProtoReflect (line 1384) | func (x *DataEncodingRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 1397) | func (*DataEncodingRequest) Descriptor() ([]byte, []int) { type DataEncodingReply (line 1402) | type DataEncodingReply struct method Reset (line 1410) | func (x *DataEncodingReply) Reset() { method String (line 1419) | func (x *DataEncodingReply) String() string { method ProtoMessage (line 1423) | func (*DataEncodingReply) ProtoMessage() {} method ProtoReflect (line 1425) | func (x *DataEncodingReply) ProtoReflect() protoreflect.Message { method Descriptor (line 1438) | func (*DataEncodingReply) Descriptor() ([]byte, []int) { method GetEncodingList (line 1442) | func (x *DataEncodingReply) GetEncodingList() []EncodingType { function file_oc_oc_proto_rawDescGZIP (line 1646) | func file_oc_oc_proto_rawDescGZIP() []byte { function init (line 1711) | func init() { file_oc_oc_proto_init() } function file_oc_oc_proto_init (line 1712) | func file_oc_oc_proto_init() { FILE: plugins/inputs/jti_openconfig_telemetry/oc/oc_grpc.pb.go constant _ (line 16) | _ = grpc.SupportPackageIsVersion7 type OpenConfigTelemetryClient (line 21) | type OpenConfigTelemetryClient interface type openConfigTelemetryClient (line 39) | type openConfigTelemetryClient struct method TelemetrySubscribe (line 47) | func (c *openConfigTelemetryClient) TelemetrySubscribe(ctx context.Con... method CancelTelemetrySubscription (line 79) | func (c *openConfigTelemetryClient) CancelTelemetrySubscription(ctx co... method GetTelemetrySubscriptions (line 88) | func (c *openConfigTelemetryClient) GetTelemetrySubscriptions(ctx cont... method GetTelemetryOperationalState (line 97) | func (c *openConfigTelemetryClient) GetTelemetryOperationalState(ctx c... method GetDataEncodings (line 106) | func (c *openConfigTelemetryClient) GetDataEncodings(ctx context.Conte... function NewOpenConfigTelemetryClient (line 43) | func NewOpenConfigTelemetryClient(cc grpc.ClientConnInterface) OpenConfi... type OpenConfigTelemetry_TelemetrySubscribeClient (line 62) | type OpenConfigTelemetry_TelemetrySubscribeClient interface type openConfigTelemetryTelemetrySubscribeClient (line 67) | type openConfigTelemetryTelemetrySubscribeClient struct method Recv (line 71) | func (x *openConfigTelemetryTelemetrySubscribeClient) Recv() (*OpenCon... type OpenConfigTelemetryServer (line 118) | type OpenConfigTelemetryServer interface type UnimplementedOpenConfigTelemetryServer (line 138) | type UnimplementedOpenConfigTelemetryServer struct method TelemetrySubscribe (line 141) | func (UnimplementedOpenConfigTelemetryServer) TelemetrySubscribe(*Subs... method CancelTelemetrySubscription (line 144) | func (UnimplementedOpenConfigTelemetryServer) CancelTelemetrySubscript... method GetTelemetrySubscriptions (line 147) | func (UnimplementedOpenConfigTelemetryServer) GetTelemetrySubscription... method GetTelemetryOperationalState (line 150) | func (UnimplementedOpenConfigTelemetryServer) GetTelemetryOperationalS... method GetDataEncodings (line 153) | func (UnimplementedOpenConfigTelemetryServer) GetDataEncodings(context... method mustEmbedUnimplementedOpenConfigTelemetryServer (line 156) | func (UnimplementedOpenConfigTelemetryServer) mustEmbedUnimplementedOp... type UnsafeOpenConfigTelemetryServer (line 161) | type UnsafeOpenConfigTelemetryServer interface function RegisterOpenConfigTelemetryServer (line 165) | func RegisterOpenConfigTelemetryServer(s grpc.ServiceRegistrar, srv Open... function _OpenConfigTelemetry_TelemetrySubscribe_Handler (line 169) | func _OpenConfigTelemetry_TelemetrySubscribe_Handler(srv interface{}, st... type OpenConfigTelemetry_TelemetrySubscribeServer (line 177) | type OpenConfigTelemetry_TelemetrySubscribeServer interface type openConfigTelemetryTelemetrySubscribeServer (line 182) | type openConfigTelemetryTelemetrySubscribeServer struct method Send (line 186) | func (x *openConfigTelemetryTelemetrySubscribeServer) Send(m *OpenConf... function _OpenConfigTelemetry_CancelTelemetrySubscription_Handler (line 190) | func _OpenConfigTelemetry_CancelTelemetrySubscription_Handler(srv interf... function _OpenConfigTelemetry_GetTelemetrySubscriptions_Handler (line 208) | func _OpenConfigTelemetry_GetTelemetrySubscriptions_Handler(srv interfac... function _OpenConfigTelemetry_GetTelemetryOperationalState_Handler (line 226) | func _OpenConfigTelemetry_GetTelemetryOperationalState_Handler(srv inter... function _OpenConfigTelemetry_GetDataEncodings_Handler (line 244) | func _OpenConfigTelemetry_GetDataEncodings_Handler(srv interface{}, ctx ... FILE: plugins/inputs/kafka_consumer/kafka_consumer.go constant defaultMaxUndeliveredMessages (line 30) | defaultMaxUndeliveredMessages = 1000 constant defaultMaxProcessingTime (line 31) | defaultMaxProcessingTime = config.Duration(100 * time.Millisecond) constant defaultConsumerGroup (line 32) | defaultConsumerGroup = "telegraf_metrics_consumers" constant reconnectDelay (line 33) | reconnectDelay = 5 * time.Second type KafkaConsumer (line 36) | type KafkaConsumer struct method SampleConfig (line 119) | func (*KafkaConsumer) SampleConfig() string { method Init (line 123) | func (k *KafkaConsumer) Init() error { method SetParser (line 219) | func (k *KafkaConsumer) SetParser(parser telegraf.Parser) { method Start (line 223) | func (k *KafkaConsumer) Start(acc telegraf.Accumulator) error { method Gather (line 302) | func (*KafkaConsumer) Gather(telegraf.Accumulator) error { method Stop (line 306) | func (k *KafkaConsumer) Stop() { method compileTopicRegexps (line 318) | func (k *KafkaConsumer) compileTopicRegexps() error { method refreshTopics (line 334) | func (k *KafkaConsumer) refreshTopics() error { method create (line 396) | func (k *KafkaConsumer) create() error { method startErrorAdder (line 407) | func (k *KafkaConsumer) startErrorAdder(acc telegraf.Accumulator) { type consumerGroupHandler (line 73) | type consumerGroupHandler struct method Setup (line 429) | func (h *consumerGroupHandler) Setup(sarama.ConsumerGroupSession) error { method ConsumeClaim (line 444) | func (h *consumerGroupHandler) ConsumeClaim(session sarama.ConsumerGro... method Cleanup (line 469) | func (h *consumerGroupHandler) Cleanup(sarama.ConsumerGroupSession) er... method run (line 476) | func (h *consumerGroupHandler) run(ctx context.Context) { method onDelivery (line 487) | func (h *consumerGroupHandler) onDelivery(track telegraf.DeliveryInfo) { method reserve (line 506) | func (h *consumerGroupHandler) reserve(ctx context.Context) error { method release (line 515) | func (h *consumerGroupHandler) release() { method handle (line 520) | func (h *consumerGroupHandler) handle(session sarama.ConsumerGroupSess... type message (line 93) | type message struct type empty (line 99) | type empty struct type semaphore (line 100) | type semaphore type consumerGroup (line 103) | type consumerGroup interface type consumerGroupCreator (line 109) | type consumerGroupCreator interface type saramaCreator (line 113) | type saramaCreator struct method create (line 115) | func (*saramaCreator) create(brokers []string, group string, cfg *sara... function newConsumerGroupHandler (line 417) | func newConsumerGroupHandler(acc telegraf.Accumulator, maxUndelivered in... function init (line 587) | func init() { FILE: plugins/inputs/kafka_consumer/kafka_consumer_test.go type fakeConsumerGroup (line 31) | type fakeConsumerGroup struct method Consume (line 40) | func (g *fakeConsumerGroup) Consume(_ context.Context, _ []string, han... method Errors (line 45) | func (g *fakeConsumerGroup) Errors() <-chan error { method Close (line 49) | func (g *fakeConsumerGroup) Close() error { type fakeCreator (line 54) | type fakeCreator struct method create (line 58) | func (c *fakeCreator) create(brokers []string, group string, cfg *sara... function TestInit (line 65) | func TestInit(t *testing.T) { function TestStartStop (line 224) | func TestStartStop(t *testing.T) { type FakeConsumerGroupSession (line 239) | type FakeConsumerGroupSession struct method Claims (line 243) | func (*FakeConsumerGroupSession) Claims() map[string][]int32 { method MemberID (line 247) | func (*FakeConsumerGroupSession) MemberID() string { method GenerationID (line 251) | func (*FakeConsumerGroupSession) GenerationID() int32 { method MarkOffset (line 255) | func (*FakeConsumerGroupSession) MarkOffset(string, int32, int64, stri... method ResetOffset (line 259) | func (*FakeConsumerGroupSession) ResetOffset(string, int32, int64, str... method MarkMessage (line 263) | func (*FakeConsumerGroupSession) MarkMessage(*sarama.ConsumerMessage, ... method Context (line 266) | func (s *FakeConsumerGroupSession) Context() context.Context { method Commit (line 270) | func (*FakeConsumerGroupSession) Commit() { type FakeConsumerGroupClaim (line 273) | type FakeConsumerGroupClaim struct method Topic (line 277) | func (*FakeConsumerGroupClaim) Topic() string { method Partition (line 281) | func (*FakeConsumerGroupClaim) Partition() int32 { method InitialOffset (line 285) | func (*FakeConsumerGroupClaim) InitialOffset() int64 { method HighWaterMarkOffset (line 289) | func (*FakeConsumerGroupClaim) HighWaterMarkOffset() int64 { method Messages (line 293) | func (c *FakeConsumerGroupClaim) Messages() <-chan *sarama.ConsumerMes... function TestConsumerGroupHandlerLifecycle (line 297) | func TestConsumerGroupHandlerLifecycle(t *testing.T) { function TestConsumerGroupHandlerConsumeClaim (line 331) | func TestConsumerGroupHandlerConsumeClaim(t *testing.T) { function TestConsumerGroupHandlerHandle (line 388) | func TestConsumerGroupHandlerHandle(t *testing.T) { function TestExponentialBackoff (line 480) | func TestExponentialBackoff(t *testing.T) { function TestExponentialBackoffDefault (line 543) | func TestExponentialBackoffDefault(t *testing.T) { function TestKafkaRoundTripIntegration (line 568) | func TestKafkaRoundTripIntegration(t *testing.T) { function TestKafkaTimestampSourceIntegration (line 646) | func TestKafkaTimestampSourceIntegration(t *testing.T) { function TestStartupErrorBehaviorErrorIntegration (line 720) | func TestStartupErrorBehaviorErrorIntegration(t *testing.T) { function TestStartupErrorBehaviorIgnoreIntegration (line 773) | func TestStartupErrorBehaviorIgnoreIntegration(t *testing.T) { function TestStartupErrorBehaviorRetryIntegration (line 832) | func TestStartupErrorBehaviorRetryIntegration(t *testing.T) { FILE: plugins/inputs/kapacitor/kapacitor.go constant defaultURL (line 22) | defaultURL = "http://localhost:9092/kapacitor/v1/debug/vars" type Kapacitor (line 25) | type Kapacitor struct method SampleConfig (line 33) | func (*Kapacitor) SampleConfig() string { method Gather (line 37) | func (k *Kapacitor) Gather(acc telegraf.Accumulator) error { method createHTTPClient (line 61) | func (k *Kapacitor) createHTTPClient() (*http.Client, error) { method gatherURL (line 135) | func (k *Kapacitor) gatherURL( type object (line 77) | type object struct type memstats (line 83) | type memstats struct type stats (line 112) | type stats struct function init (line 233) | func init() { FILE: plugins/inputs/kapacitor/kapacitor_test.go function TestKapacitor (line 15) | func TestKapacitor(t *testing.T) { function TestMissingStats (line 84) | func TestMissingStats(t *testing.T) { function TestErrorHandling (line 105) | func TestErrorHandling(t *testing.T) { function TestErrorHandling404 (line 129) | func TestErrorHandling404(t *testing.T) { FILE: plugins/inputs/kernel/kernel.go type Kernel (line 32) | type Kernel struct method SampleConfig (line 43) | func (*Kernel) SampleConfig() string { method Init (line 47) | func (k *Kernel) Init() error { method Gather (line 70) | func (k *Kernel) Gather(acc telegraf.Accumulator) error { function getProcValueBytes (line 169) | func getProcValueBytes(path string) ([]byte, error) { function getProcValueInt (line 184) | func getProcValueInt(path string) (int64, error) { function init (line 198) | func init() { FILE: plugins/inputs/kernel/kernel_notlinux.go type Kernel (line 16) | type Kernel struct method SampleConfig (line 20) | func (*Kernel) SampleConfig() string { return sampleConfig } method Init (line 22) | func (k *Kernel) Init() error { method Gather (line 27) | func (*Kernel) Gather(_ telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/kernel/kernel_test.go function TestGetProcValueInt (line 16) | func TestGetProcValueInt(t *testing.T) { function TestGetProcValueByte (line 22) | func TestGetProcValueByte(t *testing.T) { function TestFullProcFile (line 28) | func TestFullProcFile(t *testing.T) { function TestPartialProcFile (line 57) | func TestPartialProcFile(t *testing.T) { function TestInvalidProcFile1 (line 77) | func TestInvalidProcFile1(t *testing.T) { function TestInvalidProcFile2 (line 90) | func TestInvalidProcFile2(t *testing.T) { function TestNoProcFile (line 102) | func TestNoProcFile(t *testing.T) { function TestInvalidCollectOption (line 113) | func TestInvalidCollectOption(t *testing.T) { function TestKsmEnabledValidKsmDirectory (line 126) | func TestKsmEnabledValidKsmDirectory(t *testing.T) { function TestKSMEnabledMissingFile (line 173) | func TestKSMEnabledMissingFile(t *testing.T) { function TestKSMEnabledWrongDir (line 187) | func TestKSMEnabledWrongDir(t *testing.T) { function TestKSMDisabledNoKSMTags (line 196) | func TestKSMDisabledNoKSMTags(t *testing.T) { FILE: plugins/inputs/kernel/psi.go method gatherPressure (line 15) | func (k *Kernel) gatherPressure(acc telegraf.Accumulator) error { FILE: plugins/inputs/kernel/psi_test.go function TestPSIEnabledWrongDir (line 16) | func TestPSIEnabledWrongDir(t *testing.T) { function TestPSIStats (line 25) | func TestPSIStats(t *testing.T) { FILE: plugins/inputs/kernel_vmstat/kernel_vmstat.go type KernelVmstat (line 20) | type KernelVmstat struct method SampleConfig (line 24) | func (*KernelVmstat) SampleConfig() string { method Gather (line 28) | func (k *KernelVmstat) Gather(acc telegraf.Accumulator) error { method getProcVmstat (line 56) | func (k *KernelVmstat) getProcVmstat() ([]byte, error) { function init (line 71) | func init() { FILE: plugins/inputs/kernel_vmstat/kernel_vmstat_notlinux.go type KernelVmstat (line 16) | type KernelVmstat struct method SampleConfig (line 20) | func (*KernelVmstat) SampleConfig() string { return sampleConfig } method Init (line 22) | func (k *KernelVmstat) Init() error { method Gather (line 27) | func (*KernelVmstat) Gather(_ telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/kernel_vmstat/kernel_vmstat_test.go function TestFullVmStatProcFile (line 14) | func TestFullVmStatProcFile(t *testing.T) { function TestPartialVmStatProcFile (line 121) | func TestPartialVmStatProcFile(t *testing.T) { function TestInvalidVmStatProcFile1 (line 151) | func TestInvalidVmStatProcFile1(t *testing.T) { function TestNoVmStatProcFile (line 165) | func TestNoVmStatProcFile(t *testing.T) { constant vmStatFileFull (line 179) | vmStatFileFull = `nr_free_pages 78730 constant vmStatFilePartial (line 271) | vmStatFilePartial = `unevictable_pgs_culled 1531 constant vmStatFileInvalid (line 286) | vmStatFileInvalid = `unevictable_pgs_culled 1531 function makeFakeVMStatFile (line 300) | func makeFakeVMStatFile(t *testing.T, content []byte) string { FILE: plugins/inputs/kibana/kibana.go constant statusPath (line 25) | statusPath = "/api/status" type Kibana (line 27) | type Kibana struct method SampleConfig (line 103) | func (*Kibana) SampleConfig() string { method Start (line 107) | func (*Kibana) Start(telegraf.Accumulator) error { method Gather (line 111) | func (k *Kibana) Gather(acc telegraf.Accumulator) error { method Stop (line 138) | func (k *Kibana) Stop() { method createHTTPClient (line 144) | func (k *Kibana) createHTTPClient() (*http.Client, error) { method gatherKibanaStatus (line 149) | func (k *Kibana) gatherKibanaStatus(baseURL string, acc telegraf.Accum... method gatherJSONData (line 231) | func (k *Kibana) gatherJSONData(url string, v interface{}) (host strin... type kibanaStatus (line 38) | type kibanaStatus struct type version (line 45) | type version struct type status (line 52) | type status struct type overallStatus (line 57) | type overallStatus struct type metrics (line 64) | type metrics struct type responseTimes (line 73) | type responseTimes struct type process (line 78) | type process struct type requests (line 84) | type requests struct type mem (line 88) | type mem struct type memory (line 93) | type memory struct type heap (line 97) | type heap struct function getStatusValue (line 205) | func getStatusValue(overall overallStatus) string { function mapKibana8xStatus (line 218) | func mapKibana8xStatus(level string) string { function mapHealthStatusToCode (line 262) | func mapHealthStatusToCode(s string) int { function newKibana (line 274) | func newKibana() *Kibana { function init (line 282) | func init() { FILE: plugins/inputs/kibana/kibana_test.go function defaulttags63 (line 12) | func defaulttags63() map[string]string { function defaulttags65 (line 21) | func defaulttags65() map[string]string { function defaulttags815 (line 30) | func defaulttags815() map[string]string { function defaulttags815Degraded (line 39) | func defaulttags815Degraded() map[string]string { function defaulttags815Unavailable (line 48) | func defaulttags815Unavailable() map[string]string { type transportMock (line 57) | type transportMock struct method RoundTrip (line 69) | func (t *transportMock) RoundTrip(r *http.Request) (*http.Response, er... function newTransportMock (line 62) | func newTransportMock(statusCode int, body string) http.RoundTripper { function checkKibanaStatusResult (line 80) | func checkKibanaStatusResult(version, statusLevel string, t *testing.T, ... function TestGather (line 103) | func TestGather(t *testing.T) { function TestGatherErrors (line 149) | func TestGatherErrors(t *testing.T) { function TestGatherInvalidJSON (line 187) | func TestGatherInvalidJSON(t *testing.T) { function TestStatusMapping (line 201) | func TestStatusMapping(t *testing.T) { function TestKibana8xStatusMapping (line 223) | func TestKibana8xStatusMapping(t *testing.T) { function TestGetStatusValue (line 245) | func TestGetStatusValue(t *testing.T) { function newKibanahWithClient (line 303) | func newKibanahWithClient() *Kibana { FILE: plugins/inputs/kibana/testdata_test6_3.go constant kibanastatusresponse63 (line 3) | kibanastatusresponse63 = ` FILE: plugins/inputs/kibana/testdata_test6_5.go constant kibanastatusresponse65 (line 3) | kibanastatusresponse65 = ` FILE: plugins/inputs/kibana/testdata_test8_15.go constant kibanastatusresponse815 (line 4) | kibanastatusresponse815 = ` constant kibanastatusresponse815Degraded (line 86) | kibanastatusresponse815Degraded = ` constant kibanastatusresponse815Unavailable (line 128) | kibanastatusresponse815Unavailable = ` FILE: plugins/inputs/kinesis_consumer/consumer.go type recordHandler (line 17) | type recordHandler type shardConsumer (line 19) | type shardConsumer struct method consume (line 30) | func (c *shardConsumer) consume(ctx context.Context, shard string) ([]... method iterator (line 97) | func (c *shardConsumer) iterator(ctx context.Context) (*string, error) { type consumer (line 117) | type consumer struct method init (line 138) | func (c *consumer) init() error { method start (line 156) | func (c *consumer) start(ctx context.Context) { method updateShardConsumers (line 185) | func (c *consumer) updateShardConsumers(ctx context.Context) error { method startShardConsumer (line 312) | func (c *consumer) startShardConsumer(ctx context.Context, id, seqnr s... method stop (line 370) | func (c *consumer) stop() { FILE: plugins/inputs/kinesis_consumer/encoding.go type decodingFunc (line 11) | type decodingFunc function processGzip (line 13) | func processGzip(data []byte) ([]byte, error) { function processZlib (line 22) | func processZlib(data []byte) ([]byte, error) { function processNoOp (line 31) | func processNoOp(data []byte) ([]byte, error) { function getDecodingFunc (line 35) | func getDecodingFunc(encoding string) (decodingFunc, error) { FILE: plugins/inputs/kinesis_consumer/kinesis_consumer.go type KinesisConsumer (line 27) | type KinesisConsumer struct method SampleConfig (line 62) | func (*KinesisConsumer) SampleConfig() string { method SetParser (line 66) | func (k *KinesisConsumer) SetParser(parser telegraf.Parser) { method Init (line 70) | func (k *KinesisConsumer) Init() error { method Start (line 122) | func (k *KinesisConsumer) Start(acc telegraf.Accumulator) error { method Gather (line 193) | func (*KinesisConsumer) Gather(telegraf.Accumulator) error { method Stop (line 197) | func (k *KinesisConsumer) Stop() { method onMessage (line 208) | func (k *KinesisConsumer) onMessage(acc telegraf.TrackingAccumulator, ... method onDelivery (line 236) | func (k *KinesisConsumer) onDelivery(ctx context.Context) { method storeDelivered (line 253) | func (k *KinesisConsumer) storeDelivered(id telegraf.TrackingID) { type dynamoDB (line 56) | type dynamoDB struct function init (line 271) | func init() { FILE: plugins/inputs/kinesis_consumer/kinesis_consumer_test.go function TestInvalidCoding (line 16) | func TestInvalidCoding(t *testing.T) { function TestOnMessage (line 24) | func TestOnMessage(t *testing.T) { FILE: plugins/inputs/kinesis_consumer/logging.go type telegrafLoggerWrapper (line 9) | type telegrafLoggerWrapper struct method Log (line 14) | func (t *telegrafLoggerWrapper) Log(args ...interface{}) { method Logf (line 19) | func (t *telegrafLoggerWrapper) Logf(classification logging.Classifica... FILE: plugins/inputs/kinesis_consumer/store.go type iterator (line 20) | type iterator struct type store (line 27) | type store struct method run (line 56) | func (s *store) run(ctx context.Context) error { method stop (line 89) | func (s *store) stop() { method write (line 98) | func (s *store) write(ctx context.Context) { method set (line 127) | func (s *store) set(stream, shard, seqnr string) { method get (line 139) | func (s *store) get(ctx context.Context, stream, shard string) (string... function newStore (line 42) | func newStore(app, table string, interval time.Duration, log telegraf.Lo... FILE: plugins/inputs/knx_listener/knx_dummy_interface.go type knxDummyInterface (line 7) | type knxDummyInterface struct method Send (line 19) | func (di *knxDummyInterface) Send(event knx.GroupEvent) { method Inbound (line 24) | func (di *knxDummyInterface) Inbound() <-chan knx.GroupEvent { method Close (line 29) | func (di *knxDummyInterface) Close() { function newDummyInterface (line 11) | func newDummyInterface() knxDummyInterface { FILE: plugins/inputs/knx_listener/knx_listener.go type KNXListener (line 22) | type KNXListener struct method SampleConfig (line 54) | func (*KNXListener) SampleConfig() string { method Init (line 58) | func (kl *KNXListener) Init() error { method Start (line 83) | func (kl *KNXListener) Start(acc telegraf.Accumulator) error { method Gather (line 130) | func (kl *KNXListener) Gather(acc telegraf.Accumulator) error { method Stop (line 142) | func (kl *KNXListener) Stop() { method listen (line 149) | func (kl *KNXListener) listen(acc telegraf.Accumulator) { type measurement (line 36) | type measurement struct type addressTarget (line 43) | type addressTarget struct type knxInterface (line 49) | type knxInterface interface function init (line 211) | func init() { FILE: plugins/inputs/knx_listener/knx_listener_test.go constant epsilon (line 17) | epsilon = 1e-3 function setValue (line 19) | func setValue(data dpt.DatapointValue, value interface{}) error { type message (line 41) | type message struct function produceKnxEvent (line 47) | func produceKnxEvent(t *testing.T, address, datapoint string, value inte... function TestRegularReceives_DPT (line 63) | func TestRegularReceives_DPT(t *testing.T) { function TestRegularReceives_MultipleMessages (line 167) | func TestRegularReceives_MultipleMessages(t *testing.T) { function TestReconnect (line 220) | func TestReconnect(t *testing.T) { FILE: plugins/inputs/kube_inventory/certificate.go function collectSecrets (line 15) | func collectSecrets(ctx context.Context, acc telegraf.Accumulator, ki *K... function getFields (line 26) | func getFields(cert *x509.Certificate, now time.Time) map[string]interfa... function getTags (line 42) | func getTags(cert *x509.Certificate) map[string]string { function gatherCertificates (line 62) | func gatherCertificates(r corev1.Secret, acc telegraf.Accumulator) { FILE: plugins/inputs/kube_inventory/client.go type client (line 21) | type client struct method getDaemonSets (line 82) | func (c *client) getDaemonSets(ctx context.Context) (*appsv1.DaemonSet... method getDeployments (line 88) | func (c *client) getDeployments(ctx context.Context) (*appsv1.Deployme... method getEndpoints (line 94) | func (c *client) getEndpoints(ctx context.Context) (*discoveryv1.Endpo... method getIngress (line 100) | func (c *client) getIngress(ctx context.Context) (*netv1.IngressList, ... method getNodes (line 106) | func (c *client) getNodes(ctx context.Context, name string) (*corev1.N... method getPersistentVolumes (line 116) | func (c *client) getPersistentVolumes(ctx context.Context) (*corev1.Pe... method getPersistentVolumeClaims (line 122) | func (c *client) getPersistentVolumeClaims(ctx context.Context) (*core... method getPods (line 128) | func (c *client) getPods(ctx context.Context, nodeName string) (*corev... method getServices (line 139) | func (c *client) getServices(ctx context.Context) (*corev1.ServiceList... method getStatefulSets (line 145) | func (c *client) getStatefulSets(ctx context.Context) (*appsv1.Statefu... method getResourceQuotas (line 151) | func (c *client) getResourceQuotas(ctx context.Context) (*corev1.Resou... method getTLSSecrets (line 157) | func (c *client) getTLSSecrets(ctx context.Context) (*corev1.SecretLis... function newClient (line 27) | func newClient(baseURL, namespace, bearerTokenFile string, timeout time.... function newHTTPClient (line 66) | func newHTTPClient(tlsConfig tls.ClientConfig, bearerTokenFile string, r... FILE: plugins/inputs/kube_inventory/client_test.go type mockHandler (line 12) | type mockHandler struct function toPtr (line 16) | func toPtr[T any](v T) *T { function TestNewClient (line 20) | func TestNewClient(t *testing.T) { FILE: plugins/inputs/kube_inventory/daemonset.go function collectDaemonSets (line 11) | func collectDaemonSets(ctx context.Context, acc telegraf.Accumulator, ki... method gatherDaemonSet (line 22) | func (ki *KubernetesInventory) gatherDaemonSet(d *apps.DaemonSet, acc te... FILE: plugins/inputs/kube_inventory/daemonset_test.go function TestDaemonSet (line 16) | func TestDaemonSet(t *testing.T) { function TestDaemonSetSelectorFilter (line 126) | func TestDaemonSetSelectorFilter(t *testing.T) { FILE: plugins/inputs/kube_inventory/deployment.go function collectDeployments (line 11) | func collectDeployments(ctx context.Context, acc telegraf.Accumulator, k... method gatherDeployment (line 22) | func (ki *KubernetesInventory) gatherDeployment(d *v1.Deployment, acc te... FILE: plugins/inputs/kube_inventory/deployment_test.go function TestDeployment (line 17) | func TestDeployment(t *testing.T) { function TestDeploymentSelectorFilter (line 131) | func TestDeploymentSelectorFilter(t *testing.T) { FILE: plugins/inputs/kube_inventory/endpoint.go function collectEndpoints (line 12) | func collectEndpoints(ctx context.Context, acc telegraf.Accumulator, ki ... function gatherEndpoint (line 23) | func gatherEndpoint(e discoveryv1.EndpointSlice, acc telegraf.Accumulato... FILE: plugins/inputs/kube_inventory/endpoint_test.go function TestEndpoint (line 16) | func TestEndpoint(t *testing.T) { FILE: plugins/inputs/kube_inventory/ingress.go function collectIngress (line 11) | func collectIngress(ctx context.Context, acc telegraf.Accumulator, ki *K... function gatherIngress (line 22) | func gatherIngress(i netv1.Ingress, acc telegraf.Accumulator) { FILE: plugins/inputs/kube_inventory/ingress_test.go function TestIngress (line 15) | func TestIngress(t *testing.T) { FILE: plugins/inputs/kube_inventory/kube_inventory.go constant daemonSetMeasurement (line 42) | daemonSetMeasurement = "kubernetes_daemonset" constant deploymentMeasurement (line 43) | deploymentMeasurement = "kubernetes_deployment" constant endpointMeasurement (line 44) | endpointMeasurement = "kubernetes_endpoint" constant ingressMeasurement (line 45) | ingressMeasurement = "kubernetes_ingress" constant nodeMeasurement (line 46) | nodeMeasurement = "kubernetes_node" constant persistentVolumeMeasurement (line 47) | persistentVolumeMeasurement = "kubernetes_persistentvolume" constant persistentVolumeClaimMeasurement (line 48) | persistentVolumeClaimMeasurement = "kubernetes_persistentvolumeclaim" constant podContainerMeasurement (line 49) | podContainerMeasurement = "kubernetes_pod_container" constant serviceMeasurement (line 50) | serviceMeasurement = "kubernetes_service" constant statefulSetMeasurement (line 51) | statefulSetMeasurement = "kubernetes_statefulset" constant resourcequotaMeasurement (line 52) | resourcequotaMeasurement = "kubernetes_resourcequota" constant certificateMeasurement (line 53) | certificateMeasurement = "kubernetes_certificate" constant defaultServiceAccountPath (line 55) | defaultServiceAccountPath = "/var/run/secrets/kubernetes.io/serviceaccou... type KubernetesInventory (line 58) | type KubernetesInventory struct method SampleConfig (line 81) | func (*KubernetesInventory) SampleConfig() string { method Init (line 85) | func (ki *KubernetesInventory) Init() error { method Gather (line 111) | func (ki *KubernetesInventory) Gather(acc telegraf.Accumulator) (err e... method convertQuantity (line 148) | func (ki *KubernetesInventory) convertQuantity(s string, m float64) in... method queryPodsFromKubelet (line 165) | func (ki *KubernetesInventory) queryPodsFromKubelet(url string, v inte... method createSelectorFilters (line 188) | func (ki *KubernetesInventory) createSelectorFilters() error { function atoi (line 140) | func atoi(s string) int64 { function init (line 197) | func init() { FILE: plugins/inputs/kube_inventory/node.go function collectNodes (line 11) | func collectNodes(ctx context.Context, acc telegraf.Accumulator, ki *Kub... function gatherNodeCount (line 25) | func gatherNodeCount(count int, acc telegraf.Accumulator) { method gatherNode (line 32) | func (ki *KubernetesInventory) gatherNode(n *corev1.Node, acc telegraf.A... FILE: plugins/inputs/kube_inventory/node_test.go function TestNode (line 16) | func TestNode(t *testing.T) { FILE: plugins/inputs/kube_inventory/persistentvolume.go function collectPersistentVolumes (line 12) | func collectPersistentVolumes(ctx context.Context, acc telegraf.Accumula... function gatherPersistentVolume (line 23) | func gatherPersistentVolume(pv *corev1.PersistentVolume, acc telegraf.Ac... FILE: plugins/inputs/kube_inventory/persistentvolume_test.go function TestPersistentVolume (line 15) | func TestPersistentVolume(t *testing.T) { FILE: plugins/inputs/kube_inventory/persistentvolumeclaim.go function collectPersistentVolumeClaims (line 12) | func collectPersistentVolumeClaims(ctx context.Context, acc telegraf.Acc... method gatherPersistentVolumeClaim (line 23) | func (ki *KubernetesInventory) gatherPersistentVolumeClaim(pvc corev1.Pe... FILE: plugins/inputs/kube_inventory/persistentvolumeclaim_test.go function TestPersistentVolumeClaim (line 16) | func TestPersistentVolumeClaim(t *testing.T) { function TestPersistentVolumeClaimSelectorFilter (line 213) | func TestPersistentVolumeClaimSelectorFilter(t *testing.T) { FILE: plugins/inputs/kube_inventory/pod.go function collectPods (line 12) | func collectPods(ctx context.Context, acc telegraf.Accumulator, ki *Kube... method gatherPod (line 32) | func (ki *KubernetesInventory) gatherPod(p *corev1.Pod, acc telegraf.Acc... method gatherPodContainer (line 52) | func (ki *KubernetesInventory) gatherPodContainer(p *corev1.Pod, cs core... FILE: plugins/inputs/kube_inventory/pod_test.go function TestPod (line 17) | func TestPod(t *testing.T) { function TestPodSelectorFilter (line 465) | func TestPodSelectorFilter(t *testing.T) { function TestPodPendingContainers (line 695) | func TestPodPendingContainers(t *testing.T) { FILE: plugins/inputs/kube_inventory/resourcequotas.go function collectResourceQuotas (line 12) | func collectResourceQuotas(ctx context.Context, acc telegraf.Accumulator... method gatherResourceQuota (line 23) | func (ki *KubernetesInventory) gatherResourceQuota(r corev1.ResourceQuot... FILE: plugins/inputs/kube_inventory/resourcequotas_test.go function TestResourceQuota (line 16) | func TestResourceQuota(t *testing.T) { FILE: plugins/inputs/kube_inventory/service.go function collectServices (line 11) | func collectServices(ctx context.Context, acc telegraf.Accumulator, ki *... method gatherService (line 22) | func (ki *KubernetesInventory) gatherService(s *corev1.Service, acc tele... FILE: plugins/inputs/kube_inventory/service_test.go function TestService (line 17) | func TestService(t *testing.T) { function TestServiceSelectorFilter (line 129) | func TestServiceSelectorFilter(t *testing.T) { FILE: plugins/inputs/kube_inventory/statefulset.go function collectStatefulSets (line 11) | func collectStatefulSets(ctx context.Context, acc telegraf.Accumulator, ... method gatherStatefulSet (line 22) | func (ki *KubernetesInventory) gatherStatefulSet(s *v1.StatefulSet, acc ... FILE: plugins/inputs/kube_inventory/statefulset_test.go function TestStatefulSet (line 16) | func TestStatefulSet(t *testing.T) { function TestStatefulSetSelectorFilter (line 228) | func TestStatefulSetSelectorFilter(t *testing.T) { FILE: plugins/inputs/kubernetes/kubernetes.go constant defaultServiceAccountPath (line 31) | defaultServiceAccountPath = "/var/run/secrets/kubernetes.io/serviceaccou... type Kubernetes (line 35) | type Kubernetes struct method SampleConfig (line 50) | func (*Kubernetes) SampleConfig() string { method Init (line 54) | func (k *Kubernetes) Init() error { method Gather (line 77) | func (k *Kubernetes) Gather(acc telegraf.Accumulator) error { method gatherSummary (line 147) | func (k *Kubernetes) gatherSummary(baseURL string, acc telegraf.Accumu... method gatherPodInfo (line 212) | func (k *Kubernetes) gatherPodInfo(baseURL string) ([]item, error) { method loadJSON (line 223) | func (k *Kubernetes) loadJSON(url string, v interface{}) error { function getNodeURLs (line 101) | func getNodeURLs(log telegraf.Logger) ([]string, error) { function getNodeAddress (line 132) | func getNodeAddress(addresses []v1.NodeAddress) string { function buildSystemContainerMetrics (line 164) | func buildSystemContainerMetrics(summaryMetrics *summaryMetrics, acc tel... function buildNodeMetrics (line 186) | func buildNodeMetrics(summaryMetrics *summaryMetrics, acc telegraf.Accum... function buildPodMetrics (line 277) | func buildPodMetrics(summaryMetrics *summaryMetrics, podInfo []item, lab... function init (line 364) | func init() { FILE: plugins/inputs/kubernetes/kubernetes_metrics.go type summaryMetrics (line 6) | type summaryMetrics struct type nodeMetrics (line 12) | type nodeMetrics struct type containerMetrics (line 24) | type containerMetrics struct type runtimeMetrics (line 34) | type runtimeMetrics struct type cpuMetrics (line 39) | type cpuMetrics struct type podMetrics (line 46) | type podMetrics struct type podReference (line 55) | type podReference struct type memoryMetrics (line 61) | type memoryMetrics struct type fileSystemMetrics (line 72) | type fileSystemMetrics struct type networkMetrics (line 79) | type networkMetrics struct type volumeMetrics (line 88) | type volumeMetrics struct FILE: plugins/inputs/kubernetes/kubernetes_pods.go type pods (line 3) | type pods struct type item (line 9) | type item struct type metadata (line 14) | type metadata struct type spec (line 20) | type spec struct type container (line 24) | type container struct FILE: plugins/inputs/kubernetes/kubernetes_test.go function TestKubernetesStats (line 15) | func TestKubernetesStats(t *testing.T) { FILE: plugins/inputs/lanz/lanz.go type Lanz (line 21) | type Lanz struct method SampleConfig (line 27) | func (*Lanz) SampleConfig() string { method Start (line 31) | func (l *Lanz) Start(acc telegraf.Accumulator) error { method Gather (line 61) | func (*Lanz) Gather(telegraf.Accumulator) error { method Stop (line 65) | func (l *Lanz) Stop() { function receive (line 72) | func receive(acc telegraf.Accumulator, in <-chan *pb.LanzRecord, deviceU... function msgToAccumulator (line 85) | func msgToAccumulator(acc telegraf.Accumulator, msg *pb.LanzRecord, devi... function init (line 124) | func init() { FILE: plugins/inputs/lanz/lanz_test.go function TestLanzGeneratesMetrics (line 54) | func TestLanzGeneratesMetrics(t *testing.T) { FILE: plugins/inputs/ldap/389ds.go method new389dsConfig (line 61) | func (l *LDAP) new389dsConfig() []request { method convert389ds (line 81) | func (l *LDAP) convert389ds(result *ldap.SearchResult, ts time.Time) []t... FILE: plugins/inputs/ldap/ldap.go type LDAP (line 24) | type LDAP struct method SampleConfig (line 46) | func (*LDAP) SampleConfig() string { method Init (line 50) | func (l *LDAP) Init() error { method Gather (line 151) | func (l *LDAP) Gather(acc telegraf.Accumulator) error { method connect (line 177) | func (l *LDAP) connect() (*ldap.Conn, error) { type request (line 41) | type request struct function init (line 236) | func init() { FILE: plugins/inputs/ldap/ldap_test.go constant servicePortOpenLDAP (line 20) | servicePortOpenLDAP = "1389" constant servicePortOpenLDAPSecure (line 21) | servicePortOpenLDAPSecure = "1636" constant servicePort389DS (line 23) | servicePort389DS = "3389" constant servicePort389DSSecure (line 24) | servicePort389DSSecure = "3636" function TestMockResult (line 27) | func TestMockResult(t *testing.T) { function TestMockLDAPI (line 68) | func TestMockLDAPI(t *testing.T) { function TestLdapiURLHandling (line 110) | func TestLdapiURLHandling(t *testing.T) { function TestInvalidTLSMode (line 122) | func TestInvalidTLSMode(t *testing.T) { function TestNoConnection (line 129) | func TestNoConnection(t *testing.T) { function TestOpenLDAPIntegration (line 144) | func TestOpenLDAPIntegration(t *testing.T) { function TestOpenLDAPReverseDNIntegration (line 235) | func TestOpenLDAPReverseDNIntegration(t *testing.T) { function TestOpenLDAPStartTLSIntegration (line 327) | func TestOpenLDAPStartTLSIntegration(t *testing.T) { function TestOpenLDAPLDAPSIntegration (line 435) | func TestOpenLDAPLDAPSIntegration(t *testing.T) { function Test389dsIntegration (line 542) | func Test389dsIntegration(t *testing.T) { FILE: plugins/inputs/ldap/openldap.go method newOpenLDAPConfig (line 27) | func (l *LDAP) newOpenLDAPConfig() []request { method convertOpenLDAP (line 42) | func (l *LDAP) convertOpenLDAP(result *ldap.SearchResult, ts time.Time) ... function openLDAPAttrConvertDN (line 62) | func openLDAPAttrConvertDN(dn string, reverse bool) string { FILE: plugins/inputs/leofs/leofs.go constant oid (line 24) | oid = ".1.3.6.1.4.1.35450" constant defaultEndpoint (line 26) | defaultEndpoint = "127.0.0.1:4020" type serverType (line 29) | type serverType constant serverTypeManagerMaster (line 32) | serverTypeManagerMaster serverType = iota constant serverTypeManagerSlave (line 33) | serverTypeManagerSlave constant serverTypeStorage (line 34) | serverTypeStorage constant serverTypeGateway (line 35) | serverTypeGateway type LeoFS (line 38) | type LeoFS struct method SampleConfig (line 156) | func (*LeoFS) SampleConfig() string { method Gather (line 160) | func (l *LeoFS) Gather(acc telegraf.Accumulator) error { function gatherServer (line 195) | func gatherServer(endpoint string, serverType serverType, acc telegraf.A... function retrieveTokenAfterColon (line 237) | func retrieveTokenAfterColon(line string) (string, error) { function init (line 245) | func init() { FILE: plugins/inputs/leofs/leofs_test.go function testMain (line 128) | func testMain(t *testing.T, code, endpoint string, serverType serverType) { function TestLeoFSManagerMasterMetricsIntegration (line 165) | func TestLeoFSManagerMasterMetricsIntegration(t *testing.T) { function TestLeoFSManagerSlaveMetricsIntegration (line 173) | func TestLeoFSManagerSlaveMetricsIntegration(t *testing.T) { function TestLeoFSStorageMetricsIntegration (line 181) | func TestLeoFSStorageMetricsIntegration(t *testing.T) { function TestLeoFSGatewayMetricsIntegration (line 189) | func TestLeoFSGatewayMetricsIntegration(t *testing.T) { FILE: plugins/inputs/libvirt/libvirt.go constant domainStatsState (line 22) | domainStatsState uint32 = 1 constant domainStatsCPUTotal (line 23) | domainStatsCPUTotal uint32 = 2 constant domainStatsBalloon (line 24) | domainStatsBalloon uint32 = 4 constant domainStatsVCPU (line 25) | domainStatsVCPU uint32 = 8 constant domainStatsInterface (line 26) | domainStatsInterface uint32 = 16 constant domainStatsBlock (line 27) | domainStatsBlock uint32 = 32 constant domainStatsPerf (line 28) | domainStatsPerf uint32 = 64 constant domainStatsIothread (line 29) | domainStatsIothread uint32 = 128 constant domainStatsMemory (line 30) | domainStatsMemory uint32 = 256 constant domainStatsDirtyrate (line 31) | domainStatsDirtyrate uint32 = 512 constant domainStatsAll (line 32) | domainStatsAll uint32 = 1023 constant defaultLibvirtURI (line 33) | defaultLibvirtURI = "qemu:///system" constant pluginName (line 34) | pluginName = "libvirt" type Libvirt (line 37) | type Libvirt struct method SampleConfig (line 50) | func (*Libvirt) SampleConfig() string { method Init (line 54) | func (l *Libvirt) Init() error { method Gather (line 93) | func (l *Libvirt) Gather(acc telegraf.Accumulator) error { method validateLibvirtURI (line 127) | func (l *Libvirt) validateLibvirtURI() error { method calculateMetricNumber (line 139) | func (l *Libvirt) calculateMetricNumber() error { method validateAdditionalStatistics (line 168) | func (l *Libvirt) validateAdditionalStatistics() error { method isThereAnythingToGather (line 183) | func (l *Libvirt) isThereAnythingToGather() bool { method filterDomains (line 197) | func (l *Libvirt) filterDomains(availableDomains []golibvirt.Domain) [... method gatherMetrics (line 212) | func (l *Libvirt) gatherMetrics(domains []golibvirt.Domain, vcpuInfos ... method getVcpuMapping (line 222) | func (l *Libvirt) getVcpuMapping(domains []golibvirt.Domain) (map[stri... method shouldGetCurrentPCPU (line 256) | func (l *Libvirt) shouldGetCurrentPCPU() bool { function handleError (line 187) | func handleError(err error, errMessage string, utils utils) error { function init (line 260) | func init() { FILE: plugins/inputs/libvirt/libvirt_metric_format.go method addMetrics (line 19) | func (l *Libvirt) addMetrics(stats []golibvirt.DomainStatsRecord, vcpuIn... function translateMetrics (line 64) | func translateMetrics(stats []golibvirt.DomainStatsRecord) map[string]ma... function addStateMetrics (line 86) | func addStateMetrics(metrics map[string]golibvirt.TypedParamValue, domai... function addCPUMetrics (line 104) | func addCPUMetrics(metrics map[string]golibvirt.TypedParamValue, domainN... function addBalloonMetrics (line 191) | func addBalloonMetrics(metrics map[string]golibvirt.TypedParamValue, dom... method addVcpuMetrics (line 212) | func (l *Libvirt) addVcpuMetrics(metrics map[string]golibvirt.TypedParam... method getCurrentPCPUForVCPU (line 272) | func (l *Libvirt) getCurrentPCPUForVCPU(vcpuID string, vcpuInfos []vcpuA... function addInterfaceMetrics (line 286) | func addInterfaceMetrics(metrics map[string]golibvirt.TypedParamValue, d... function addPerfMetrics (line 333) | func addPerfMetrics(metrics map[string]golibvirt.TypedParamValue, domain... function addBlockMetrics (line 354) | func addBlockMetrics(metrics map[string]golibvirt.TypedParamValue, domai... function addIothreadMetrics (line 402) | func addIothreadMetrics(metrics map[string]golibvirt.TypedParamValue, do... function addMemoryMetrics (line 449) | func addMemoryMetrics(metrics map[string]golibvirt.TypedParamValue, doma... function addDirtyrateMetrics (line 531) | func addDirtyrateMetrics(metrics map[string]golibvirt.TypedParamValue, d... FILE: plugins/inputs/libvirt/libvirt_test.go function TestLibvirt_Init (line 16) | func TestLibvirt_Init(t *testing.T) { function TestLibvirt_Gather (line 62) | func TestLibvirt_Gather(t *testing.T) { function TestLibvirt_GatherMetrics (line 185) | func TestLibvirt_GatherMetrics(t *testing.T) { function TestLibvirt_validateLibvirtUri (line 238) | func TestLibvirt_validateLibvirtUri(t *testing.T) { function TestLibvirt_calculateMetricNumber (line 269) | func TestLibvirt_calculateMetricNumber(t *testing.T) { function TestLibvirt_filterDomains (line 304) | func TestLibvirt_filterDomains(t *testing.T) { FILE: plugins/inputs/libvirt/libvirt_utils.go type utils (line 11) | type utils interface type utilsImpl (line 20) | type utilsImpl struct method gatherAllDomains (line 31) | func (l *utilsImpl) gatherAllDomains() (domains []golibvirt.Domain, er... method gatherStatsForDomains (line 40) | func (l *utilsImpl) gatherStatsForDomains(domains []golibvirt.Domain, ... method gatherNumberOfPCPUs (line 52) | func (l *utilsImpl) gatherNumberOfPCPUs() (int, error) { method gatherVcpuMapping (line 65) | func (l *utilsImpl) gatherVcpuMapping(domain golibvirt.Domain, pCPUs i... method ensureConnected (line 117) | func (l *utilsImpl) ensureConnected(libvirtURI string) error { method disconnect (line 130) | func (l *utilsImpl) disconnect() error { type vcpuAffinity (line 24) | type vcpuAffinity struct function isConnected (line 135) | func isConnected(driver *golibvirt.Libvirt) bool { FILE: plugins/inputs/libvirt/libvirt_utils_mock.go type mockLibvirtUtils (line 11) | type mockLibvirtUtils struct method disconnect (line 16) | func (_m *mockLibvirtUtils) disconnect() error { method ensureConnected (line 34) | func (_m *mockLibvirtUtils) ensureConnected(libvirtURI string) error { method gatherAllDomains (line 52) | func (_m *mockLibvirtUtils) gatherAllDomains() ([]go_libvirt.Domain, e... method gatherNumberOfPCPUs (line 82) | func (_m *mockLibvirtUtils) gatherNumberOfPCPUs() (int, error) { method gatherStatsForDomains (line 110) | func (_m *mockLibvirtUtils) gatherStatsForDomains(domains []go_libvirt... method gatherVcpuMapping (line 140) | func (_m *mockLibvirtUtils) gatherVcpuMapping(domain go_libvirt.Domain... function newMockLibvirtUtils (line 171) | func newMockLibvirtUtils(t interface { FILE: plugins/inputs/linux_cpu/linux_cpu.go constant defaultHostSys (line 26) | defaultHostSys = "/sys" constant cpufreq (line 27) | cpufreq = "cpufreq" constant thermal (line 28) | thermal = "thermal" type LinuxCPU (line 31) | type LinuxCPU struct method SampleConfig (line 50) | func (*LinuxCPU) SampleConfig() string { method Init (line 54) | func (g *LinuxCPU) Init() error { method Gather (line 76) | func (g *LinuxCPU) Gather(acc telegraf.Accumulator) error { method discoverCpus (line 101) | func (g *LinuxCPU) discoverCpus() ([]cpu, error) { type cpu (line 38) | type cpu struct type prop (line 44) | type prop struct function validatePath (line 175) | func validatePath(propPath string) error { function readUintFromFile (line 188) | func readUintFromFile(propPath string) (uint64, error) { function init (line 207) | func init() { FILE: plugins/inputs/linux_cpu/linux_cpu_nonlinux.go type LinuxCPU (line 15) | type LinuxCPU struct method SampleConfig (line 19) | func (*LinuxCPU) SampleConfig() string { return sampleConfig } method Init (line 21) | func (l *LinuxCPU) Init() error { method Gather (line 26) | func (*LinuxCPU) Gather(_ telegraf.Accumulator) error { return nil } function init (line 28) | func init() { FILE: plugins/inputs/linux_cpu/linux_cpu_test.go function TestNoMetrics (line 14) | func TestNoMetrics(t *testing.T) { function TestNoCPUs (line 19) | func TestNoCPUs(t *testing.T) { function TestNoCPUMetrics (line 30) | func TestNoCPUMetrics(t *testing.T) { function TestGatherCPUFreq (line 43) | func TestGatherCPUFreq(t *testing.T) { function TestGatherThermal (line 91) | func TestGatherThermal(t *testing.T) { function TestGatherPropertyRemoved (line 117) | func TestGatherPropertyRemoved(t *testing.T) { function TestGatherPropertyInvalid (line 153) | func TestGatherPropertyInvalid(t *testing.T) { FILE: plugins/inputs/linux_sysctl_fs/linux_sysctl_fs.go type SysctlFS (line 20) | type SysctlFS struct method SampleConfig (line 24) | func (*SysctlFS) SampleConfig() string { method Gather (line 28) | func (sfs *SysctlFS) Gather(acc telegraf.Accumulator) error { method gatherList (line 54) | func (sfs *SysctlFS) gatherList(file string, fields map[string]interfa... method gatherOne (line 83) | func (sfs *SysctlFS) gatherOne(name string, fields map[string]interfac... function init (line 102) | func init() { FILE: plugins/inputs/linux_sysctl_fs/linux_sysctl_fs_test.go function TestSysctlFSGather (line 12) | func TestSysctlFSGather(t *testing.T) { FILE: plugins/inputs/logql/client.go type client (line 19) | type client struct method init (line 31) | func (c *client) init() error { method ready (line 59) | func (c *client) ready(ctx context.Context) (bool, string, error) { method execute (line 91) | func (c *client) execute(ctx context.Context, u string) (interface{}, ... method close (line 131) | func (c *client) close() { type secretReader (line 138) | type secretReader struct method Fetch (line 144) | func (r *secretReader) Fetch(context.Context) (string, error) { method Description (line 156) | func (r *secretReader) Description() string { method Immutable (line 161) | func (*secretReader) Immutable() bool { FILE: plugins/inputs/logql/logql.go type LogQL (line 22) | type LogQL struct method SampleConfig (line 37) | func (*LogQL) SampleConfig() string { method Init (line 41) | func (l *LogQL) Init() error { method Start (line 85) | func (l *LogQL) Start(telegraf.Accumulator) error { method Stop (line 94) | func (l *LogQL) Stop() { method Gather (line 100) | func (l *LogQL) Gather(acc telegraf.Accumulator) error { function init (line 128) | func init() { FILE: plugins/inputs/logql/logql_test.go function TestInitSuccess (line 24) | func TestInitSuccess(t *testing.T) { function TestInitFail (line 86) | func TestInitFail(t *testing.T) { function TestSigleTenant (line 200) | func TestSigleTenant(t *testing.T) { function TestMultiTenant (line 244) | func TestMultiTenant(t *testing.T) { function TestCases (line 289) | func TestCases(t *testing.T) { FILE: plugins/inputs/logql/query.go type query (line 16) | type query struct method init (line 28) | func (q *query) init(c *client, log telegraf.Logger) error { method convertResult (line 139) | func (q *query) convertResult(acc telegraf.Accumulator, result interfa... type InstantQuery (line 61) | type InstantQuery struct method init (line 65) | func (q *InstantQuery) init(c *client, log telegraf.Logger) error { method execute (line 77) | func (q *InstantQuery) execute(ctx context.Context, acc telegraf.Accum... type RangeQuery (line 89) | type RangeQuery struct method init (line 97) | func (q *RangeQuery) init(c *client, log telegraf.Logger) error { method execute (line 126) | func (q *RangeQuery) execute(ctx context.Context, acc telegraf.Accumul... function isInternal (line 182) | func isInternal(label, _ string) bool { FILE: plugins/inputs/logql/response.go type response (line 10) | type response struct method parse (line 96) | func (r *response) parse() (interface{}, error) { type stream (line 18) | type stream struct type vector (line 23) | type vector struct type matrix (line 28) | type matrix struct type value (line 33) | type value struct method UnmarshalJSON (line 40) | func (v *value) UnmarshalJSON(data []byte) error { type logline (line 69) | type logline struct method UnmarshalJSON (line 76) | func (l *logline) UnmarshalJSON(data []byte) error { FILE: plugins/inputs/logstash/logstash.go constant jvmStatsNode (line 27) | jvmStatsNode = "/_node/stats/jvm" constant processStatsNode (line 28) | processStatsNode = "/_node/stats/process" constant pipelinesStatsNode (line 29) | pipelinesStatsNode = "/_node/stats/pipelines" constant pipelineStatsNode (line 30) | pipelineStatsNode = "/_node/stats/pipeline" type Logstash (line 33) | type Logstash struct method SampleConfig (line 113) | func (*Logstash) SampleConfig() string { method Init (line 117) | func (logstash *Logstash) Init() error { method Start (line 125) | func (*Logstash) Start(telegraf.Accumulator) error { method Gather (line 129) | func (logstash *Logstash) Gather(accumulator telegraf.Accumulator) err... method Stop (line 182) | func (logstash *Logstash) Stop() { method createHTTPClient (line 189) | func (logstash *Logstash) createHTTPClient() (*http.Client, error) { method gatherJSONData (line 195) | func (logstash *Logstash) gatherJSONData(address string, value interfa... method gatherJVMStats (line 234) | func (logstash *Logstash) gatherJVMStats(address string, accumulator t... method gatherProcessStats (line 260) | func (logstash *Logstash) gatherProcessStats(address string, accumulat... method gatherPipelineStats (line 414) | func (logstash *Logstash) gatherPipelineStats(address string, accumula... method gatherPipelinesStats (line 458) | func (logstash *Logstash) gatherPipelinesStats(address string, accumul... type processStats (line 49) | type processStats struct type jvmStats (line 57) | type jvmStats struct type pipelinesStats (line 65) | type pipelinesStats struct type pipelineStats (line 73) | type pipelineStats struct type pipeline (line 81) | type pipeline struct type plugin (line 88) | type plugin struct type pipelinePlugins (line 97) | type pipelinePlugins struct type pipelineQueue (line 103) | type pipelineQueue struct function gatherPluginsStats (line 286) | func gatherPluginsStats(plugins []plugin, pluginType string, tags map[st... function gatherQueueStats (line 368) | func gatherQueueStats(queue pipelineQueue, tags map[string]string, acc t... function newLogstash (line 504) | func newLogstash() *Logstash { function init (line 515) | func init() { FILE: plugins/inputs/logstash/logstash_test.go function Test_Logstash5GatherProcessStats (line 28) | func Test_Logstash5GatherProcessStats(test *testing.T) { function Test_Logstash6GatherProcessStats (line 76) | func Test_Logstash6GatherProcessStats(test *testing.T) { function Test_Logstash5GatherPipelineStats (line 124) | func Test_Logstash5GatherPipelineStats(test *testing.T) { function Test_Logstash6GatherPipelinesStats (line 225) | func Test_Logstash6GatherPipelinesStats(test *testing.T) { function Test_Logstash5GatherJVMStats (line 571) | func Test_Logstash5GatherJVMStats(test *testing.T) { function Test_Logstash6GatherJVMStats (line 638) | func Test_Logstash6GatherJVMStats(test *testing.T) { function Test_Logstash7GatherPipelinesQueueStats (line 705) | func Test_Logstash7GatherPipelinesQueueStats(test *testing.T) { FILE: plugins/inputs/logstash/samples_logstash5.go constant logstash5ProcessJSON (line 3) | logstash5ProcessJSON = ` constant logstash5JvmJSON (line 30) | logstash5JvmJSON = ` constant logstash5PipelineJSON (line 90) | logstash5PipelineJSON = ` FILE: plugins/inputs/logstash/samples_logstash6.go constant logstash6ProcessJSON (line 3) | logstash6ProcessJSON = ` constant logstash6JvmJSON (line 29) | logstash6JvmJSON = ` constant logstash6PipelinesJSON (line 89) | logstash6PipelinesJSON = ` FILE: plugins/inputs/logstash/samples_logstash7.go constant logstash7PipelinesJSON (line 3) | logstash7PipelinesJSON = ` FILE: plugins/inputs/lustre2/lustre2.go type Lustre2 (line 27) | type Lustre2 struct method SampleConfig (line 45) | func (*Lustre2) SampleConfig() string { method Gather (line 49) | func (l *Lustre2) Gather(acc telegraf.Accumulator) error { method getLustreHealth (line 171) | func (l *Lustre2) getLustreHealth() error { method getLustreProcStats (line 212) | func (l *Lustre2) getLustreProcStats(fileglob string, wantedFields []*... method getLustreProcBrwStats (line 305) | func (l *Lustre2) getLustreProcBrwStats(fileglob string, wantedFields ... method getLustreEvictionCount (line 401) | func (l *Lustre2) getLustreEvictionCount(fileglob string) error { type tags (line 41) | type tags struct type mapping (line 440) | type mapping struct function init (line 768) | func init() { FILE: plugins/inputs/lustre2/lustre2_notlinux.go type Lustre2 (line 16) | type Lustre2 struct method SampleConfig (line 20) | func (*Lustre2) SampleConfig() string { return sampleConfig } method Init (line 22) | func (l *Lustre2) Init() error { method Gather (line 27) | func (*Lustre2) Gather(_ telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/lustre2/lustre2_test.go function TestCases (line 19) | func TestCases(t *testing.T) { FILE: plugins/inputs/lvm/lvm.go type LVM (line 25) | type LVM struct method SampleConfig (line 32) | func (*LVM) SampleConfig() string { method Gather (line 36) | func (lvm *LVM) Gather(acc telegraf.Accumulator) error { method gatherPhysicalVolumes (line 48) | func (lvm *LVM) gatherPhysicalVolumes(acc telegraf.Accumulator) error { method gatherVolumeGroups (line 102) | func (lvm *LVM) gatherVolumeGroups(acc telegraf.Accumulator) error { method gatherLogicalVolumes (line 165) | func (lvm *LVM) gatherLogicalVolumes(acc telegraf.Accumulator) error { method runCmd (line 234) | func (lvm *LVM) runCmd(cmd string, args []string) ([]byte, error) { type pvsReport (line 251) | type pvsReport struct type vgsReport (line 264) | type vgsReport struct type lvsReport (line 278) | type lvsReport struct function init (line 291) | func init() { FILE: plugins/inputs/lvm/lvm_test.go function TestGather (line 14) | func TestGather(t *testing.T) { function fakeExecCommand (line 79) | func fakeExecCommand(command string, args ...string) *exec.Cmd { function TestHelperProcess (line 89) | func TestHelperProcess(_ *testing.T) { function TestGatherNoLVM (line 148) | func TestGatherNoLVM(t *testing.T) { function fakeExecCommandNoLVM (line 168) | func fakeExecCommandNoLVM(command string, args ...string) *exec.Cmd { function TestHelperProcessNoLVM (line 178) | func TestHelperProcessNoLVM(_ *testing.T) { FILE: plugins/inputs/mailchimp/chimp_api.go constant reportsEndpoint (line 18) | reportsEndpoint string = "/3.0/reports" constant reportsEndpointCampaign (line 19) | reportsEndpointCampaign string = "/3.0/reports/%s" type chimpAPI (line 24) | type chimpAPI struct method getReports (line 89) | func (a *chimpAPI) getReports(params reportsParams) (reportsResponse, ... method getReport (line 108) | func (a *chimpAPI) getReport(campaignID string) (report, error) { method runChimp (line 127) | func (a *chimpAPI) runChimp(params reportsParams) ([]byte, error) { type reportsParams (line 34) | type reportsParams struct method String (line 41) | func (p *reportsParams) String() string { function newChimpAPI (line 58) | func newChimpAPI(apiKey string, log telegraf.Logger) *chimpAPI { type apiError (line 66) | type apiError struct method Error (line 74) | func (e apiError) Error() string { function chimpErrorCheck (line 78) | func chimpErrorCheck(body []byte) error { type reportsResponse (line 170) | type reportsResponse struct type report (line 175) | type report struct type bounces (line 194) | type bounces struct type forwards (line 200) | type forwards struct type opens (line 205) | type opens struct type clicks (line 212) | type clicks struct type facebookLikes (line 220) | type facebookLikes struct type industryStats (line 226) | type industryStats struct type listStats (line 236) | type listStats struct type timeSeries (line 243) | type timeSeries struct FILE: plugins/inputs/mailchimp/mailchimp.go type MailChimp (line 16) | type MailChimp struct method SampleConfig (line 25) | func (*MailChimp) SampleConfig() string { method Init (line 29) | func (m *MailChimp) Init() error { method Gather (line 35) | func (m *MailChimp) Gather(acc telegraf.Accumulator) error { function gatherReport (line 70) | func gatherReport(acc telegraf.Accumulator, report report, now time.Time) { function init (line 108) | func init() { FILE: plugins/inputs/mailchimp/mailchimp_test.go function TestMailChimpGatherReports (line 15) | func TestMailChimpGatherReports(t *testing.T) { function TestMailChimpGatherReport (line 83) | func TestMailChimpGatherReport(t *testing.T) { function TestMailChimpGatherError (line 152) | func TestMailChimpGatherError(t *testing.T) { FILE: plugins/inputs/marklogic/marklogic.go constant statsPath (line 24) | statsPath = "/manage/v2/hosts/" constant viewFormat (line 25) | viewFormat = "view=status&format=json" type Marklogic (line 28) | type Marklogic struct method SampleConfig (line 90) | func (*Marklogic) SampleConfig() string { method Init (line 94) | func (c *Marklogic) Init() error { method Gather (line 115) | func (c *Marklogic) Gather(accumulator telegraf.Accumulator) error { method fetchAndInsertData (line 143) | func (c *Marklogic) fetchAndInsertData(acc telegraf.Accumulator, addre... method createHTTPClient (line 189) | func (c *Marklogic) createHTTPClient() (*http.Client, error) { method gatherJSONData (line 205) | func (c *Marklogic) gatherJSONData(address string, v interface{}) error { type mlPointInt (line 39) | type mlPointInt struct type mlPointFloat (line 43) | type mlPointFloat struct type mlPointBool (line 47) | type mlPointBool struct type mlHost (line 51) | type mlHost struct function init (line 228) | func init() { FILE: plugins/inputs/marklogic/marklogic_test.go function TestMarklogic (line 15) | func TestMarklogic(t *testing.T) { FILE: plugins/inputs/mavlink/mavlink.go type Mavlink (line 26) | type Mavlink struct method SampleConfig (line 43) | func (*Mavlink) SampleConfig() string { method Init (line 47) | func (m *Mavlink) Init() error { method Start (line 157) | func (m *Mavlink) Start(acc telegraf.Accumulator) error { method Gather (line 209) | func (*Mavlink) Gather(telegraf.Accumulator) error { method Stop (line 213) | func (m *Mavlink) Stop() { method handleFrame (line 219) | func (m *Mavlink) handleFrame(acc telegraf.Accumulator, frm frame.Fram... function init (line 254) | func init() { FILE: plugins/inputs/mavlink/mavlink_test.go function TestParseURL (line 20) | func TestParseURL(t *testing.T) { function TestMavlinkDecoding (line 150) | func TestMavlinkDecoding(t *testing.T) { function TestArduPilotIntegration (line 278) | func TestArduPilotIntegration(t *testing.T) { FILE: plugins/inputs/mcrouter/mcrouter.go type statType (line 25) | type statType constant typeInt (line 28) | typeInt statType = iota constant typeFloat (line 29) | typeFloat statType = iota type Mcrouter (line 107) | type Mcrouter struct method SampleConfig (line 112) | func (*Mcrouter) SampleConfig() string { method Gather (line 116) | func (m *Mcrouter) Gather(acc telegraf.Accumulator) error { function parseAddress (line 138) | func parseAddress(address string) (parsedAddress, protocol string, err e... function gatherServer (line 184) | func gatherServer(ctx context.Context, address string, acc telegraf.Accu... function parseResponse (line 250) | func parseResponse(r *bufio.Scanner) (map[string]string, error) { function init (line 276) | func init() { FILE: plugins/inputs/mcrouter/mcrouter_test.go function TestAddressParsing (line 17) | func TestAddressParsing(t *testing.T) { function TestMcrouterGeneratesMetricsIntegration (line 47) | func TestMcrouterGeneratesMetricsIntegration(t *testing.T) { function TestMcrouterParseMetrics (line 97) | func TestMcrouterParseMetrics(t *testing.T) { FILE: plugins/inputs/mdstat/mdstat.go type Mdstat (line 47) | type Mdstat struct method SampleConfig (line 176) | func (*Mdstat) SampleConfig() string { method Gather (line 180) | func (k *Mdstat) Gather(acc telegraf.Accumulator) error { method getProcMdstat (line 270) | func (k *Mdstat) getProcMdstat() ([]byte, error) { type statusLine (line 51) | type statusLine struct type recoveryLine (line 58) | type recoveryLine struct function evalStatusLine (line 65) | func evalStatusLine(deviceLine, statusLineStr string) (statusLine, error) { function evalRecoveryLine (line 108) | func evalRecoveryLine(recoveryLineStr string) (recoveryLine, error) { function evalComponentDevices (line 159) | func evalComponentDevices(deviceFields []string) string { function init (line 291) | func init() { FILE: plugins/inputs/mdstat/mdstat_notlinux.go type Mdstat (line 16) | type Mdstat struct method SampleConfig (line 20) | func (*Mdstat) SampleConfig() string { return sampleConfig } method Init (line 22) | func (m *Mdstat) Init() error { method Gather (line 27) | func (*Mdstat) Gather(telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/mdstat/mdstat_test.go function TestFullMdstatProcFile (line 14) | func TestFullMdstatProcFile(t *testing.T) { function TestMdstatSyncStart (line 39) | func TestMdstatSyncStart(t *testing.T) { function TestFailedDiskMdStatProcFile1 (line 64) | func TestFailedDiskMdStatProcFile1(t *testing.T) { function TestEmptyMdStatProcFile1 (line 91) | func TestEmptyMdStatProcFile1(t *testing.T) { function TestInvalidMdStatProcFile1 (line 104) | func TestInvalidMdStatProcFile1(t *testing.T) { constant mdStatFileFull (line 117) | mdStatFileFull = ` constant mdStatSyncStart (line 134) | mdStatSyncStart = ` constant mdStatFileFailedDisk (line 151) | mdStatFileFailedDisk = ` constant mdStatFileEmpty (line 160) | mdStatFileEmpty = ` constant mdStatFileInvalid (line 165) | mdStatFileInvalid = ` function makeFakeMDStatFile (line 177) | func makeFakeMDStatFile(content []byte) (filename string) { FILE: plugins/inputs/mem/mem.go type Mem (line 17) | type Mem struct method SampleConfig (line 22) | func (*Mem) SampleConfig() string { method Init (line 26) | func (ms *Mem) Init() error { method Gather (line 31) | func (ms *Mem) Gather(acc telegraf.Accumulator) error { function init (line 102) | func init() { FILE: plugins/inputs/mem/mem_test.go function TestMemStats (line 15) | func TestMemStats(t *testing.T) { FILE: plugins/inputs/memcached/memcached.go type Memcached (line 101) | type Memcached struct method SampleConfig (line 108) | func (*Memcached) SampleConfig() string { method Gather (line 112) | func (m *Memcached) Gather(acc telegraf.Accumulator) error { method gatherServer (line 128) | func (m *Memcached) gatherServer(address string, unix bool, acc telegr... function parseResponse (line 209) | func parseResponse(r *bufio.Reader) (map[string]string, error) { function init (line 234) | func init() { FILE: plugins/inputs/memcached/memcached_test.go function TestMemcachedGeneratesMetricsIntegration (line 16) | func TestMemcachedGeneratesMetricsIntegration(t *testing.T) { function TestMemcachedParseMetrics (line 52) | func TestMemcachedParseMetrics(t *testing.T) { FILE: plugins/inputs/mesos/mesos.go type role (line 26) | type role constant master (line 29) | master role = "master" constant slave (line 30) | slave role = "slave" type Mesos (line 38) | type Mesos struct method SampleConfig (line 54) | func (*Mesos) SampleConfig() string { method Gather (line 58) | func (m *Mesos) Gather(acc telegraf.Accumulator) error { method parseURL (line 90) | func (m *Mesos) parseURL(s string, role role) (*url.URL, error) { method initialize (line 111) | func (m *Mesos) initialize() error { method createHTTPClient (line 158) | func (m *Mesos) createHTTPClient() (*http.Client, error) { method getMetrics (line 198) | func (m *Mesos) getMetrics(role role, group string) []string { method filterMetrics (line 440) | func (m *Mesos) filterMetrics(role role, metrics *map[string]interface... method gatherMainMetrics (line 492) | func (m *Mesos) gatherMainMetrics(u *url.URL, role role, acc telegraf.... function metricsDiff (line 176) | func metricsDiff(role role, w []string) []string { function withPath (line 477) | func withPath(u *url.URL, path string) *url.URL { function urlTag (line 483) | func urlTag(u *url.URL) string { function init (line 540) | func init() { FILE: plugins/inputs/mesos/mesos_test.go function generateMetrics (line 272) | func generateMetrics() { function TestMain (line 284) | func TestMain(m *testing.M) { function TestMesosMaster (line 310) | func TestMesosMaster(t *testing.T) { function TestMasterFilter (line 324) | func TestMasterFilter(t *testing.T) { function TestMesosSlave (line 372) | func TestMesosSlave(t *testing.T) { function TestSlaveFilter (line 387) | func TestSlaveFilter(t *testing.T) { function TestWithPathDoesNotModify (line 414) | func TestWithPathDoesNotModify(t *testing.T) { function TestURLTagDoesNotModify (line 422) | func TestURLTagDoesNotModify(t *testing.T) { FILE: plugins/inputs/minecraft/client.go type connection (line 17) | type connection interface type conn (line 23) | type conn interface function newConnector (line 28) | func newConnector(hostname, port, password string) *connector { type connector (line 36) | type connector struct method connect (line 42) | func (c *connector) connect() (connection, error) { function newClient (line 51) | func newClient(connector conn) *client { type client (line 55) | type client struct method connect (line 60) | func (c *client) connect() error { method players (line 69) | func (c *client) players() ([]string, error) { method scores (line 86) | func (c *client) scores(player string) ([]score, error) { function parsePlayers (line 103) | func parsePlayers(input string) []string { type score (line 131) | type score struct function parseScores (line 136) | func parseScores(input string) []score { FILE: plugins/inputs/minecraft/client_test.go type mockConnection (line 9) | type mockConnection struct method Execute (line 13) | func (c *mockConnection) Execute(command string) (string, error) { type mockConnector (line 17) | type mockConnector struct method connect (line 21) | func (c *mockConnector) connect() (connection, error) { function TestClient_Player (line 25) | func TestClient_Player(t *testing.T) { function TestClient_Scores (line 108) | func TestClient_Scores(t *testing.T) { FILE: plugins/inputs/minecraft/minecraft.go type Minecraft (line 14) | type Minecraft struct method SampleConfig (line 34) | func (*Minecraft) SampleConfig() string { method Gather (line 38) | func (s *Minecraft) Gather(acc telegraf.Accumulator) error { type cli (line 23) | type cli interface function init (line 73) | func init() { FILE: plugins/inputs/minecraft/minecraft_test.go type mockClient (line 13) | type mockClient struct method connect (line 19) | func (c *mockClient) connect() error { method players (line 23) | func (c *mockClient) players() ([]string, error) { method scores (line 27) | func (c *mockClient) scores(player string) ([]score, error) { function TestGather (line 31) | func TestGather(t *testing.T) { FILE: plugins/inputs/mock/mock.go type Mock (line 17) | type Mock struct method SampleConfig (line 69) | func (*Mock) SampleConfig() string { method Init (line 73) | func (m *Mock) Init() error { method Gather (line 89) | func (m *Mock) Gather(acc telegraf.Accumulator) error { method generateRandomFloat64 (line 113) | func (m *Mock) generateRandomFloat64(fields map[string]interface{}) { method generateSineWave (line 120) | func (m *Mock) generateSineWave(fields map[string]interface{}) { method generateStep (line 127) | func (m *Mock) generateStep(fields map[string]interface{}) { method generateStockPrice (line 140) | func (m *Mock) generateStockPrice(fields map[string]interface{}) { type constant (line 31) | type constant struct type random (line 36) | type random struct type sineWave (line 42) | type sineWave struct type step (line 50) | type step struct type stock (line 61) | type stock struct function init (line 158) | func init() { FILE: plugins/inputs/mock/mock_test.go function TestGather (line 11) | func TestGather(t *testing.T) { function TestGatherEmpty (line 100) | func TestGatherEmpty(t *testing.T) { FILE: plugins/inputs/modbus/configuration.go constant maxQuantityDiscreteInput (line 6) | maxQuantityDiscreteInput = uint16(2000) constant maxQuantityCoils (line 7) | maxQuantityCoils = uint16(2000) constant maxQuantityInputRegisters (line 8) | maxQuantityInputRegisters = uint16(125) constant maxQuantityHoldingRegisters (line 9) | maxQuantityHoldingRegisters = uint16(125) type configuration (line 12) | type configuration interface function removeDuplicates (line 18) | func removeDuplicates(elements []uint16) []uint16 { function normalizeInputDatatype (line 32) | func normalizeInputDatatype(dataType string) (string, error) { function normalizeOutputDatatype (line 42) | func normalizeOutputDatatype(dataType string) (string, error) { function normalizeByteOrder (line 52) | func normalizeByteOrder(byteOrder string) (string, error) { FILE: plugins/inputs/modbus/configuration_metric.go type metricFieldDefinition (line 16) | type metricFieldDefinition struct type metricDefinition (line 27) | type metricDefinition struct type configurationPerMetric (line 35) | type configurationPerMetric struct method sampleConfigPart (line 45) | func (*configurationPerMetric) sampleConfigPart() string { method check (line 49) | func (c *configurationPerMetric) check() error { method process (line 181) | func (c *configurationPerMetric) process() (map[byte]requestSet, error) { method newField (line 258) | func (c *configurationPerMetric) newField(def metricFieldDefinition, m... method fieldID (line 342) | func (c *configurationPerMetric) fieldID(seed maphash.Seed, def metric... method determineOutputDatatype (line 369) | func (*configurationPerMetric) determineOutputDatatype(input string) (... method determineFieldLength (line 384) | func (*configurationPerMetric) determineFieldLength(input string, leng... FILE: plugins/inputs/modbus/configuration_metric_test.go function TestMetric (line 16) | func TestMetric(t *testing.T) { function TestMetricResult (line 158) | func TestMetricResult(t *testing.T) { function TestMetricAddressOverflow (line 368) | func TestMetricAddressOverflow(t *testing.T) { FILE: plugins/inputs/modbus/configuration_register.go type fieldDefinition (line 13) | type fieldDefinition struct type configurationOriginal (line 23) | type configurationOriginal struct method sampleConfigPart (line 33) | func (*configurationOriginal) sampleConfigPart() string { method check (line 37) | func (c *configurationOriginal) check() error { method process (line 60) | func (c *configurationOriginal) process() (map[byte]requestSet, error) { method initRequests (line 104) | func (c *configurationOriginal) initRequests(fieldDefs []fieldDefiniti... method initFields (line 119) | func (c *configurationOriginal) initFields(fieldDefs []fieldDefinition... method newFieldFromDefinition (line 133) | func (c *configurationOriginal) newFieldFromDefinition(def fieldDefini... method normalizeInputDatatype (line 278) | func (*configurationOriginal) normalizeInputDatatype(dataType string, ... method normalizeOutputDatatype (line 317) | func (*configurationOriginal) normalizeOutputDatatype(dataType string)... method normalizeByteOrder (line 326) | func (*configurationOriginal) normalizeByteOrder(byteOrder string) (st... function validateFieldDefinitions (line 184) | func validateFieldDefinitions(fieldDefs []fieldDefinition, registerType ... FILE: plugins/inputs/modbus/configuration_register_test.go function TestRegister (line 17) | func TestRegister(t *testing.T) { function TestRegisterCoils (line 65) | func TestRegisterCoils(t *testing.T) { function TestRegisterHoldingRegisters (line 214) | func TestRegisterHoldingRegisters(t *testing.T) { function TestRegisterReadMultipleCoilWithHole (line 851) | func TestRegisterReadMultipleCoilWithHole(t *testing.T) { function TestRegisterReadMultipleCoilLimit (line 936) | func TestRegisterReadMultipleCoilLimit(t *testing.T) { function TestRegisterReadMultipleHoldingRegisterWithHole (line 995) | func TestRegisterReadMultipleHoldingRegisterWithHole(t *testing.T) { function TestRegisterReadMultipleHoldingRegisterLimit (line 1069) | func TestRegisterReadMultipleHoldingRegisterLimit(t *testing.T) { function TestRegisterHighAddresses (line 1126) | func TestRegisterHighAddresses(t *testing.T) { FILE: plugins/inputs/modbus/configuration_request.go type requestFieldDefinition (line 16) | type requestFieldDefinition struct type requestDefinition (line 28) | type requestDefinition struct type configurationPerRequest (line 39) | type configurationPerRequest struct method sampleConfigPart (line 47) | func (*configurationPerRequest) sampleConfigPart() string { method check (line 51) | func (c *configurationPerRequest) check() error { method process (line 204) | func (c *configurationPerRequest) process() (map[byte]requestSet, erro... method initFields (line 272) | func (c *configurationPerRequest) initFields(fieldDefs []requestFieldD... method newFieldFromDefinition (line 286) | func (c *configurationPerRequest) newFieldFromDefinition(def requestFi... method fieldID (line 370) | func (c *configurationPerRequest) fieldID(seed maphash.Seed, def reque... function determineOutputDatatype (line 397) | func determineOutputDatatype(input string) (string, error) { function determineFieldLength (line 412) | func determineFieldLength(input string, length uint16) (uint16, error) { FILE: plugins/inputs/modbus/configuration_request_test.go function TestRequest (line 17) | func TestRequest(t *testing.T) { function TestRequestWithTags (line 183) | func TestRequestWithTags(t *testing.T) { function TestRequestTypesCoil (line 361) | func TestRequestTypesCoil(t *testing.T) { function TestRequestTypesHoldingABCD (line 456) | func TestRequestTypesHoldingABCD(t *testing.T) { function TestRequestTypesHoldingDCBA (line 1085) | func TestRequestTypesHoldingDCBA(t *testing.T) { function TestRequestFail (line 1705) | func TestRequestFail(t *testing.T) { function TestRequestStartingWithOmits (line 2091) | func TestRequestStartingWithOmits(t *testing.T) { function TestRequestWithOmittedFieldsOnly (line 2159) | func TestRequestWithOmittedFieldsOnly(t *testing.T) { function TestRequestGroupWithOmittedFieldsOnly (line 2197) | func TestRequestGroupWithOmittedFieldsOnly(t *testing.T) { function TestRequestEmptyFields (line 2244) | func TestRequestEmptyFields(t *testing.T) { function TestRequestMultipleSlavesOneFail (line 2262) | func TestRequestMultipleSlavesOneFail(t *testing.T) { function TestRequestOptimizationShrink (line 2361) | func TestRequestOptimizationShrink(t *testing.T) { function TestRequestOptimizationRearrange (line 2580) | func TestRequestOptimizationRearrange(t *testing.T) { function TestRequestOptimizationMaxExtraRegisterFail (line 2781) | func TestRequestOptimizationMaxExtraRegisterFail(t *testing.T) { function TestRequestOptimizationMaxInsertSmall (line 2843) | func TestRequestOptimizationMaxInsertSmall(t *testing.T) { function TestRequestWorkaroundsOneRequestPerField (line 2975) | func TestRequestWorkaroundsOneRequestPerField(t *testing.T) { function TestRequestWorkaroundsReadCoilsStartingAtZeroRequest (line 3021) | func TestRequestWorkaroundsReadCoilsStartingAtZeroRequest(t *testing.T) { function TestRequestOverlap (line 3059) | func TestRequestOverlap(t *testing.T) { function TestRequestAddressOverflow (line 3117) | func TestRequestAddressOverflow(t *testing.T) { FILE: plugins/inputs/modbus/modbus.go constant cDiscreteInputs (line 32) | cDiscreteInputs = "discrete_input" constant cCoils (line 33) | cCoils = "coil" constant cHoldingRegisters (line 34) | cHoldingRegisters = "holding_register" constant cInputRegisters (line 35) | cInputRegisters = "input_register" type Modbus (line 38) | type Modbus struct method SampleConfig (line 115) | func (m *Modbus) SampleConfig() string { method Init (line 133) | func (m *Modbus) Init() error { method Gather (line 223) | func (m *Modbus) Gather(acc telegraf.Accumulator) error { method initClient (line 288) | func (m *Modbus) initClient() error { method connect (line 378) | func (m *Modbus) connect() error { method disconnect (line 388) | func (m *Modbus) disconnect() error { method readSlaveData (line 394) | func (m *Modbus) readSlaveData(slaveID byte, requests requestSet) error { method gatherFields (line 417) | func (m *Modbus) gatherFields(requests requestSet) error { method gatherRequestsCoil (line 430) | func (m *Modbus) gatherRequestsCoil(requests []request) error { method gatherRequestsDiscrete (line 457) | func (m *Modbus) gatherRequestsDiscrete(requests []request) error { method gatherRequestsHolding (line 484) | func (m *Modbus) gatherRequestsHolding(requests []request) error { method gatherRequestsInput (line 511) | func (m *Modbus) gatherRequestsInput(requests []request) error { method Printf (line 562) | func (m *Modbus) Printf(format string, v ...interface{}) { type workarounds (line 69) | type workarounds struct type rs485Config (line 79) | type rs485Config struct type fieldConverterFunc (line 87) | type fieldConverterFunc type requestSet (line 89) | type requestSet struct method empty (line 96) | func (r requestSet) empty() bool { type field (line 104) | type field struct function collectFields (line 538) | func collectFields(grouper *metric.SeriesGrouper, timestamp time.Time, t... function init (line 567) | func init() { FILE: plugins/inputs/modbus/modbus_test.go function TestControllers (line 25) | func TestControllers(t *testing.T) { function TestRetrySuccessful (line 149) | func TestRetrySuccessful(t *testing.T) { function TestRetryFailExhausted (line 210) | func TestRetryFailExhausted(t *testing.T) { function TestRetryFailIllegal (line 250) | func TestRetryFailIllegal(t *testing.T) { function TestCases (line 294) | func TestCases(t *testing.T) { type rangeDefinition (line 414) | type rangeDefinition struct type requestExpectation (line 423) | type requestExpectation struct function generateRequestDefinitions (line 428) | func generateRequestDefinitions(ranges []rangeDefinition) []requestField... function generateExpectation (line 450) | func generateExpectation(defs []requestExpectation) []request { function requireEqualRequests (line 472) | func requireEqualRequests(t *testing.T, expected, actual []request) { function TestRegisterWorkaroundsOneRequestPerField (line 488) | func TestRegisterWorkaroundsOneRequestPerField(t *testing.T) { function TestRequestsWorkaroundsReadCoilsStartingAtZeroRegister (line 538) | func TestRequestsWorkaroundsReadCoilsStartingAtZeroRegister(t *testing.T) { function TestWorkaroundsStringRegisterLocation (line 570) | func TestWorkaroundsStringRegisterLocation(t *testing.T) { function TestWorkaroundsStringRegisterLocationInvalid (line 735) | func TestWorkaroundsStringRegisterLocationInvalid(t *testing.T) { FILE: plugins/inputs/modbus/request.go type request (line 10) | type request struct function countRegisters (line 16) | func countRegisters(requests []request) uint64 { function splitMaxBatchSize (line 25) | func splitMaxBatchSize(g request, maxBatchSize uint16) []request { function shrinkGroup (line 72) | func shrinkGroup(g request, maxBatchSize uint16) []request { function optimizeGroup (line 104) | func optimizeGroup(g request, maxBatchSize uint16) []request { function optimizeGroupWithinLimits (line 141) | func optimizeGroupWithinLimits(g request, params groupingParams) []reque... type groupingParams (line 182) | type groupingParams struct function groupFieldsToRequests (line 196) | func groupFieldsToRequests(fields []field, params groupingParams) []requ... FILE: plugins/inputs/modbus/type_conversions.go function determineUntypedConverter (line 7) | func determineUntypedConverter(outType string) (fieldConverterFunc, erro... function determineConverter (line 21) | func determineConverter(inType, byteOrder, outType string, scale float64... function determineConverterScale (line 42) | func determineConverterScale(inType, byteOrder, outType string, scale fl... function determineConverterNoScale (line 74) | func determineConverterNoScale(inType, byteOrder, outType string) (field... FILE: plugins/inputs/modbus/type_conversions16.go type convert16 (line 10) | type convert16 function endiannessConverter16 (line 12) | func endiannessConverter16(byteOrder string) (convert16, error) { function determineConverterI16 (line 23) | func determineConverterI16(outType, byteOrder string) (fieldConverterFun... function determineConverterU16 (line 51) | func determineConverterU16(outType, byteOrder string) (fieldConverterFun... function determineConverterF16 (line 79) | func determineConverterF16(outType, byteOrder string) (fieldConverterFun... function determineConverterI16Scale (line 102) | func determineConverterI16Scale(outType, byteOrder string, scale float64... function determineConverterU16Scale (line 134) | func determineConverterU16Scale(outType, byteOrder string, scale float64... function determineConverterF16Scale (line 166) | func determineConverterF16Scale(outType, byteOrder string, scale float64... FILE: plugins/inputs/modbus/type_conversions32.go type convert32 (line 9) | type convert32 function binaryMSWLEU32 (line 11) | func binaryMSWLEU32(b []byte) uint32 { function binaryLSWBEU32 (line 16) | func binaryLSWBEU32(b []byte) uint32 { function endiannessConverter32 (line 21) | func endiannessConverter32(byteOrder string) (convert32, error) { function determineConverterI32 (line 36) | func determineConverterI32(outType, byteOrder string) (fieldConverterFun... function determineConverterU32 (line 64) | func determineConverterU32(outType, byteOrder string) (fieldConverterFun... function determineConverterF32 (line 92) | func determineConverterF32(outType, byteOrder string) (fieldConverterFun... function determineConverterI32Scale (line 115) | func determineConverterI32Scale(outType, byteOrder string, scale float64... function determineConverterU32Scale (line 147) | func determineConverterU32Scale(outType, byteOrder string, scale float64... function determineConverterF32Scale (line 179) | func determineConverterF32Scale(outType, byteOrder string, scale float64... FILE: plugins/inputs/modbus/type_conversions64.go type convert64 (line 9) | type convert64 function binaryMSWLEU64 (line 11) | func binaryMSWLEU64(b []byte) uint64 { function binaryLSWBEU64 (line 17) | func binaryLSWBEU64(b []byte) uint64 { function endiannessConverter64 (line 23) | func endiannessConverter64(byteOrder string) (convert64, error) { function determineConverterI64 (line 38) | func determineConverterI64(outType, byteOrder string) (fieldConverterFun... function determineConverterU64 (line 64) | func determineConverterU64(outType, byteOrder string) (fieldConverterFun... function determineConverterF64 (line 88) | func determineConverterF64(outType, byteOrder string) (fieldConverterFun... function determineConverterI64Scale (line 105) | func determineConverterI64Scale(outType, byteOrder string, scale float64... function determineConverterU64Scale (line 137) | func determineConverterU64Scale(outType, byteOrder string, scale float64... function determineConverterF64Scale (line 169) | func determineConverterF64Scale(outType, byteOrder string, scale float64... FILE: plugins/inputs/modbus/type_conversions8.go function endiannessIndex8 (line 7) | func endiannessIndex8(byteOrder string, low bool) (int, error) { function determineConverterI8L (line 24) | func determineConverterI8L(outType, byteOrder string) (fieldConverterFun... function determineConverterI8H (line 52) | func determineConverterI8H(outType, byteOrder string) (fieldConverterFun... function determineConverterU8L (line 80) | func determineConverterU8L(outType, byteOrder string) (fieldConverterFun... function determineConverterU8H (line 108) | func determineConverterU8H(outType, byteOrder string) (fieldConverterFun... function determineConverterI8LScale (line 136) | func determineConverterI8LScale(outType, byteOrder string, scale float64... function determineConverterI8HScale (line 168) | func determineConverterI8HScale(outType, byteOrder string, scale float64... function determineConverterU8LScale (line 200) | func determineConverterU8LScale(outType, byteOrder string, scale float64... function determineConverterU8HScale (line 228) | func determineConverterU8HScale(outType, byteOrder string, scale float64... FILE: plugins/inputs/modbus/type_conversions_bit.go function determineConverterBit (line 3) | func determineConverterBit(byteOrder string, bit uint8) (fieldConverterF... FILE: plugins/inputs/modbus/type_conversions_string.go function determineConverterString (line 7) | func determineConverterString(byteOrder string) (fieldConverterFunc, err... function determineConverterStringLow (line 27) | func determineConverterStringLow(byteOrder string) (fieldConverterFunc, ... function determineConverterStringHigh (line 46) | func determineConverterStringHigh(byteOrder string) (fieldConverterFunc,... FILE: plugins/inputs/mongodb/mongodb.go type MongoDB (line 30) | type MongoDB struct method SampleConfig (line 46) | func (*MongoDB) SampleConfig() string { method Init (line 50) | func (m *MongoDB) Init() error { method Start (line 73) | func (m *MongoDB) Start(telegraf.Accumulator) error { method Gather (line 83) | func (m *MongoDB) Gather(acc telegraf.Accumulator) error { method Stop (line 108) | func (m *MongoDB) Stop() { method setupConnection (line 118) | func (m *MongoDB) setupConnection(connURL string) error { function init (line 163) | func init() { FILE: plugins/inputs/mongodb/mongodb_data.go type mongoDBData (line 11) | type mongoDBData struct method addDBStats (line 300) | func (d *mongoDBData) addDBStats() { method addColStats (line 317) | func (d *mongoDBData) addColStats() { method addShardHostStats (line 335) | func (d *mongoDBData) addShardHostStats() { method addTopStats (line 352) | func (d *mongoDBData) addTopStats() { method addDefaultStats (line 369) | func (d *mongoDBData) addDefaultStats() { method addStat (line 417) | func (d *mongoDBData) addStat(statLine reflect.Value, stats map[string... method add (line 424) | func (d *mongoDBData) add(key string, val interface{}) { method flush (line 428) | func (d *mongoDBData) flush(acc telegraf.Accumulator) { type bbData (line 21) | type bbData struct type colData (line 26) | type colData struct function newMongodbData (line 32) | func newMongodbData(statLine *statLine, tags map[string]string) *mongoDB... FILE: plugins/inputs/mongodb/mongodb_data_test.go function TestAddNonReplStats (line 15) | func TestAddNonReplStats(t *testing.T) { function TestAddReplStats (line 73) | func TestAddReplStats(t *testing.T) { function TestAddWiredTigerStats (line 94) | func TestAddWiredTigerStats(t *testing.T) { function TestAddShardStats (line 141) | func TestAddShardStats(t *testing.T) { function TestAddLatencyStats (line 162) | func TestAddLatencyStats(t *testing.T) { function TestAddAssertsStats (line 185) | func TestAddAssertsStats(t *testing.T) { function TestAddCommandsStats (line 207) | func TestAddCommandsStats(t *testing.T) { function TestAddTCMallocStats (line 242) | func TestAddTCMallocStats(t *testing.T) { function TestAddStorageStats (line 278) | func TestAddStorageStats(t *testing.T) { function TestAddShardHostStats (line 298) | func TestAddShardHostStats(t *testing.T) { function TestStateTag (line 335) | func TestStateTag(t *testing.T) { function TestAddTopStats (line 499) | func TestAddTopStats(t *testing.T) { FILE: plugins/inputs/mongodb/mongodb_server.go type server (line 20) | type server struct method getDefaultTags (line 36) | func (s *server) getDefaultTags() map[string]string { method ping (line 42) | func (s *server) ping() error { method authLog (line 49) | func (s *server) authLog(err error) { method runCommand (line 57) | func (s *server) runCommand(database string, cmd, result interface{}) ... method gatherServerStatus (line 65) | func (s *server) gatherServerStatus() (*serverStatus, error) { method gatherReplSetStatus (line 83) | func (s *server) gatherReplSetStatus() (*replSetStatus, error) { method gatherTopStatData (line 97) | func (s *server) gatherTopStatData() (*topStats, error) { method gatherClusterStatus (line 128) | func (s *server) gatherClusterStatus() (*clusterStatus, error) { method gatherShardConnPoolStats (line 152) | func (s *server) gatherShardConnPoolStats(version string) (*shardStats... method gatherDBStats (line 171) | func (s *server) gatherDBStats(name string) (*db, error) { method getOplogReplLag (line 189) | func (s *server) getOplogReplLag(collection string) (*oplogStats, erro... method gatherOplogStats (line 223) | func (s *server) gatherOplogStats() (*oplogStats, error) { method gatherCollectionStats (line 232) | func (s *server) gatherCollectionStats(colStatsDBs []string) (*colStat... method gatherData (line 274) | func (s *server) gatherData(acc telegraf.Accumulator, gatherClusterSta... type oplogEntry (line 28) | type oplogEntry struct function isAuthorization (line 32) | func isAuthorization(err error) bool { function poolStatsCommand (line 139) | func poolStatsCommand(version string) (string, error) { FILE: plugins/inputs/mongodb/mongodb_server_test.go function createTestServer (line 16) | func createTestServer(t *testing.T) *testutil.Container { function TestGetDefaultTagsIntegration (line 27) | func TestGetDefaultTagsIntegration(t *testing.T) { function TestAddDefaultStatsIntegration (line 63) | func TestAddDefaultStatsIntegration(t *testing.T) { function TestSkipBehaviorIntegration (line 99) | func TestSkipBehaviorIntegration(t *testing.T) { function TestErrorBehaviorIntegration (line 121) | func TestErrorBehaviorIntegration(t *testing.T) { function TestPoolStatsVersionCompatibility (line 139) | func TestPoolStatsVersionCompatibility(t *testing.T) { FILE: plugins/inputs/mongodb/mongostat.go constant mongosProcess (line 15) | mongosProcess = "mongos" type mongoStatus (line 18) | type mongoStatus struct type serverStatus (line 30) | type serverStatus struct type dbStats (line 63) | type dbStats struct type db (line 68) | type db struct type dbStatsData (line 74) | type dbStatsData struct type colStats (line 90) | type colStats struct type collection (line 94) | type collection struct type colStatsData (line 100) | type colStatsData struct type clusterStatus (line 111) | type clusterStatus struct type replSetStatus (line 116) | type replSetStatus struct type oplogStats (line 122) | type oplogStats struct type replSetMember (line 127) | type replSetMember struct type wiredTiger (line 136) | type wiredTiger struct type shardStats (line 145) | type shardStats struct type shardStatsData (line 151) | type shardStatsData struct type shardHostStatsData (line 159) | type shardHostStatsData struct type topStats (line 166) | type topStats struct type topStatCollection (line 170) | type topStatCollection struct type topStatCollectionData (line 182) | type topStatCollectionData struct type concurrentTransactions (line 187) | type concurrentTransactions struct type concurrentTransStats (line 192) | type concurrentTransStats struct type assertsStats (line 199) | type assertsStats struct type cacheStats (line 208) | type cacheStats struct type storageEngine (line 230) | type storageEngine struct type transactionStats (line 235) | type transactionStats struct type wtConnectionStats (line 241) | type wtConnectionStats struct type dataHandleStats (line 246) | type dataHandleStats struct type replStatus (line 251) | type replStatus struct type dbRecordStats (line 264) | type dbRecordStats struct type recordAccesses (line 271) | type recordAccesses struct type memStats (line 277) | type memStats struct type flushStats (line 287) | type flushStats struct type connectionStats (line 296) | type connectionStats struct type durTiming (line 303) | type durTiming struct type durStats (line 312) | type durStats struct type queueStats (line 323) | type queueStats struct type clientStats (line 330) | type clientStats struct type globalLockStats (line 337) | type globalLockStats struct type networkStats (line 345) | type networkStats struct type opcountStats (line 352) | type opcountStats struct type opLatenciesStats (line 362) | type opLatenciesStats struct type latencyStats (line 369) | type latencyStats struct type metricsStats (line 375) | type metricsStats struct type ttlStats (line 387) | type ttlStats struct type cursorStats (line 393) | type cursorStats struct type documentStats (line 399) | type documentStats struct type commandsStats (line 407) | type commandsStats struct type commandsStatsValue (line 419) | type commandsStatsValue struct type openCursorStats (line 425) | type openCursorStats struct type operationStats (line 433) | type operationStats struct type queryExecutorStats (line 439) | type queryExecutorStats struct type replStats (line 445) | type replStats struct type replApplyStats (line 453) | type replApplyStats struct type replBufferStats (line 459) | type replBufferStats struct type replExecutorStats (line 465) | type replExecutorStats struct type replNetworkStats (line 472) | type replNetworkStats struct type basicStats (line 479) | type basicStats struct type readWriteLockTimes (line 485) | type readWriteLockTimes struct type lockStats (line 493) | type lockStats struct type extraInfo (line 505) | type extraInfo struct type tcMallocStats (line 510) | type tcMallocStats struct type genericTCMAllocStats (line 516) | type genericTCMAllocStats struct type detailedTCMallocStats (line 522) | type detailedTCMallocStats struct type storageStats (line 543) | type storageStats struct type lockUsage (line 550) | type lockUsage struct type lockUsages (line 556) | type lockUsages method Len (line 572) | func (slice lockUsages) Len() int { method Less (line 576) | func (slice lockUsages) Less(i, j int) bool { method Swap (line 580) | func (slice lockUsages) Swap(i, j int) { function percentageInt64 (line 558) | func percentageInt64(value, outOf int64) float64 { function averageInt64 (line 565) | func averageInt64(value, outOf int64) int64 { type collectionLockStatus (line 585) | type collectionLockStatus struct type lockStatus (line 593) | type lockStatus struct type statLine (line 600) | type statLine struct type dbStatLine (line 794) | type dbStatLine struct type colStatLine (line 808) | type colStatLine struct type shardHostStatLine (line 819) | type shardHostStatLine struct type topStatLine (line 826) | type topStatLine struct function parseLocks (line 839) | func parseLocks(stat serverStatus) map[string]lockUsage { function computeLockDiffs (line 851) | func computeLockDiffs(prevLocks, curLocks map[string]lockUsage) []lockUs... function diff (line 873) | func diff(newVal, oldVal, sampleTime int64) (avg, newValue int64) { function newStatLine (line 882) | func newStatLine(oldMongo, newMongo mongoStatus, key string, sampleSecs ... FILE: plugins/inputs/mongodb/mongostat_test.go function TestLatencyStats (line 9) | func TestLatencyStats(t *testing.T) { function TestLatencyStatsDiffZero (line 63) | func TestLatencyStatsDiffZero(t *testing.T) { function TestLatencyStatsDiff (line 131) | func TestLatencyStatsDiff(t *testing.T) { function TestLocksStatsNilWhenLocksMissingInOldStat (line 199) | func TestLocksStatsNilWhenLocksMissingInOldStat(t *testing.T) { function TestLocksStatsNilWhenGlobalLockStatsMissingInOldStat (line 229) | func TestLocksStatsNilWhenGlobalLockStatsMissingInOldStat(t *testing.T) { function TestLocksStatsNilWhenGlobalLockStatsEmptyInOldStat (line 260) | func TestLocksStatsNilWhenGlobalLockStatsEmptyInOldStat(t *testing.T) { function TestLocksStatsNilWhenCollectionLockStatsMissingInOldStat (line 293) | func TestLocksStatsNilWhenCollectionLockStatsMissingInOldStat(t *testing... function TestLocksStatsNilWhenCollectionLockStatsEmptyInOldStat (line 328) | func TestLocksStatsNilWhenCollectionLockStatsEmptyInOldStat(t *testing.T) { function TestLocksStatsNilWhenLocksMissingInNewStat (line 364) | func TestLocksStatsNilWhenLocksMissingInNewStat(t *testing.T) { function TestLocksStatsNilWhenGlobalLockStatsMissingInNewStat (line 394) | func TestLocksStatsNilWhenGlobalLockStatsMissingInNewStat(t *testing.T) { function TestLocksStatsNilWhenGlobalLockStatsEmptyInNewStat (line 425) | func TestLocksStatsNilWhenGlobalLockStatsEmptyInNewStat(t *testing.T) { function TestLocksStatsNilWhenCollectionLockStatsMissingInNewStat (line 458) | func TestLocksStatsNilWhenCollectionLockStatsMissingInNewStat(t *testing... function TestLocksStatsNilWhenCollectionLockStatsEmptyInNewStat (line 493) | func TestLocksStatsNilWhenCollectionLockStatsEmptyInNewStat(t *testing.T) { function TestLocksStatsPopulated (line 529) | func TestLocksStatsPopulated(t *testing.T) { FILE: plugins/inputs/monit/monit.go constant fileSystem (line 25) | fileSystem = "0" constant directory (line 26) | directory = "1" constant file (line 27) | file = "2" constant process (line 28) | process = "3" constant remoteHost (line 29) | remoteHost = "4" constant sstm (line 30) | sstm = "5" constant fifo (line 31) | fifo = "6" constant prgrm (line 32) | prgrm = "7" constant network (line 33) | network = "8" type Monit (line 36) | type Monit struct method SampleConfig (line 191) | func (*Monit) SampleConfig() string { method Init (line 195) | func (m *Monit) Init() error { method Gather (line 211) | func (m *Monit) Gather(acc telegraf.Accumulator) error { type status (line 45) | type status struct type server (line 51) | type server struct type platform (line 61) | type platform struct type service (line 71) | type service struct type link (line 94) | type link struct type download (line 102) | type download struct type upload (line 117) | type upload struct type port (line 132) | type port struct type block (line 141) | type block struct type inode (line 147) | type inode struct type program (line 153) | type program struct type memory (line 158) | type memory struct type cpu (line 165) | type cpu struct type system (line 170) | type system struct function linkMode (line 332) | func linkMode(s service) string { function serviceStatus (line 341) | func serviceStatus(s service) string { function pendingAction (line 348) | func pendingAction(s service) string { function monitoringMode (line 358) | func monitoringMode(s service) string { function monitoringStatus (line 368) | func monitoringStatus(s service) string { function init (line 380) | func init() { FILE: plugins/inputs/monit/monit_test.go type transportMock (line 17) | type transportMock struct method RoundTrip (line 20) | func (*transportMock) RoundTrip(*http.Request) (*http.Response, error) { function TestServiceType (line 27) | func TestServiceType(t *testing.T) { function TestMonitFailure (line 348) | func TestMonitFailure(t *testing.T) { function checkAuth (line 545) | func checkAuth(r *http.Request, username, password string) bool { function TestAllowHosts (line 553) | func TestAllowHosts(t *testing.T) { function TestConnection (line 569) | func TestConnection(t *testing.T) { function TestInvalidUsernameOrPassword (line 587) | func TestInvalidUsernameOrPassword(t *testing.T) { function TestNoUsernameOrPasswordConfiguration (line 618) | func TestNoUsernameOrPasswordConfiguration(t *testing.T) { function TestInvalidXMLAndInvalidTypes (line 647) | func TestInvalidXMLAndInvalidTypes(t *testing.T) { FILE: plugins/inputs/mqtt_consumer/mqtt_consumer.go type MQTTConsumer (line 35) | type MQTTConsumer struct method SampleConfig (line 83) | func (*MQTTConsumer) SampleConfig() string { method Init (line 87) | func (m *MQTTConsumer) Init() error { method SetParser (line 130) | func (m *MQTTConsumer) SetParser(parser telegraf.Parser) { method Start (line 134) | func (m *MQTTConsumer) Start(acc telegraf.Accumulator) error { method Gather (line 159) | func (*MQTTConsumer) Gather(telegraf.Accumulator) error { method Stop (line 163) | func (m *MQTTConsumer) Stop() { method connect (line 177) | func (m *MQTTConsumer) connect() error { method onConnect (line 201) | func (m *MQTTConsumer) onConnect(_ mqtt.Client) { method onConnectionLost (line 214) | func (m *MQTTConsumer) onConnectionLost(_ mqtt.Client, err error) { method onDelivered (line 219) | func (m *MQTTConsumer) onDelivered(track telegraf.DeliveryInfo) { method onMessage (line 238) | func (m *MQTTConsumer) onMessage(_ mqtt.Client, msg mqtt.Message) { method createOpts (line 282) | func (m *MQTTConsumer) createOpts() (*mqtt.ClientOptions, error) { type client (line 71) | type client interface type empty (line 79) | type empty struct type semaphore (line 80) | type semaphore type clientFactory (line 81) | type clientFactory function newMQTTConsumer (line 344) | func newMQTTConsumer(factory clientFactory) *MQTTConsumer { function init (line 355) | func init() { FILE: plugins/inputs/mqtt_consumer/mqtt_consumer_test.go type fakeClient (line 21) | type fakeClient struct method Connect (line 36) | func (c *fakeClient) Connect() mqtt.Token { method SubscribeMultiple (line 46) | func (c *fakeClient) SubscribeMultiple(map[string]byte, mqtt.MessageHa... method AddRoute (line 51) | func (c *fakeClient) AddRoute(_ string, callback mqtt.MessageHandler) { method Disconnect (line 56) | func (c *fakeClient) Disconnect(uint) { method IsConnected (line 62) | func (c *fakeClient) IsConnected() bool { type fakeParser (line 66) | type fakeParser struct method Parse (line 71) | func (*fakeParser) Parse([]byte) ([]telegraf.Metric, error) { method ParseLine (line 75) | func (*fakeParser) ParseLine(string) (telegraf.Metric, error) { method SetDefaultTags (line 79) | func (*fakeParser) SetDefaultTags(map[string]string) { type fakeToken (line 83) | type fakeToken struct method Wait (line 91) | func (*fakeToken) Wait() bool { method WaitTimeout (line 95) | func (*fakeToken) WaitTimeout(time.Duration) bool { method Error (line 99) | func (*fakeToken) Error() error { method SessionPresent (line 103) | func (t *fakeToken) SessionPresent() bool { method Done (line 107) | func (t *fakeToken) Done() <-chan struct{} { function TestLifecycleSanity (line 112) | func TestLifecycleSanity(t *testing.T) { function TestRandomClientID (line 144) | func TestRandomClientID(t *testing.T) { function TestPersistentClientIDFail (line 161) | func TestPersistentClientIDFail(t *testing.T) { type message (line 170) | type message struct method Duplicate (line 175) | func (*message) Duplicate() bool { method Qos (line 179) | func (m *message) Qos() byte { method Retained (line 183) | func (*message) Retained() bool { method Topic (line 187) | func (m *message) Topic() string { method MessageID (line 191) | func (*message) MessageID() uint16 { method Payload (line 195) | func (*message) Payload() []byte { method Ack (line 199) | func (*message) Ack() { function TestTopicTag (line 203) | func TestTopicTag(t *testing.T) { function TestAddRouteCalledForEachTopic (line 579) | func TestAddRouteCalledForEachTopic(t *testing.T) { function TestSubscribeCalledIfNoSession (line 609) | func TestSubscribeCalledIfNoSession(t *testing.T) { function TestResubscribeOnReconnect (line 639) | func TestResubscribeOnReconnect(t *testing.T) { function TestSubscribeCalledWithSession (line 672) | func TestSubscribeCalledWithSession(t *testing.T) { function TestIntegration (line 703) | func TestIntegration(t *testing.T) { function TestStartupErrorBehaviorErrorIntegration (line 787) | func TestStartupErrorBehaviorErrorIntegration(t *testing.T) { function TestStartupErrorBehaviorIgnoreIntegration (line 846) | func TestStartupErrorBehaviorIgnoreIntegration(t *testing.T) { function TestStartupErrorBehaviorRetryIntegration (line 911) | func TestStartupErrorBehaviorRetryIntegration(t *testing.T) { function TestReconnectIntegration (line 1019) | func TestReconnectIntegration(t *testing.T) { FILE: plugins/inputs/mqtt_consumer/mqtt_logger.go type mqttLogger (line 7) | type mqttLogger struct method Printf (line 12) | func (l mqttLogger) Printf(fmt string, args ...interface{}) { method Println (line 17) | func (l mqttLogger) Println(args ...interface{}) { FILE: plugins/inputs/mqtt_consumer/topic_parser.go type topicParsingConfig (line 12) | type topicParsingConfig struct method newParser (line 32) | func (cfg *topicParsingConfig) newParser() (*topicParser, error) { type topicParser (line 20) | type topicParser struct method parse (line 153) | func (p *topicParser) parse(metric telegraf.Metric, topic string) error { method convertToFieldType (line 203) | func (p *topicParser) convertToFieldType(value, key string) (interface... FILE: plugins/inputs/multifile/multifile.go type MultiFile (line 21) | type MultiFile struct method SampleConfig (line 33) | func (*MultiFile) SampleConfig() string { method Init (line 37) | func (m *MultiFile) Init() error { method Gather (line 49) | func (m *MultiFile) Gather(acc telegraf.Accumulator) error { type file (line 27) | type file struct function init (line 110) | func init() { FILE: plugins/inputs/multifile/multifile_test.go function TestFileTypes (line 13) | func TestFileTypes(t *testing.T) { function failEarly (line 46) | func failEarly(failEarly bool, t *testing.T) error { function TestFailEarly (line 73) | func TestFailEarly(t *testing.T) { FILE: plugins/inputs/mysql/mysql.go constant defaultPerfEventsStatementsDigestTextLimit (line 33) | defaultPerfEventsStatementsDigestTextLimit = 120 constant defaultPerfEventsStatementsLimit (line 34) | defaultPerfEventsStatementsLimit = 250 constant defaultPerfEventsStatementsTimeLimit (line 35) | defaultPerfEventsStatementsTimeLimit = 86400 constant defaultGatherGlobalVars (line 36) | defaultGatherGlobalVars = true constant localhost (line 37) | localhost = "" type Mysql (line 40) | type Mysql struct method SampleConfig (line 75) | func (*Mysql) SampleConfig() string { method Init (line 79) | func (m *Mysql) Init() error { method Gather (line 151) | func (m *Mysql) Gather(acc telegraf.Accumulator) error { method gatherServer (line 432) | func (m *Mysql) gatherServer(server *config.Secret, acc telegraf.Accum... method gatherGlobalVariables (line 565) | func (m *Mysql) gatherGlobalVariables(db *sql.DB, servtag string, acc ... method parseGlobalVariables (line 617) | func (m *Mysql) parseGlobalVariables(key string, value sql.RawBytes) (... method gatherSlaveStatuses (line 628) | func (m *Mysql) gatherSlaveStatuses(db *sql.DB, servtag string, acc te... method gatherGlobalStatuses (line 773) | func (m *Mysql) gatherGlobalStatuses(db *sql.DB, servtag string, acc t... method gatherProcessListStatuses (line 900) | func (m *Mysql) gatherProcessListStatuses(db *sql.DB, servtag string, ... method gatherUserStatisticsStatuses (line 972) | func (m *Mysql) gatherUserStatisticsStatuses(db *sql.DB, servtag strin... method gatherInfoSchemaAutoIncStatuses (line 1294) | func (m *Mysql) gatherInfoSchemaAutoIncStatuses(db *sql.DB, servtag st... method gatherInnoDBMetrics (line 1331) | func (m *Mysql) gatherInnoDBMetrics(db *sql.DB, servtag string, acc te... method gatherPerfSummaryPerAccountPerEvent (line 1383) | func (m *Mysql) gatherPerfSummaryPerAccountPerEvent(db *sql.DB, servta... method gatherPerfEventsStatements (line 1735) | func (m *Mysql) gatherPerfEventsStatements(db *sql.DB, servtag string,... method gatherTableSchema (line 1801) | func (m *Mysql) gatherTableSchema(db *sql.DB, servtag string, acc tele... method gatherSchemaForDB (line 1834) | func (m *Mysql) gatherSchemaForDB(db *sql.DB, database, servtag string... method parseValueByDatabaseTypeName (line 1925) | func (m *Mysql) parseValueByDatabaseTypeName(value sql.RawBytes, datab... constant picoSeconds (line 249) | picoSeconds = 1e12 constant globalStatusQuery (line 254) | globalStatusQuery = `SHOW GLOBAL STATUS` constant globalVariablesQuery (line 255) | globalVariablesQuery = `SHOW GLOBAL VARIABLES` constant slaveStatusQuery (line 256) | slaveStatusQuery = `SHOW SLAVE STATUS` constant replicaStatusQuery (line 257) | replicaStatusQuery = `SHOW REPLICA STATUS` constant slaveStatusQueryMariadb (line 258) | slaveStatusQueryMariadb = `SHOW ALL SLAVES STATUS` constant replicaStatusQueryMariadb (line 259) | replicaStatusQueryMariadb = `SHOW ALL REPLICAS STATUS` constant binaryLogsQuery (line 260) | binaryLogsQuery = `SHOW BINARY LOGS` constant infoSchemaProcessListQuery (line 261) | infoSchemaProcessListQuery = ` constant infoSchemaUserStatisticsQuery (line 267) | infoSchemaUserStatisticsQuery = ` constant infoSchemaAutoIncQuery (line 270) | infoSchemaAutoIncQuery = ` constant innoDBMetricsQuery (line 283) | innoDBMetricsQuery = ` constant innoDBMetricsQueryMariadb (line 288) | innoDBMetricsQueryMariadb = ` constant perfTableIOWaitsQuery (line 295) | perfTableIOWaitsQuery = ` constant perfIndexIOWaitsQuery (line 301) | perfIndexIOWaitsQuery = ` constant perfTableLockWaitsQuery (line 308) | perfTableLockWaitsQuery = ` constant perfEventsStatementsQuery (line 335) | perfEventsStatementsQuery = ` constant perfEventWaitsQuery (line 358) | perfEventWaitsQuery = ` constant perfFileEventsQuery (line 362) | perfFileEventsQuery = ` constant tableSchemaQuery (line 370) | tableSchemaQuery = ` constant dbListQuery (line 386) | dbListQuery = ` constant perfSchemaTablesQuery (line 392) | perfSchemaTablesQuery = ` constant perfSummaryPerAccountPerEvent (line 399) | perfSummaryPerAccountPerEvent = ` function gatherBinaryLogs (line 716) | func gatherBinaryLogs(db *sql.DB, servtag string, acc telegraf.Accumulat... function parseKeyValues (line 1025) | func parseKeyValues(fields map[string]interface{}, key string, value int... function columnsToLower (line 1036) | func columnsToLower(s []string, e error) ([]string, error) { function getColSlice (line 1049) | func getColSlice(rows *sql.Rows) ([]interface{}, error) { function gatherPerfTableIOWaits (line 1197) | func gatherPerfTableIOWaits(db *sql.DB, servtag string, acc telegraf.Acc... function gatherPerfIndexIOWaits (line 1243) | func gatherPerfIndexIOWaits(db *sql.DB, servtag string, acc telegraf.Acc... function gatherPerfTableLockWaits (line 1520) | func gatherPerfTableLockWaits(db *sql.DB, servtag string, acc telegraf.A... function gatherPerfEventWaits (line 1647) | func gatherPerfEventWaits(db *sql.DB, servtag string, acc telegraf.Accum... function gatherPerfFileEventsStatuses (line 1678) | func gatherPerfFileEventsStatuses(db *sql.DB, servtag string, acc telegr... function findThreadState (line 1944) | func findThreadState(rawCommand, rawState string) string { function newNamespace (line 1980) | func newNamespace(words ...string) string { function copyTags (line 1984) | func copyTags(in map[string]string) map[string]string { function getDSNTag (line 1992) | func getDSNTag(dsn string) string { function init (line 2000) | func init() { FILE: plugins/inputs/mysql/mysql_test.go constant servicePort (line 20) | servicePort = "3306" function TestMysqlDefaultsToLocalIntegration (line 22) | func TestMysqlDefaultsToLocalIntegration(t *testing.T) { function TestMysqlMultipleInstancesIntegration (line 58) | func TestMysqlMultipleInstancesIntegration(t *testing.T) { function TestPercona8Integration (line 115) | func TestPercona8Integration(t *testing.T) { function TestGaleraIntegration (line 154) | func TestGaleraIntegration(t *testing.T) { function TestMysqlGetDSNTag (line 192) | func TestMysqlGetDSNTag(t *testing.T) { function TestMysqlDNSAddTimeout (line 251) | func TestMysqlDNSAddTimeout(t *testing.T) { function TestMysqlTLSCustomization (line 310) | func TestMysqlTLSCustomization(t *testing.T) { function TestGatherGlobalVariables (line 417) | func TestGatherGlobalVariables(t *testing.T) { function TestNewNamespace (line 553) | func TestNewNamespace(t *testing.T) { FILE: plugins/inputs/mysql/v1/mysql.go type Mapping (line 10) | type Mapping struct function ParseValue (line 189) | func ParseValue(value sql.RawBytes) (float64, error) { FILE: plugins/inputs/mysql/v2/convert.go type conversionFunc (line 12) | type conversionFunc function ParseInt (line 16) | func ParseInt(value sql.RawBytes) (interface{}, error) { function ParseUint (line 31) | func ParseUint(value sql.RawBytes) (interface{}, error) { function ParseFloat (line 37) | func ParseFloat(value sql.RawBytes) (interface{}, error) { function ParseBoolAsInteger (line 43) | func ParseBoolAsInteger(value sql.RawBytes) (interface{}, error) { function ParseString (line 53) | func ParseString(value sql.RawBytes) (interface{}, error) { function parseWsrepLatency (line 60) | func parseWsrepLatency(value sql.RawBytes) (interface{}, error) { function parseWsrepProviderOptions (line 82) | func parseWsrepProviderOptions(value sql.RawBytes) (interface{}, error) { function ParseGTIDMode (line 142) | func ParseGTIDMode(value sql.RawBytes) (interface{}, error) { function ParseValue (line 161) | func ParseValue(value sql.RawBytes) (interface{}, error) { function ConvertGlobalStatus (line 242) | func ConvertGlobalStatus(key string, value sql.RawBytes) (interface{}, e... function ConvertGlobalVariables (line 256) | func ConvertGlobalVariables(key string, value sql.RawBytes) (interface{}... FILE: plugins/inputs/mysql/v2/convert_test.go function TestConvertGlobalStatus (line 11) | func TestConvertGlobalStatus(t *testing.T) { function TestConvertGlobalVariables (line 63) | func TestConvertGlobalVariables(t *testing.T) { function TestParseValue (line 130) | func TestParseValue(t *testing.T) { FILE: plugins/inputs/nats/nats.go type Nats (line 25) | type Nats struct method SampleConfig (line 32) | func (*Nats) SampleConfig() string { method Gather (line 36) | func (n *Nats) Gather(acc telegraf.Accumulator) error { method createHTTPClient (line 86) | func (n *Nats) createHTTPClient() *http.Client { function init (line 100) | func init() { FILE: plugins/inputs/nats/nats_test.go function TestMetricsCorrect (line 70) | func TestMetricsCorrect(t *testing.T) { FILE: plugins/inputs/nats_consumer/nats_consumer.go type NatsConsumer (line 28) | type NatsConsumer struct method SampleConfig (line 79) | func (*NatsConsumer) SampleConfig() string { method SetParser (line 83) | func (n *NatsConsumer) SetParser(parser telegraf.Parser) { method Start (line 88) | func (n *NatsConsumer) Start(acc telegraf.Accumulator) error { method Gather (line 209) | func (*NatsConsumer) Gather(telegraf.Accumulator) error { method Stop (line 213) | func (n *NatsConsumer) Stop() { method natsErrHandler (line 219) | func (n *NatsConsumer) natsErrHandler(c *nats.Conn, s *nats.Subscripti... method receiver (line 229) | func (n *NatsConsumer) receiver(ctx context.Context) { method waitForDelivery (line 286) | func (n *NatsConsumer) waitForDelivery(ctx context.Context) { method clean (line 316) | func (n *NatsConsumer) clean() { type empty (line 64) | type empty struct type semaphore (line 65) | type semaphore type natsError (line 68) | type natsError struct method Error (line 74) | func (e natsError) Error() string { function init (line 336) | func init() { FILE: plugins/inputs/nats_consumer/nats_consumer_test.go function TestIntegrationStartStop (line 17) | func TestIntegrationStartStop(t *testing.T) { function TestIntegrationSendReceive (line 45) | func TestIntegrationSendReceive(t *testing.T) { function TestJetStreamIntegrationSendReceive (line 190) | func TestJetStreamIntegrationSendReceive(t *testing.T) { function TestJetStreamIntegrationSourcedStreamNotFound (line 285) | func TestJetStreamIntegrationSourcedStreamNotFound(t *testing.T) { function TestJetStreamIntegrationSourcedStreamFound (line 340) | func TestJetStreamIntegrationSourcedStreamFound(t *testing.T) { type sender (line 395) | type sender struct method connect (line 400) | func (s *sender) connect() error { method disconnect (line 410) | func (s *sender) disconnect() { method send (line 418) | func (s *sender) send(topic, msg string) error { FILE: plugins/inputs/neoom_beaam/neoom_beaam.go type NeoomBeaam (line 27) | type NeoomBeaam struct method SampleConfig (line 39) | func (*NeoomBeaam) SampleConfig() string { method Init (line 43) | func (n *NeoomBeaam) Init() error { method Start (line 58) | func (n *NeoomBeaam) Start(telegraf.Accumulator) error { method Gather (line 71) | func (n *NeoomBeaam) Gather(acc telegraf.Accumulator) error { method Stop (line 94) | func (n *NeoomBeaam) Stop() { method updateConfiguration (line 100) | func (n *NeoomBeaam) updateConfiguration() error { method queryEnergyFlow (line 152) | func (n *NeoomBeaam) queryEnergyFlow(acc telegraf.Accumulator) error { method queryThing (line 221) | func (n *NeoomBeaam) queryThing(acc telegraf.Accumulator, thing thingD... function init (line 301) | func init() { FILE: plugins/inputs/neoom_beaam/neoom_beaam_test.go function TestCases (line 21) | func TestCases(t *testing.T) { FILE: plugins/inputs/neoom_beaam/types.go type site (line 3) | type site struct type siteState (line 10) | type siteState struct type thingDefinition (line 16) | type thingDefinition struct type thingState (line 22) | type thingState struct type datapoint (line 27) | type datapoint struct type state (line 33) | type state struct FILE: plugins/inputs/neptune_apex/neptune_apex.go constant Measurement (line 28) | Measurement = "neptune_apex" type NeptuneApex (line 30) | type NeptuneApex struct method SampleConfig (line 63) | func (*NeptuneApex) SampleConfig() string { method Gather (line 67) | func (n *NeptuneApex) Gather(acc telegraf.Accumulator) error { method gatherServer (line 80) | func (n *NeptuneApex) gatherServer( method sendRequest (line 243) | func (n *NeptuneApex) sendRequest(server string) ([]byte, error) { type xmlReply (line 36) | type xmlReply struct type probe (line 49) | type probe struct type outlet (line 55) | type outlet struct function parseXML (line 91) | func parseXML(acc telegraf.Accumulator, data []byte) error { function findProbe (line 212) | func findProbe(probe string, probes []probe) int { function parseTime (line 223) | func parseTime(val string, tz float64) (time.Time, error) { function init (line 263) | func init() { FILE: plugins/inputs/neptune_apex/neptune_apex_test.go function TestGather (line 17) | func TestGather(t *testing.T) { function TestParseXML (line 59) | func TestParseXML(t *testing.T) { function TestSendRequest (line 379) | func TestSendRequest(t *testing.T) { function TestParseTime (line 432) | func TestParseTime(t *testing.T) { function TestFindProbe (line 479) | func TestFindProbe(t *testing.T) { function fakeHTTPClient (line 519) | func fakeHTTPClient(h http.Handler) (*http.Client, func()) { constant apex2016 (line 533) | apex2016 = ` FILE: plugins/inputs/net/net.go type Net (line 23) | type Net struct method SampleConfig (line 32) | func (*Net) SampleConfig() string { method Init (line 36) | func (n *Net) Init() error { method Gather (line 45) | func (n *Net) Gather(acc telegraf.Accumulator) error { function getInterfaceSpeed (line 114) | func getInterfaceSpeed(ioName string) int64 { function init (line 129) | func init() { FILE: plugins/inputs/net/net_test.go function TestNetIOStats (line 17) | func TestNetIOStats(t *testing.T) { function TestNetIOStatsSpeedUnsupported (line 64) | func TestNetIOStatsSpeedUnsupported(t *testing.T) { function TestNetIOStatsNoSpeedFile (line 111) | func TestNetIOStatsNoSpeedFile(t *testing.T) { FILE: plugins/inputs/net_response/net_response.go type resultType (line 23) | type resultType constant success (line 26) | success resultType = 0 constant timeout (line 27) | timeout resultType = 1 constant connectionFailed (line 28) | connectionFailed resultType = 2 constant readFailed (line 29) | readFailed resultType = 3 constant stringMismatch (line 30) | stringMismatch resultType = 4 type NetResponse (line 33) | type NetResponse struct method SampleConfig (line 42) | func (*NetResponse) SampleConfig() string { method Init (line 46) | func (n *NetResponse) Init() error { method Gather (line 80) | func (n *NetResponse) Gather(acc telegraf.Accumulator) error { method tcpGather (line 117) | func (n *NetResponse) tcpGather() (map[string]string, map[string]inter... method udpGather (line 180) | func (n *NetResponse) udpGather() (map[string]string, map[string]inter... function setResult (line 236) | func setResult(result resultType, fields map[string]interface{}, tags ma... function init (line 263) | func init() { FILE: plugins/inputs/net_response/net_response_test.go function TestBadProtocol (line 15) | func TestBadProtocol(t *testing.T) { function TestNoPort (line 27) | func TestNoPort(t *testing.T) { function TestAddressOnly (line 37) | func TestAddressOnly(t *testing.T) { function TestSendExpectStrings (line 47) | func TestSendExpectStrings(t *testing.T) { function TestTCPError (line 68) | func TestTCPError(t *testing.T) { function TestTCPOK1 (line 94) | func TestTCPOK1(t *testing.T) { function TestTCPOK2 (line 139) | func TestTCPOK2(t *testing.T) { function TestUDPError (line 185) | func TestUDPError(t *testing.T) { function TestUDPOK1 (line 221) | func TestUDPOK1(t *testing.T) { function udpServer (line 267) | func udpServer(t *testing.T, wg *sync.WaitGroup) { function tcpServer (line 300) | func tcpServer(t *testing.T, wg *sync.WaitGroup) { FILE: plugins/inputs/netflow/mappings.go function loadMapping (line 22) | func loadMapping(filename string) (map[string]fieldMapping, error) { FILE: plugins/inputs/netflow/netflow.go type NetFlow (line 22) | type NetFlow struct method SampleConfig (line 40) | func (*NetFlow) SampleConfig() string { method Init (line 44) | func (n *NetFlow) Init() error { method Start (line 85) | func (n *NetFlow) Start(acc telegraf.Accumulator) error { method Gather (line 117) | func (*NetFlow) Gather(telegraf.Accumulator) error { method Stop (line 121) | func (n *NetFlow) Stop() { method read (line 128) | func (n *NetFlow) read(acc telegraf.Accumulator) { type protocolDecoder (line 35) | type protocolDecoder interface function init (line 158) | func init() { FILE: plugins/inputs/netflow/netflow_decoder.go type decoderFunc (line 20) | type decoderFunc type fieldMapping (line 22) | type fieldMapping struct type netflowDecoder (line 532) | type netflowDecoder struct method decode (line 545) | func (d *netflowDecoder) decode(srcIP net.IP, payload []byte) ([]teleg... method init (line 694) | func (d *netflowDecoder) init() error { method decodeValueV9 (line 729) | func (d *netflowDecoder) decodeValueV9(field netflow.DataField) ([]tel... method decodeValueIPFIX (line 797) | func (d *netflowDecoder) decodeValueIPFIX(field netflow.DataField) ([]... FILE: plugins/inputs/netflow/netflow_test.go function TestInit (line 25) | func TestInit(t *testing.T) { function TestMissingTemplate (line 120) | func TestMissingTemplate(t *testing.T) { function TestWrongMapping (line 162) | func TestWrongMapping(t *testing.T) { function TestCases (line 173) | func TestCases(t *testing.T) { function createClient (line 288) | func createClient(endpoint string, addr net.Addr) (net.Conn, error) { FILE: plugins/inputs/netflow/netflow_v5.go type netflowv5Decoder (line 16) | type netflowv5Decoder struct method init (line 18) | func (*netflowv5Decoder) init() error { method decode (line 25) | func (*netflowv5Decoder) decode(srcIP net.IP, payload []byte) ([]teleg... FILE: plugins/inputs/netflow/sflow_v5.go type sflowv5Decoder (line 21) | type sflowv5Decoder struct method init (line 28) | func (d *sflowv5Decoder) init() error { method decode (line 38) | func (d *sflowv5Decoder) decode(srcIP net.IP, payload []byte) ([]teleg... method decodeFlowRecords (line 207) | func (d *sflowv5Decoder) decodeFlowRecords(records []sflow.FlowRecord)... method decodeRawHeaderSample (line 335) | func (d *sflowv5Decoder) decodeRawHeaderSample(record *sflow.SampledHe... method decodeCounterRecords (line 470) | func (d *sflowv5Decoder) decodeCounterRecords(records []sflow.CounterR... FILE: plugins/inputs/netflow/type_conversion.go function initL4ProtoMapping (line 30) | func initL4ProtoMapping() error { function initIPv4OptionMapping (line 60) | func initIPv4OptionMapping() error { function decodeInt (line 86) | func decodeInt(b []byte) (interface{}, error) { function decodeUint (line 102) | func decodeUint(b []byte) (interface{}, error) { function decodeFloat32 (line 118) | func decodeFloat32(b []byte) (interface{}, error) { function decodeFloat64 (line 123) | func decodeFloat64(b []byte) (interface{}, error) { function decodeBool (line 129) | func decodeBool(b []byte) (interface{}, error) { function decodeHex (line 142) | func decodeHex(b []byte) (interface{}, error) { function decodeString (line 149) | func decodeString(b []byte) (interface{}, error) { function decodeMAC (line 153) | func decodeMAC(b []byte) (interface{}, error) { function decodeIP (line 158) | func decodeIP(b []byte) (interface{}, error) { function decodeIPFromUint32 (line 163) | func decodeIPFromUint32(a uint32) (interface{}, error) { function decodeL4Proto (line 169) | func decodeL4Proto(b []byte) (interface{}, error) { function mapL4Proto (line 173) | func mapL4Proto(id uint8) string { function decodeIPv4Options (line 181) | func decodeIPv4Options(b []byte) (interface{}, error) { function decodeTCPFlags (line 198) | func decodeTCPFlags(b []byte) (interface{}, error) { function mapTCPFlags (line 222) | func mapTCPFlags(flags uint8) string { function decodeFragmentFlags (line 247) | func decodeFragmentFlags(b []byte) (interface{}, error) { function decodeSampleAlgo (line 272) | func decodeSampleAlgo(b []byte) (interface{}, error) { function decodeEngineType (line 282) | func decodeEngineType(b []byte) (interface{}, error) { function mapEngineType (line 286) | func mapEngineType(b uint8) string { function decodeMPLSType (line 298) | func decodeMPLSType(b []byte) (interface{}, error) { function decodeIPVersion (line 326) | func decodeIPVersion(b []byte) (interface{}, error) { function decodePacketIPVersion (line 336) | func decodePacketIPVersion(v uint8) string { function decodeDirection (line 347) | func decodeDirection(b []byte) (interface{}, error) { function decodeFwdStatus (line 358) | func decodeFwdStatus(b []byte) (interface{}, error) { function decodeFwdReason (line 373) | func decodeFwdReason(b []byte) (interface{}, error) { function decodeFWEvent (line 434) | func decodeFWEvent(b []byte) (interface{}, error) { function decodeFlowEndReason (line 453) | func decodeFlowEndReason(b []byte) (interface{}, error) { function decodeBiflowDirection (line 472) | func decodeBiflowDirection(b []byte) (interface{}, error) { function decodeOpsPointType (line 487) | func decodeOpsPointType(b []byte) (interface{}, error) { function decodeAnonStabilityClass (line 501) | func decodeAnonStabilityClass(b []byte) (interface{}, error) { function decodeAnonFlags (line 513) | func decodeAnonFlags(b []byte) (interface{}, error) { function decodeAnonTechnique (line 527) | func decodeAnonTechnique(b []byte) (interface{}, error) { function decodeTechnology (line 554) | func decodeTechnology(b []byte) (interface{}, error) { function decodeIPNatType (line 575) | func decodeIPNatType(b []byte) (interface{}, error) { function decodeSelectorAlgorithm (line 597) | func decodeSelectorAlgorithm(b []byte) (interface{}, error) { function decodeValueDistMethod (line 625) | func decodeValueDistMethod(b []byte) (interface{}, error) { function decodeDataLinkFrameType (line 648) | func decodeDataLinkFrameType(b []byte) (interface{}, error) { function decodeCaptureTimeSemantics (line 659) | func decodeCaptureTimeSemantics(b []byte) (interface{}, error) { function decodeSflowIPVersion (line 675) | func decodeSflowIPVersion(v uint32) string { function decodeSflowSourceInterface (line 687) | func decodeSflowSourceInterface(t uint32) string { function decodeSflowHeaderProtocol (line 699) | func decodeSflowHeaderProtocol(t uint32) string { function decodeByteFunc (line 731) | func decodeByteFunc(idx int) decoderFunc { FILE: plugins/inputs/netflow/type_conversion_test.go function TestDecodeInt32 (line 12) | func TestDecodeInt32(t *testing.T) { function TestDecodeUint (line 21) | func TestDecodeUint(t *testing.T) { function TestDecodeUintInvalid (line 60) | func TestDecodeUintInvalid(t *testing.T) { function TestDecodeFloat64 (line 65) | func TestDecodeFloat64(t *testing.T) { function TestDecodeBool (line 74) | func TestDecodeBool(t *testing.T) { function TestDecodeHex (line 111) | func TestDecodeHex(t *testing.T) { function TestDecodeString (line 120) | func TestDecodeString(t *testing.T) { function TestDecodeMAC (line 129) | func TestDecodeMAC(t *testing.T) { function TestDecodeIP (line 138) | func TestDecodeIP(t *testing.T) { function TestDecodeIPFromUint32 (line 192) | func TestDecodeIPFromUint32(t *testing.T) { function TestDecodeLayer4ProtocolNumber (line 201) | func TestDecodeLayer4ProtocolNumber(t *testing.T) { function TestDecodeIPv4Options (line 262) | func TestDecodeIPv4Options(t *testing.T) { function TestDecodeTCPFlags (line 316) | func TestDecodeTCPFlags(t *testing.T) { function TestDecodeFragmentFlags (line 415) | func TestDecodeFragmentFlags(t *testing.T) { FILE: plugins/inputs/netstat/netstat.go type NetStat (line 17) | type NetStat struct method SampleConfig (line 21) | func (*NetStat) SampleConfig() string { method Gather (line 25) | func (ns *NetStat) Gather(acc telegraf.Accumulator) error { function init (line 67) | func init() { FILE: plugins/inputs/netstat/netstat_test.go function TestNetStats (line 17) | func TestNetStats(t *testing.T) { FILE: plugins/inputs/nfsclient/nfsclient.go type NFSClient (line 22) | type NFSClient struct method SampleConfig (line 37) | func (*NFSClient) SampleConfig() string { method Init (line 41) | func (n *NFSClient) Init() error { method Gather (line 224) | func (n *NFSClient) Gather(acc telegraf.Accumulator) error { method parseStat (line 250) | func (n *NFSClient) parseStat(mountpoint, export, version string, line... method processText (line 408) | func (n *NFSClient) processText(scanner *bufio.Scanner, acc telegraf.A... method getMountStatsPath (line 469) | func (n *NFSClient) getMountStatsPath() string { function convertToUint64 (line 478) | func convertToUint64(line []string) ([]uint64, error) { function init (line 510) | func init() { FILE: plugins/inputs/nfsclient/nfsclient_test.go function getMountStatsPath (line 14) | func getMountStatsPath() string { function TestNFSClientParsev3 (line 23) | func TestNFSClientParsev3(t *testing.T) { function TestNFSClientParsev4 (line 46) | func TestNFSClientParsev4(t *testing.T) { function TestNFSClientParseLargeValue (line 69) | func TestNFSClientParseLargeValue(t *testing.T) { function TestNFSClientProcessStat (line 92) | func TestNFSClientProcessStat(t *testing.T) { function TestNFSClientProcessFull (line 141) | func TestNFSClientProcessFull(t *testing.T) { function TestNFSClientFileDoesNotExist (line 212) | func TestNFSClientFileDoesNotExist(t *testing.T) { function TestNFSClientProcessTextWithIncludeExclude (line 219) | func TestNFSClientProcessTextWithIncludeExclude(t *testing.T) { function TestNFSClientInvalidIncludeRegex (line 313) | func TestNFSClientInvalidIncludeRegex(t *testing.T) { function TestNFSClientInvalidExcludeRegex (line 328) | func TestNFSClientInvalidExcludeRegex(t *testing.T) { FILE: plugins/inputs/nftables/nftables.go type Nftables (line 21) | type Nftables struct method SampleConfig (line 30) | func (*Nftables) SampleConfig() string { method Init (line 34) | func (n *Nftables) Init() error { method Gather (line 71) | func (n *Nftables) Gather(acc telegraf.Accumulator) error { method gatherTable (line 78) | func (n *Nftables) gatherTable(acc telegraf.Accumulator, name string) ... function init (line 153) | func init() { FILE: plugins/inputs/nftables/nftables_notlinux.go type Nftables (line 16) | type Nftables struct method SampleConfig (line 20) | func (*Nftables) SampleConfig() string { return sampleConfig } method Init (line 22) | func (i *Nftables) Init() error { method Gather (line 27) | func (*Nftables) Gather(_ telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/nftables/nftables_test.go function TestCases (line 24) | func TestCases(t *testing.T) { function TestMain (line 102) | func TestMain(m *testing.M) { FILE: plugins/inputs/nftables/types.go type table (line 10) | type table struct method UnmarshalJSON (line 20) | func (nftable *table) UnmarshalJSON(b []byte) error { type metainfo (line 58) | type metainfo struct type rule (line 63) | type rule struct type expr (line 71) | type expr struct type anonymousCounter (line 75) | type anonymousCounter struct method UnmarshalJSON (line 84) | func (c *anonymousCounter) UnmarshalJSON(b []byte) error { type namedCounter (line 97) | type namedCounter struct type namedSet (line 105) | type namedSet struct type elem (line 112) | type elem struct FILE: plugins/inputs/nginx/nginx.go type Nginx (line 26) | type Nginx struct method SampleConfig (line 35) | func (*Nginx) SampleConfig() string { method Gather (line 39) | func (n *Nginx) Gather(acc telegraf.Accumulator) error { method createHTTPClient (line 70) | func (n *Nginx) createHTTPClient() (*http.Client, error) { method gatherURL (line 85) | func (n *Nginx) gatherURL(addr *url.URL, acc telegraf.Accumulator) err... function getTags (line 169) | func getTags(addr *url.URL) map[string]string { function init (line 185) | func init() { FILE: plugins/inputs/nginx/nginx_test.go constant nginxSampleResponse (line 16) | nginxSampleResponse = ` constant tengineSampleResponse (line 22) | tengineSampleResponse = ` function TestNginxTags (line 30) | func TestNginxTags(t *testing.T) { function TestNginxGeneratesMetrics (line 40) | func TestNginxGeneratesMetrics(t *testing.T) { FILE: plugins/inputs/nginx_plus/nginx_plus.go type NginxPlus (line 28) | type NginxPlus struct method SampleConfig (line 36) | func (*NginxPlus) SampleConfig() string { method Gather (line 40) | func (n *NginxPlus) Gather(acc telegraf.Accumulator) error { method createHTTPClient (line 72) | func (n *NginxPlus) createHTTPClient() (*http.Client, error) { method gatherURL (line 87) | func (n *NginxPlus) gatherURL(addr *url.URL, acc telegraf.Accumulator)... function getTags (line 106) | func getTags(addr *url.URL) map[string]string { type responseStats (line 122) | type responseStats struct type basicHitStats (line 131) | type basicHitStats struct type extendedHitStats (line 136) | type extendedHitStats struct type healthCheckStats (line 142) | type healthCheckStats struct type status (line 149) | type status struct method gather (line 279) | func (s *status) gather(tags map[string]string, acc telegraf.Accumulat... method gatherProcessesMetrics (line 290) | func (s *status) gatherProcessesMetrics(tags map[string]string, acc te... method gatherConnectionsMetrics (line 306) | func (s *status) gatherConnectionsMetrics(tags map[string]string, acc ... method gatherSslMetrics (line 319) | func (s *status) gatherSslMetrics(tags map[string]string, acc telegraf... method gatherRequestMetrics (line 331) | func (s *status) gatherRequestMetrics(tags map[string]string, acc tele... method gatherZoneMetrics (line 342) | func (s *status) gatherZoneMetrics(tags map[string]string, acc telegra... method gatherUpstreamMetrics (line 374) | func (s *status) gatherUpstreamMetrics(tags map[string]string, acc tel... method gatherCacheMetrics (line 450) | func (s *status) gatherCacheMetrics(tags map[string]string, acc telegr... method gatherStreamMetrics (line 489) | func (s *status) gatherStreamMetrics(tags map[string]string, acc teleg... function gatherStatusURL (line 269) | func gatherStatusURL(r *bufio.Reader, tags map[string]string, acc telegr... function init (line 561) | func init() { FILE: plugins/inputs/nginx_plus/nginx_plus_test.go constant sampleStatusResponse (line 16) | sampleStatusResponse = ` function TestNginxPlusGeneratesMetrics (line 251) | func TestNginxPlusGeneratesMetrics(t *testing.T) { FILE: plugins/inputs/nginx_plus_api/nginx_plus_api.go constant defaultAPIVersion (line 24) | defaultAPIVersion = 3 constant processesPath (line 27) | processesPath = "processes" constant connectionsPath (line 28) | connectionsPath = "connections" constant slabsPath (line 29) | slabsPath = "slabs" constant sslPath (line 30) | sslPath = "ssl" constant httpRequestsPath (line 32) | httpRequestsPath = "http/requests" constant httpServerZonesPath (line 33) | httpServerZonesPath = "http/server_zones" constant httpLocationZonesPath (line 34) | httpLocationZonesPath = "http/location_zones" constant httpUpstreamsPath (line 35) | httpUpstreamsPath = "http/upstreams" constant httpCachesPath (line 36) | httpCachesPath = "http/caches" constant httpLimitReqsPath (line 37) | httpLimitReqsPath = "http/limit_reqs" constant resolverZonesPath (line 38) | resolverZonesPath = "resolvers" constant streamServerZonesPath (line 40) | streamServerZonesPath = "stream/server_zones" constant streamUpstreamsPath (line 41) | streamUpstreamsPath = "stream/upstreams" type NginxPlusAPI (line 44) | type NginxPlusAPI struct method SampleConfig (line 53) | func (*NginxPlusAPI) SampleConfig() string { method Gather (line 57) | func (n *NginxPlusAPI) Gather(acc telegraf.Accumulator) error { method createHTTPClient (line 93) | func (n *NginxPlusAPI) createHTTPClient() (*http.Client, error) { function init (line 108) | func init() { FILE: plugins/inputs/nginx_plus_api/nginx_plus_api_metrics.go method gatherMetrics (line 22) | func (n *NginxPlusAPI) gatherMetrics(addr *url.URL, acc telegraf.Accumul... function addError (line 43) | func addError(acc telegraf.Accumulator, err error) { method gatherURL (line 55) | func (n *NginxPlusAPI) gatherURL(addr *url.URL, path string) ([]byte, er... method gatherProcessesMetrics (line 88) | func (n *NginxPlusAPI) gatherProcessesMetrics(addr *url.URL, acc telegra... method gatherConnectionsMetrics (line 111) | func (n *NginxPlusAPI) gatherConnectionsMetrics(addr *url.URL, acc teleg... method gatherSlabsMetrics (line 137) | func (n *NginxPlusAPI) gatherSlabsMetrics(addr *url.URL, acc telegraf.Ac... method gatherSslMetrics (line 190) | func (n *NginxPlusAPI) gatherSslMetrics(addr *url.URL, acc telegraf.Accu... method gatherHTTPRequestsMetrics (line 215) | func (n *NginxPlusAPI) gatherHTTPRequestsMetrics(addr *url.URL, acc tele... method gatherHTTPServerZonesMetrics (line 239) | func (n *NginxPlusAPI) gatherHTTPServerZonesMetrics(addr *url.URL, acc t... method gatherHTTPLocationZonesMetrics (line 286) | func (n *NginxPlusAPI) gatherHTTPLocationZonesMetrics(addr *url.URL, acc... method gatherHTTPUpstreamsMetrics (line 332) | func (n *NginxPlusAPI) gatherHTTPUpstreamsMetrics(addr *url.URL, acc tel... method gatherHTTPCachesMetrics (line 416) | func (n *NginxPlusAPI) gatherHTTPCachesMetrics(addr *url.URL, acc telegr... method gatherStreamServerZonesMetrics (line 470) | func (n *NginxPlusAPI) gatherStreamServerZonesMetrics(addr *url.URL, acc... method gatherResolverZonesMetrics (line 506) | func (n *NginxPlusAPI) gatherResolverZonesMetrics(addr *url.URL, acc tel... method gatherStreamUpstreamsMetrics (line 549) | func (n *NginxPlusAPI) gatherStreamUpstreamsMetrics(addr *url.URL, acc t... method gatherHTTPLimitReqsMetrics (line 619) | func (n *NginxPlusAPI) gatherHTTPLimitReqsMetrics(addr *url.URL, acc tel... function getTags (line 655) | func getTags(addr *url.URL) map[string]string { FILE: plugins/inputs/nginx_plus_api/nginx_plus_api_metrics_test.go constant processesPayload (line 16) | processesPayload = ` constant connectionsPayload (line 22) | connectionsPayload = ` constant slabsPayload (line 31) | slabsPayload = ` constant sslPayload (line 160) | sslPayload = ` constant resolverZonesPayload (line 168) | resolverZonesPayload = ` constant httpRequestsPayload (line 207) | httpRequestsPayload = ` constant httpServerZonesPayload (line 214) | httpServerZonesPayload = ` constant httpLimitReqsPayload (line 249) | httpLimitReqsPayload = ` constant httpLocationZonesPayload (line 268) | httpLocationZonesPayload = ` constant httpUpstreamsPayload (line 301) | httpUpstreamsPayload = ` constant httpCachesPayload (line 448) | httpCachesPayload = ` constant streamUpstreamsPayload (line 527) | streamUpstreamsPayload = ` constant streamServerZonesPayload (line 640) | streamServerZonesPayload = ` function TestGatherProcessesMetrics (line 671) | func TestGatherProcessesMetrics(t *testing.T) { function TestGatherConnectionsMetrics (line 692) | func TestGatherConnectionsMetrics(t *testing.T) { function TestGatherSlabsMetrics (line 716) | func TestGatherSlabsMetrics(t *testing.T) { function TestGatherSslMetrics (line 781) | func TestGatherSslMetrics(t *testing.T) { function TestGatherHttpRequestsMetrics (line 804) | func TestGatherHttpRequestsMetrics(t *testing.T) { function TestGatherHttpServerZonesMetrics (line 826) | func TestGatherHttpServerZonesMetrics(t *testing.T) { function TestGatherHttpLimitReqsMetrics (line 880) | func TestGatherHttpLimitReqsMetrics(t *testing.T) { function TestGatherHttpLocationZonesMetrics (line 922) | func TestGatherHttpLocationZonesMetrics(t *testing.T) { function TestGatherHttpUpstreamsMetrics (line 974) | func TestGatherHttpUpstreamsMetrics(t *testing.T) { function TestGatherHttpCachesMetrics (line 1146) | func TestGatherHttpCachesMetrics(t *testing.T) { function TestGatherResolverZonesMetrics (line 1224) | func TestGatherResolverZonesMetrics(t *testing.T) { function TestGatherStreamUpstreams (line 1278) | func TestGatherStreamUpstreams(t *testing.T) { function TestGatherStreamServerZonesMetrics (line 1420) | func TestGatherStreamServerZonesMetrics(t *testing.T) { function TestUnavailableEndpoints (line 1460) | func TestUnavailableEndpoints(t *testing.T) { function TestServerError (line 1478) | func TestServerError(t *testing.T) { function TestMalformedJSON (line 1496) | func TestMalformedJSON(t *testing.T) { function TestUnknownContentType (line 1519) | func TestUnknownContentType(t *testing.T) { function prepareAddr (line 1537) | func prepareAddr(t *testing.T, ts *httptest.Server) (addr *url.URL, host... function prepareEndpoint (line 1557) | func prepareEndpoint(t *testing.T, path, payload string) (*httptest.Serv... FILE: plugins/inputs/nginx_plus_api/nginx_plus_api_types.go type processes (line 3) | type processes struct type connections (line 7) | type connections struct type slabs (line 14) | type slabs type ssl (line 27) | type ssl struct type resolverZones (line 33) | type resolverZones type httpRequests (line 51) | type httpRequests struct type responseStats (line 56) | type responseStats struct type httpServerZones (line 65) | type httpServerZones type httpLocationZones (line 74) | type httpLocationZones type healthCheckStats (line 82) | type healthCheckStats struct type httpUpstreams (line 89) | type httpUpstreams type streamServerZones (line 119) | type streamServerZones type streamUpstreams (line 128) | type streamUpstreams type basicHitStats (line 150) | type basicHitStats struct type extendedHitStats (line 155) | type extendedHitStats struct type httpCaches (line 161) | type httpCaches type httpLimitReqs (line 174) | type httpLimitReqs FILE: plugins/inputs/nginx_sts/nginx_sts.go type NginxSTS (line 27) | type NginxSTS struct method SampleConfig (line 35) | func (*NginxSTS) SampleConfig() string { method Gather (line 39) | func (n *NginxSTS) Gather(acc telegraf.Accumulator) error { method createHTTPClient (line 71) | func (n *NginxSTS) createHTTPClient() (*http.Client, error) { method gatherURL (line 86) | func (n *NginxSTS) gatherURL(addr *url.URL, acc telegraf.Accumulator) ... type nginxSTSResponse (line 105) | type nginxSTSResponse struct type server (line 121) | type server struct type upstream (line 136) | type upstream struct function gatherStatusURL (line 163) | func gatherStatusURL(r *bufio.Reader, tags map[string]string, acc telegr... function getTags (line 267) | func getTags(addr *url.URL) map[string]string { function init (line 283) | func init() { FILE: plugins/inputs/nginx_sts/nginx_sts_test.go constant sampleStatusResponse (line 16) | sampleStatusResponse = ` function TestNginxPlusGeneratesMetrics (line 165) | func TestNginxPlusGeneratesMetrics(t *testing.T) { FILE: plugins/inputs/nginx_upstream_check/nginx_upstream_check.go type NginxUpstreamCheck (line 24) | type NginxUpstreamCheck struct method SampleConfig (line 58) | func (*NginxUpstreamCheck) SampleConfig() string { method Gather (line 62) | func (check *NginxUpstreamCheck) Gather(accumulator telegraf.Accumulat... method createHTTPClient (line 86) | func (check *NginxUpstreamCheck) createHTTPClient() (*http.Client, err... method gatherJSONData (line 98) | func (check *NginxUpstreamCheck) gatherJSONData(address string, value ... method gatherStatusData (line 141) | func (check *NginxUpstreamCheck) gatherStatusData(address string, accu... type nginxUpstreamCheckData (line 39) | type nginxUpstreamCheckData struct type nginxUpstreamCheckServer (line 47) | type nginxUpstreamCheckServer struct function getStatusCode (line 171) | func getStatusCode(status string) uint8 { function newNginxUpstreamCheck (line 182) | func newNginxUpstreamCheck() *NginxUpstreamCheck { function init (line 194) | func init() { FILE: plugins/inputs/nginx_upstream_check/nginx_upstream_check_test.go constant sampleStatusResponse (line 14) | sampleStatusResponse = ` function TestNginxUpstreamCheckData (line 44) | func TestNginxUpstreamCheckData(test *testing.T) { function TestNginxUpstreamCheckRequest (line 104) | func TestNginxUpstreamCheckRequest(test *testing.T) { FILE: plugins/inputs/nginx_vts/nginx_vts.go type NginxVTS (line 27) | type NginxVTS struct method SampleConfig (line 35) | func (*NginxVTS) SampleConfig() string { method Gather (line 39) | func (n *NginxVTS) Gather(acc telegraf.Accumulator) error { method createHTTPClient (line 71) | func (n *NginxVTS) createHTTPClient() (*http.Client, error) { method gatherURL (line 86) | func (n *NginxVTS) gatherURL(addr *url.URL, acc telegraf.Accumulator) ... type nginxVTSResponse (line 105) | type nginxVTSResponse struct type server (line 121) | type server struct type upstream (line 143) | type upstream struct type cache (line 164) | type cache struct function gatherStatusURL (line 181) | func gatherStatusURL(r *bufio.Reader, tags map[string]string, acc telegr... function getTags (line 319) | func getTags(addr *url.URL) map[string]string { function init (line 335) | func init() { FILE: plugins/inputs/nginx_vts/nginx_vts_test.go constant sampleStatusResponse (line 16) | sampleStatusResponse = ` function TestNginxPlusGeneratesMetrics (line 202) | func TestNginxPlusGeneratesMetrics(t *testing.T) { FILE: plugins/inputs/nomad/nomad.go constant timeLayout (line 21) | timeLayout = "2006-01-02 15:04:05 -0700 MST" type Nomad (line 23) | type Nomad struct method SampleConfig (line 31) | func (*Nomad) SampleConfig() string { method Init (line 35) | func (n *Nomad) Init() error { method Gather (line 54) | func (n *Nomad) Gather(acc telegraf.Accumulator) error { method loadJSON (line 69) | func (n *Nomad) loadJSON(url string, v interface{}) error { function buildNomadMetrics (line 94) | func buildNomadMetrics(acc telegraf.Accumulator, summaryMetrics *metrics... function init (line 154) | func init() { FILE: plugins/inputs/nomad/nomad_metrics.go type metricsSummary (line 7) | type metricsSummary struct type gaugeValue (line 15) | type gaugeValue struct type pointValue (line 24) | type pointValue struct type sampledValue (line 29) | type sampledValue struct type AggregateSample (line 41) | type AggregateSample struct type label (line 51) | type label struct FILE: plugins/inputs/nomad/nomad_test.go function TestNomadStats (line 17) | func TestNomadStats(t *testing.T) { FILE: plugins/inputs/nsd/nsd.go type NSD (line 29) | type NSD struct method SampleConfig (line 41) | func (*NSD) SampleConfig() string { method Gather (line 45) | func (s *NSD) Gather(acc telegraf.Accumulator) error { type runner (line 39) | type runner function nsdRunner (line 103) | func nsdRunner(cmdName string, timeout config.Duration, useSudo bool, se... function init (line 136) | func init() { FILE: plugins/inputs/nsd/nsd_test.go function nsdControl (line 13) | func nsdControl(output string) func(string, config.Duration, bool, strin... function TestParseFullOutput (line 19) | func TestParseFullOutput(t *testing.T) { FILE: plugins/inputs/nsdp/nsdp.go type NSDP (line 22) | type NSDP struct method SampleConfig (line 31) | func (*NSDP) SampleConfig() string { method Init (line 35) | func (n *NSDP) Init() error { method Start (line 45) | func (n *NSDP) Start(telegraf.Accumulator) error { method Stop (line 56) | func (n *NSDP) Stop() { method Gather (line 64) | func (n *NSDP) Gather(acc telegraf.Accumulator) error { function gatherDevice (line 92) | func gatherDevice(acc telegraf.Accumulator, device string, response *nsd... function init (line 130) | func init() { FILE: plugins/inputs/nsdp/nsdp_test.go function TestLoadConfig (line 16) | func TestLoadConfig(t *testing.T) { function TestInvalidTimeoutConfig (line 33) | func TestInvalidTimeoutConfig(t *testing.T) { function TestGather (line 42) | func TestGather(t *testing.T) { function loadExpectedMetrics (line 103) | func loadExpectedMetrics(t *testing.T, file string, vt telegraf.ValueTyp... FILE: plugins/inputs/nsq/nsq.go constant requestPattern (line 46) | requestPattern = `%s/stats?format=json` type NSQ (line 49) | type NSQ struct method SampleConfig (line 56) | func (*NSQ) SampleConfig() string { method Gather (line 60) | func (n *NSQ) Gather(acc telegraf.Accumulator) error { method getHTTPClient (line 83) | func (n *NSQ) getHTTPClient() (*http.Client, error) { method gatherEndpoint (line 98) | func (n *NSQ) gatherEndpoint(e string, acc telegraf.Accumulator) error { function buildURL (line 154) | func buildURL(e string) (*url.URL, error) { function gatherTopicStats (line 163) | func gatherTopicStats(t topicStats, acc telegraf.Accumulator, host, vers... function gatherChannelStats (line 184) | func gatherChannelStats(c channelStats, acc telegraf.Accumulator, host, ... function gatherClientStats (line 209) | func gatherClientStats(c clientStats, acc telegraf.Accumulator, host, ve... type nsqStats (line 238) | type nsqStats struct type nsqStatsData (line 244) | type nsqStatsData struct type topicStats (line 252) | type topicStats struct type channelStats (line 262) | type channelStats struct type clientStats (line 275) | type clientStats struct function newNSQ (line 299) | func newNSQ() *NSQ { function init (line 303) | func init() { FILE: plugins/inputs/nsq/nsq_test.go function TestNSQStatsV1 (line 15) | func TestNSQStatsV1(t *testing.T) { function TestNSQStatsPreV1 (line 275) | func TestNSQStatsPreV1(t *testing.T) { FILE: plugins/inputs/nsq_consumer/nsq_consumer.go constant defaultMaxUndeliveredMessages (line 20) | defaultMaxUndeliveredMessages = 1000 type NSQConsumer (line 23) | type NSQConsumer struct method SampleConfig (line 56) | func (*NSQConsumer) SampleConfig() string { method Init (line 60) | func (n *NSQConsumer) Init() error { method SetParser (line 70) | func (n *NSQConsumer) SetParser(parser telegraf.Parser) { method Start (line 74) | func (n *NSQConsumer) Start(ac telegraf.Accumulator) error { method Gather (line 136) | func (*NSQConsumer) Gather(telegraf.Accumulator) error { method Stop (line 140) | func (n *NSQConsumer) Stop() { method onDelivery (line 147) | func (n *NSQConsumer) onDelivery(ctx context.Context, acc telegraf.Tra... method connect (line 172) | func (n *NSQConsumer) connect() error { type empty (line 42) | type empty struct type semaphore (line 43) | type semaphore type logger (line 46) | type logger struct method Output (line 51) | func (l *logger) Output(_ int, s string) error { function init (line 185) | func init() { FILE: plugins/inputs/nsq_consumer/nsq_consumer_test.go function TestReadsMetricsFromNSQ (line 22) | func TestReadsMetricsFromNSQ(t *testing.T) { function waitForPoint (line 77) | func waitForPoint(acc *testutil.Accumulator, t *testing.T) { function newMockNSQD (line 97) | func newMockNSQD(t *testing.T, script []instruction, addr string) *mockN... type instruction (line 116) | type instruction struct type mockNSQD (line 122) | type mockNSQD struct method listen (line 130) | func (n *mockNSQD) listen() { method handle (line 141) | func (n *mockNSQD) handle(conn net.Conn) { function framedResponse (line 228) | func framedResponse(frameType int32, data []byte) []byte { function frameMessage (line 244) | func frameMessage(m *nsq.Message) ([]byte, error) { FILE: plugins/inputs/nstat/nstat.go constant netNetstat (line 25) | netNetstat = "/net/netstat" constant netSnmp (line 26) | netSnmp = "/net/snmp" constant netSnmp6 (line 27) | netSnmp6 = "/net/snmp6" constant netProc (line 28) | netProc = "/proc" constant envNetstat (line 31) | envNetstat = "PROC_NET_NETSTAT" constant envSnmp (line 32) | envSnmp = "PROC_NET_SNMP" constant envSnmp6 (line 33) | envSnmp6 = "PROC_NET_SNMP6" constant envRoot (line 34) | envRoot = "PROC_ROOT" type Nstat (line 37) | type Nstat struct method SampleConfig (line 44) | func (*Nstat) SampleConfig() string { method Gather (line 48) | func (ns *Nstat) Gather(acc telegraf.Accumulator) error { method gatherNetstat (line 77) | func (ns *Nstat) gatherNetstat(data []byte, acc telegraf.Accumulator) { method gatherSNMP (line 85) | func (ns *Nstat) gatherSNMP(data []byte, acc telegraf.Accumulator) { method gatherSNMP6 (line 93) | func (ns *Nstat) gatherSNMP6(data []byte, acc telegraf.Accumulator) { method loadPaths (line 103) | func (ns *Nstat) loadPaths() { method loadGoodTable (line 117) | func (ns *Nstat) loadGoodTable(table []byte) map[string]interface{} { method loadUglyTable (line 145) | func (ns *Nstat) loadUglyTable(table []byte) map[string]interface{} { function proc (line 183) | func proc(env, path string) string { function init (line 196) | func init() { FILE: plugins/inputs/nstat/nstat_test.go function TestLoadUglyTable (line 5) | func TestLoadUglyTable(t *testing.T) { function TestLoadGoodTable (line 28) | func TestLoadGoodTable(t *testing.T) { FILE: plugins/inputs/ntpq/ntpq.go type elementType (line 30) | type elementType constant none (line 33) | none elementType = iota constant tag (line 34) | tag constant fieldFloat (line 35) | fieldFloat constant fieldDuration (line 36) | fieldDuration constant fieldIntDecimal (line 37) | fieldIntDecimal constant fieldIntOctal (line 38) | fieldIntOctal constant fieldIntRatio8 (line 39) | fieldIntRatio8 constant fieldIntBits (line 40) | fieldIntBits type NTPQ (line 43) | type NTPQ struct method SampleConfig (line 74) | func (*NTPQ) SampleConfig() string { method Init (line 78) | func (n *NTPQ) Init() error { method Gather (line 134) | func (n *NTPQ) Gather(acc telegraf.Accumulator) error { method gatherServer (line 141) | func (n *NTPQ) gatherServer(acc telegraf.Accumulator, server string) { type column (line 51) | type column struct function processLine (line 311) | func processLine(line string) (string, []string) { function init (line 324) | func init() { FILE: plugins/inputs/ntpq/ntpq_test.go function TestInitInvalid (line 21) | func TestInitInvalid(t *testing.T) { function TestCases (line 41) | func TestCases(t *testing.T) { function readInputData (line 122) | func readInputData(path string) (map[string][]byte, map[string]error, er... FILE: plugins/inputs/nvidia_smi/common/setters.go function SetTagIfUsed (line 9) | func SetTagIfUsed(m map[string]string, k, v string) { function SetIfUsed (line 16) | func SetIfUsed(t string, m map[string]interface{}, k, v string) { FILE: plugins/inputs/nvidia_smi/nvidia_smi.go type NvidiaSMI (line 28) | type NvidiaSMI struct method SampleConfig (line 38) | func (*NvidiaSMI) SampleConfig() string { method Start (line 42) | func (smi *NvidiaSMI) Start(telegraf.Accumulator) error { method Stop (line 54) | func (*NvidiaSMI) Stop() {} method Probe (line 56) | func (smi *NvidiaSMI) Probe() error { method Gather (line 65) | func (smi *NvidiaSMI) Gather(acc telegraf.Accumulator) error { method parse (line 80) | func (smi *NvidiaSMI) parse(acc telegraf.Accumulator, data []byte) err... function init (line 127) | func init() { FILE: plugins/inputs/nvidia_smi/nvidia_smi_test.go function TestProbe (line 19) | func TestProbe(t *testing.T) { function TestErrorBehaviorDefault (line 67) | func TestErrorBehaviorDefault(t *testing.T) { function TestErrorBehaviorError (line 85) | func TestErrorBehaviorError(t *testing.T) { function TestErrorBehaviorRetry (line 104) | func TestErrorBehaviorRetry(t *testing.T) { function TestErrorBehaviorIgnore (line 123) | func TestErrorBehaviorIgnore(t *testing.T) { function TestGatherValidXML (line 142) | func TestGatherValidXML(t *testing.T) { FILE: plugins/inputs/nvidia_smi/schema_v11/parser.go function Parse (line 12) | func Parse(acc telegraf.Accumulator, buf []byte) error { FILE: plugins/inputs/nvidia_smi/schema_v11/types.go type smi (line 4) | type smi struct type gpu (line 11) | type gpu struct type eccMode (line 35) | type eccMode struct type memoryStats (line 41) | type memoryStats struct type memoryRetiredPages (line 49) | type memoryRetiredPages struct type memoryRemappedRows (line 61) | type memoryRemappedRows struct type tempStats (line 69) | type tempStats struct type utilizationStats (line 74) | type utilizationStats struct type powerReadings (line 82) | type powerReadings struct type pic (line 88) | type pic struct type encoderStats (line 100) | type encoderStats struct type fbcStats (line 107) | type fbcStats struct type clockStats (line 114) | type clockStats struct FILE: plugins/inputs/nvidia_smi/schema_v12/parser.go function Parse (line 13) | func Parse(acc telegraf.Accumulator, buf []byte) error { FILE: plugins/inputs/nvidia_smi/schema_v12/types.go type smi (line 4) | type smi struct FILE: plugins/inputs/opcua/opcua.go type OpcUA (line 18) | type OpcUA struct method SampleConfig (line 28) | func (*OpcUA) SampleConfig() string { method Init (line 32) | func (o *OpcUA) Init() (err error) { method Gather (line 37) | func (o *OpcUA) Gather(acc telegraf.Accumulator) error { function init (line 67) | func init() { FILE: plugins/inputs/opcua/opcua_test.go constant servicePort (line 20) | servicePort = "4840" type opcTags (line 22) | type opcTags struct function mapOPCTag (line 30) | func mapOPCTag(tags opcTags) (out input.NodeSettings) { function TestGetDataBadNodeContainerIntegration (line 38) | func TestGetDataBadNodeContainerIntegration(t *testing.T) { function TestReadClientIntegration (line 95) | func TestReadClientIntegration(t *testing.T) { function TestReadClientIntegrationAdditionalFields (line 153) | func TestReadClientIntegrationAdditionalFields(t *testing.T) { function TestReadClientIntegrationWithPasswordAuth (line 241) | func TestReadClientIntegrationWithPasswordAuth(t *testing.T) { function TestReadClientConfig (line 299) | func TestReadClientConfig(t *testing.T) { function TestUnregisteredReadsAndSessionRecoveryIntegration (line 438) | func TestUnregisteredReadsAndSessionRecoveryIntegration(t *testing.T) { function TestConsecutiveSessionErrorRecoveryIntegration (line 526) | func TestConsecutiveSessionErrorRecoveryIntegration(t *testing.T) { function TestReconnectErrorThresholdDefaultIntegration (line 616) | func TestReconnectErrorThresholdDefaultIntegration(t *testing.T) { function TestReconnectErrorThresholdZeroIntegration (line 686) | func TestReconnectErrorThresholdZeroIntegration(t *testing.T) { function TestReconnectErrorThresholdThreeIntegration (line 753) | func TestReconnectErrorThresholdThreeIntegration(t *testing.T) { FILE: plugins/inputs/opcua/read_client.go type readClientWorkarounds (line 18) | type readClientWorkarounds struct type readClientConfig (line 22) | type readClientConfig struct method createReadClient (line 49) | func (rc *readClientConfig) createReadClient(log telegraf.Logger) (*re... type readClient (line 31) | type readClient struct method connect (line 83) | func (o *readClient) connect() error { method ensureConnected (line 128) | func (o *readClient) ensureConnected() error { method currentValues (line 143) | func (o *readClient) currentValues() ([]telegraf.Metric, error) { method read (line 175) | func (o *readClient) read() error { function nodeTypeLabel (line 228) | func nodeTypeLabel(useUnregistered bool) string { FILE: plugins/inputs/opcua_listener/opcua_listener.go type OpcUaListener (line 17) | type OpcUaListener struct method SampleConfig (line 26) | func (*OpcUaListener) SampleConfig() string { method Init (line 30) | func (o *OpcUaListener) Init() (err error) { method Start (line 43) | func (o *OpcUaListener) Start(acc telegraf.Accumulator) error { method Gather (line 47) | func (o *OpcUaListener) Gather(acc telegraf.Accumulator) error { method Stop (line 54) | func (o *OpcUaListener) Stop() { method connect (line 65) | func (o *OpcUaListener) connect(acc telegraf.Accumulator) error { function init (line 86) | func init() { FILE: plugins/inputs/opcua_listener/opcua_listener_test.go constant servicePort (line 23) | servicePort = "4840" type opcTags (line 25) | type opcTags struct function mapOPCTag (line 33) | func mapOPCTag(tags opcTags) (out input.NodeSettings) { function TestInitPluginWithBadConnectFailBehaviorValue (line 41) | func TestInitPluginWithBadConnectFailBehaviorValue(t *testing.T) { function TestStartPlugin (line 65) | func TestStartPlugin(t *testing.T) { function TestSubscribeClientIntegration (line 131) | func TestSubscribeClientIntegration(t *testing.T) { function TestSubscribeClientIntegrationAdditionalFields (line 245) | func TestSubscribeClientIntegrationAdditionalFields(t *testing.T) { function TestSubscribeClientConfig (line 386) | func TestSubscribeClientConfig(t *testing.T) { function TestSubscribeClientConfigWithMonitoringParams (line 499) | func TestSubscribeClientConfigWithMonitoringParams(t *testing.T) { function TestSubscribeClientConfigInvalidTrigger (line 564) | func TestSubscribeClientConfigInvalidTrigger(t *testing.T) { function TestSubscribeClientConfigMissingTrigger (line 598) | func TestSubscribeClientConfigMissingTrigger(t *testing.T) { function TestSubscribeClientConfigInvalidDeadbandType (line 632) | func TestSubscribeClientConfigInvalidDeadbandType(t *testing.T) { function TestSubscribeClientConfigMissingDeadbandType (line 667) | func TestSubscribeClientConfigMissingDeadbandType(t *testing.T) { function TestSubscribeClientConfigInvalidDeadbandValue (line 701) | func TestSubscribeClientConfigInvalidDeadbandValue(t *testing.T) { function TestSubscribeClientConfigMissingDeadbandValue (line 738) | func TestSubscribeClientConfigMissingDeadbandValue(t *testing.T) { function TestSubscribeClientConfigValidMonitoringParams (line 773) | func TestSubscribeClientConfigValidMonitoringParams(t *testing.T) { function TestSubscribeClientConfigValidMonitoringParamsNoDeadband (line 828) | func TestSubscribeClientConfigValidMonitoringParamsNoDeadband(t *testing... function TestSubscribeClientConfigValidMonitoringAndEventParams (line 881) | func TestSubscribeClientConfigValidMonitoringAndEventParams(t *testing.T) { function TestSubscribeClientConfigValidEventStreamingParams (line 961) | func TestSubscribeClientConfigValidEventStreamingParams(t *testing.T) { function TestSubscribeClientConfigEventInputMissingSamplingInterval (line 1007) | func TestSubscribeClientConfigEventInputMissingSamplingInterval(t *testi... function TestSubscribeClientConfigEventInputMissingEventType (line 1047) | func TestSubscribeClientConfigEventInputMissingEventType(t *testing.T) { function TestSubscribeClientConfigEventMissingEventTypeNamespace (line 1083) | func TestSubscribeClientConfigEventMissingEventTypeNamespace(t *testing.... function TestSubscribeClientConfigEventMissingEventTypeIdentifierType (line 1123) | func TestSubscribeClientConfigEventMissingEventTypeIdentifierType(t *tes... function TestSubscribeClientConfigEventMissingEventTypeIdentifier (line 1163) | func TestSubscribeClientConfigEventMissingEventTypeIdentifier(t *testing... function TestSubscribeClientConfigEventInputMissingNodeIDs (line 1203) | func TestSubscribeClientConfigEventInputMissingNodeIDs(t *testing.T) { function TestSubscribeClientConfigEventInputMissingFields (line 1236) | func TestSubscribeClientConfigEventInputMissingFields(t *testing.T) { function TestSubscribeClientConfigEventInputInvalidFields (line 1276) | func TestSubscribeClientConfigEventInputInvalidFields(t *testing.T) { function TestSubscribeClientConfigValidEventStreamingDefaultNodeParams (line 1317) | func TestSubscribeClientConfigValidEventStreamingDefaultNodeParams(t *te... FILE: plugins/inputs/opcua_listener/subscribe_client.go type subscribeClientConfig (line 19) | type subscribeClientConfig struct method createSubscribeClient (line 92) | func (sc *subscribeClientConfig) createSubscribeClient(log telegraf.Lo... type subscribeClient (line 25) | type subscribeClient struct method connect (line 153) | func (o *subscribeClient) connect() error { method stop (line 179) | func (o *subscribeClient) stop(ctx context.Context) <-chan struct{} { method startMonitoring (line 194) | func (o *subscribeClient) startMonitoring(ctx context.Context) (<-chan... method processReceivedNotifications (line 248) | func (o *subscribeClient) processReceivedNotifications() { function checkDataChangeFilterParameters (line 39) | func checkDataChangeFilterParameters(params *input.DataChangeFilter) err... function assignConfigValuesToRequest (line 58) | func assignConfigValuesToRequest(req *ua.MonitoredItemCreateRequest, mon... FILE: plugins/inputs/openldap/openldap.go type Openldap (line 38) | type Openldap struct method SampleConfig (line 49) | func (*Openldap) SampleConfig() string { method Gather (line 53) | func (o *Openldap) Gather(acc telegraf.Accumulator) error { function gatherSearchResult (line 132) | func gatherSearchResult(sr *ldap.SearchResult, o *Openldap, acc telegraf... function dnToMetric (line 153) | func dnToMetric(dn string, o *Openldap) string { function newOpenldap (line 177) | func newOpenldap() *Openldap { function init (line 190) | func init() { FILE: plugins/inputs/openldap/openldap_test.go constant servicePort (line 17) | servicePort = "1389" constant servicePortSecure (line 18) | servicePortSecure = "1636" function TestOpenldapMockResult (line 21) | func TestOpenldapMockResult(t *testing.T) { function TestOpenldapNoConnectionIntegration (line 42) | func TestOpenldapNoConnectionIntegration(t *testing.T) { function TestOpenldapGeneratesMetricsIntegration (line 59) | func TestOpenldapGeneratesMetricsIntegration(t *testing.T) { function TestOpenldapStartTLSIntegration (line 96) | func TestOpenldapStartTLSIntegration(t *testing.T) { function TestOpenldapLDAPSIntegration (line 157) | func TestOpenldapLDAPSIntegration(t *testing.T) { function TestOpenldapInvalidTLSIntegration (line 214) | func TestOpenldapInvalidTLSIntegration(t *testing.T) { function TestOpenldapBindIntegration (line 269) | func TestOpenldapBindIntegration(t *testing.T) { function commonTests (line 308) | func commonTests(t *testing.T, o *Openldap, acc *testutil.Accumulator) { function TestOpenldapReverseMetricsIntegration (line 319) | func TestOpenldapReverseMetricsIntegration(t *testing.T) { FILE: plugins/inputs/openntpd/openntpd.go type Openntpd (line 46) | type Openntpd struct method SampleConfig (line 56) | func (*Openntpd) SampleConfig() string { method Gather (line 60) | func (n *Openntpd) Gather(acc telegraf.Accumulator) error { type runner (line 54) | type runner function openntpdRunner (line 172) | func openntpdRunner(cmdName string, timeout config.Duration, useSudo boo... function init (line 192) | func init() { FILE: plugins/inputs/openntpd/openntpd_test.go function openntpdCTL (line 13) | func openntpdCTL(output string) func(string, config.Duration, bool) (*by... function TestParseSimpleOutput (line 19) | func TestParseSimpleOutput(t *testing.T) { function TestParseSimpleOutputwithStatePrefix (line 50) | func TestParseSimpleOutputwithStatePrefix(t *testing.T) { function TestParseSimpleOutputInvalidPeer (line 82) | func TestParseSimpleOutputInvalidPeer(t *testing.T) { function TestParseSimpleOutputServersDNSError (line 110) | func TestParseSimpleOutputServersDNSError(t *testing.T) { function TestParseSimpleOutputServerDNSError (line 152) | func TestParseSimpleOutputServerDNSError(t *testing.T) { function TestParseFullOutput (line 180) | func TestParseFullOutput(t *testing.T) { FILE: plugins/inputs/opensearch_query/aggregation.bucket.go type bucketAggregationRequest (line 8) | type bucketAggregationRequest method addAggregation (line 10) | func (b bucketAggregationRequest) addAggregation(name, aggType, field ... method addNestedAggregation (line 25) | func (b bucketAggregationRequest) addNestedAggregation(name string, a ... method bucketSize (line 29) | func (b bucketAggregationRequest) bucketSize(name string, size int) er... method missing (line 43) | func (b bucketAggregationRequest) missing(name, missing string) { FILE: plugins/inputs/opensearch_query/aggregation.go type aggregationRequest (line 7) | type aggregationRequest interface type aggregationFunction (line 11) | type aggregationFunction struct method MarshalJSON (line 21) | func (a *aggregationFunction) MarshalJSON() ([]byte, error) { method setSize (line 43) | func (a *aggregationFunction) setSize(size int) { method setMissing (line 47) | func (a *aggregationFunction) setMissing(missing string) { function getAggregationFunctionType (line 51) | func getAggregationFunctionType(field string) string { FILE: plugins/inputs/opensearch_query/aggregation.metric.go type metricAggregationRequest (line 5) | type metricAggregationRequest method addAggregation (line 7) | func (m metricAggregationRequest) addAggregation(name, aggType, field ... FILE: plugins/inputs/opensearch_query/aggregation.response.go type aggregationResponse (line 9) | type aggregationResponse struct method getMetrics (line 39) | func (a *aggregationResponse) getMetrics(acc telegraf.Accumulator, mea... type searchHits (line 14) | type searchHits struct type totalHits (line 18) | type totalHits struct type metricAggregation (line 23) | type metricAggregation type aggregateValue (line 25) | type aggregateValue struct method UnmarshalJSON (line 89) | func (a *aggregateValue) UnmarshalJSON(bytes []byte) error { method isAggregation (line 105) | func (a *aggregateValue) isAggregation() bool { type aggregation (line 30) | type aggregation method getMetrics (line 53) | func (a *aggregation) getMetrics(acc telegraf.Accumulator, measurement... type bucketData (line 32) | type bucketData struct method UnmarshalJSON (line 110) | func (b *bucketData) UnmarshalJSON(bytes []byte) error { FILE: plugins/inputs/opensearch_query/opensearch_query.go type OpensearchQuery (line 28) | type OpensearchQuery struct method SampleConfig (line 60) | func (*OpensearchQuery) SampleConfig() string { method Init (line 64) | func (o *OpensearchQuery) Init() error { method Gather (line 89) | func (o *OpensearchQuery) Gather(acc telegraf.Accumulator) error { method newClient (line 107) | func (o *OpensearchQuery) newClient() error { method initAggregation (line 138) | func (o *OpensearchQuery) initAggregation(agg osAggregation, i int) (e... method osAggregationQuery (line 154) | func (o *OpensearchQuery) osAggregationQuery(acc telegraf.Accumulator,... method runAggregationQuery (line 166) | func (o *OpensearchQuery) runAggregationQuery(ctx context.Context, agg... type osAggregation (line 43) | type osAggregation struct method buildAggregationQuery (line 220) | func (aggregation *osAggregation) buildAggregationQuery() error { function init (line 264) | func init() { FILE: plugins/inputs/opensearch_query/opensearch_query_test.go constant servicePort (line 25) | servicePort = "9200" constant testindex (line 26) | testindex = "test-opensearch" type osAggregationQueryTest (line 29) | type osAggregationQueryTest struct function testData (line 39) | func testData() []osAggregationQueryTest { function opensearchTestImages (line 514) | func opensearchTestImages() []string { function newOpensearchQuery (line 518) | func newOpensearchQuery(url string) *OpensearchQuery { function setupIntegrationTest (line 529) | func setupIntegrationTest(t *testing.T, image string) (*testutil.Contain... function TestOpensearchQueryIntegration (line 633) | func TestOpensearchQueryIntegration(t *testing.T) { function TestMetricAggregationMarshal (line 676) | func TestMetricAggregationMarshal(t *testing.T) { FILE: plugins/inputs/opensearch_query/query.go type query (line 8) | type query struct type boolQuery (line 14) | type boolQuery struct method MarshalJSON (line 23) | func (b *boolQuery) MarshalJSON() ([]byte, error) { FILE: plugins/inputs/opensmtpd/opensmtpd.go type Opensmtpd (line 29) | type Opensmtpd struct method SampleConfig (line 39) | func (*Opensmtpd) SampleConfig() string { method Gather (line 43) | func (s *Opensmtpd) Gather(acc telegraf.Accumulator) error { type runner (line 37) | type runner function opensmtpdRunner (line 92) | func opensmtpdRunner(cmdName string, timeout config.Duration, useSudo bo... function init (line 112) | func init() { FILE: plugins/inputs/opensmtpd/opensmtpd_test.go function smtpCTL (line 13) | func smtpCTL(output string) func(string, config.Duration, bool) (*bytes.... function TestFilterSomeStats (line 19) | func TestFilterSomeStats(t *testing.T) { FILE: plugins/inputs/openstack/openstack.go type OpenStack (line 60) | type OpenStack struct method SampleConfig (line 95) | func (*OpenStack) SampleConfig() string { method Init (line 99) | func (o *OpenStack) Init() error { method Start (line 133) | func (o *OpenStack) Start(telegraf.Accumulator) error { method Gather (line 259) | func (o *OpenStack) Gather(acc telegraf.Accumulator) error { method Stop (line 329) | func (o *OpenStack) Stop() { method availableServicesFromAuth (line 335) | func (o *OpenStack) availableServicesFromAuth(provider *gophercloud.Pr... method availableServices (line 367) | func (o *OpenStack) availableServices(ctx context.Context) error { method gatherStacks (line 386) | func (o *OpenStack) gatherStacks(ctx context.Context, acc telegraf.Acc... method gatherNovaServices (line 417) | func (o *OpenStack) gatherNovaServices(ctx context.Context, acc telegr... method gatherCinderServices (line 447) | func (o *OpenStack) gatherCinderServices(ctx context.Context, acc tele... method gatherSubnets (line 479) | func (o *OpenStack) gatherSubnets(ctx context.Context, acc telegraf.Ac... method gatherPorts (line 521) | func (o *OpenStack) gatherPorts(ctx context.Context, acc telegraf.Accu... method gatherNetworks (line 566) | func (o *OpenStack) gatherNetworks(ctx context.Context, acc telegraf.A... method gatherAgents (line 608) | func (o *OpenStack) gatherAgents(ctx context.Context, acc telegraf.Acc... method gatherAggregates (line 641) | func (o *OpenStack) gatherAggregates(ctx context.Context, acc telegraf... method gatherProjects (line 676) | func (o *OpenStack) gatherProjects(ctx context.Context, acc telegraf.A... method gatherHypervisors (line 708) | func (o *OpenStack) gatherHypervisors(ctx context.Context, acc telegra... method gatherFlavors (line 760) | func (o *OpenStack) gatherFlavors(ctx context.Context, acc telegraf.Ac... method gatherVolumes (line 790) | func (o *OpenStack) gatherVolumes(ctx context.Context, acc telegraf.Ac... method gatherStoragePools (line 845) | func (o *OpenStack) gatherStoragePools(ctx context.Context, acc telegr... method gatherServers (line 871) | func (o *OpenStack) gatherServers(ctx context.Context, acc telegraf.Ac... method gatherServerDiagnostics (line 963) | func (o *OpenStack) gatherServerDiagnostics(ctx context.Context, acc t... method convertTimeFormat (line 1059) | func (o *OpenStack) convertTimeFormat(t time.Time) interface{} { function init (line 1066) | func init() { FILE: plugins/inputs/opentelemetry/grpc_service_profile.go type profileService (line 19) | type profileService struct method Export (line 56) | func (s *profileService) Export(_ context.Context, req *service.Export... function newProfileService (line 27) | func newProfileService(acc telegraf.Accumulator, logger telegraf.Logger,... FILE: plugins/inputs/opentelemetry/grpc_services.go type traceService (line 14) | type traceService struct method Export (line 36) | func (s *traceService) Export(ctx context.Context, req ptraceotlp.Expo... function newTraceService (line 21) | func newTraceService(logger common.Logger, writer *writeToAccumulator, s... type metricsService (line 41) | type metricsService struct method Export (line 73) | func (s *metricsService) Export(ctx context.Context, req pmetricotlp.E... function newMetricsService (line 53) | func newMetricsService(logger common.Logger, writer *writeToAccumulator,... type logsService (line 78) | type logsService struct method Export (line 100) | func (s *logsService) Export(ctx context.Context, req plogotlp.ExportR... function newLogsService (line 85) | func newLogsService(logger common.Logger, writer *writeToAccumulator, lo... FILE: plugins/inputs/opentelemetry/logger.go type otelLogger (line 9) | type otelLogger struct method Debug (line 14) | func (l otelLogger) Debug(msg string, kv ...interface{}) { FILE: plugins/inputs/opentelemetry/opentelemetry.go type OpenTelemetry (line 28) | type OpenTelemetry struct method SampleConfig (line 45) | func (*OpenTelemetry) SampleConfig() string { method Init (line 49) | func (o *OpenTelemetry) Init() error { method Start (line 64) | func (o *OpenTelemetry) Start(acc telegraf.Accumulator) error { method Gather (line 122) | func (*OpenTelemetry) Gather(telegraf.Accumulator) error { method Stop (line 126) | func (o *OpenTelemetry) Stop() { function init (line 135) | func init() { FILE: plugins/inputs/opentelemetry/opentelemetry_test.go function TestOpenTelemetry (line 35) | func TestOpenTelemetry(t *testing.T) { function TestCases (line 113) | func TestCases(t *testing.T) { FILE: plugins/inputs/opentelemetry/writer.go type writeToAccumulator (line 19) | type writeToAccumulator struct method NewBatch (line 24) | func (w *writeToAccumulator) NewBatch() otel2influx.InfluxWriterBatch { method EnqueuePoint (line 29) | func (w *writeToAccumulator) EnqueuePoint( method WriteBatch (line 55) | func (*writeToAccumulator) WriteBatch(context.Context) error { FILE: plugins/inputs/openweathermap/openweathermap.go constant maxIDsPerBatch (line 27) | maxIDsPerBatch int = 20 type OpenWeatherMap (line 29) | type OpenWeatherMap struct method SampleConfig (line 44) | func (*OpenWeatherMap) SampleConfig() string { method Init (line 48) | func (n *OpenWeatherMap) Init() error { method Gather (line 131) | func (n *OpenWeatherMap) Gather(acc telegraf.Accumulator) error { method gatherWeather (line 169) | func (n *OpenWeatherMap) gatherWeather(acc telegraf.Accumulator, city ... method gatherWeatherBatch (line 218) | func (n *OpenWeatherMap) gatherWeatherBatch(acc telegraf.Accumulator, ... method gatherForecast (line 269) | func (n *OpenWeatherMap) gatherForecast(acc telegraf.Accumulator, city... method formatURL (line 315) | func (n *OpenWeatherMap) formatURL(path, city string) string { method gatherURL (line 331) | func (n *OpenWeatherMap) gatherURL(addr string) ([]byte, error) { function init (line 354) | func init() { FILE: plugins/inputs/openweathermap/openweathermap_test.go function TestFormatURL (line 22) | func TestFormatURL(t *testing.T) { function TestDefaultUnits (line 36) | func TestDefaultUnits(t *testing.T) { function TestDefaultLang (line 43) | func TestDefaultLang(t *testing.T) { function TestCases (line 50) | func TestCases(t *testing.T) { function readInputData (line 160) | func readInputData(path string) (map[string][]byte, error) { FILE: plugins/inputs/openweathermap/types.go type weatherEntry (line 3) | type weatherEntry struct method snow (line 46) | func (e weatherEntry) snow() float64 { method rain (line 53) | func (e weatherEntry) rain() float64 { type status (line 60) | type status struct FILE: plugins/inputs/p4runtime/p4runtime.go constant defaultDeviceID (line 29) | defaultDeviceID = 1 constant defaultEndpoint (line 30) | defaultEndpoint = "127.0.0.1:9559" type P4runtime (line 33) | type P4runtime struct method SampleConfig (line 46) | func (*P4runtime) SampleConfig() string { method Init (line 50) | func (p *P4runtime) Init() error { method Gather (line 59) | func (p *P4runtime) Gather(acc telegraf.Accumulator) error { method Stop (line 124) | func (p *P4runtime) Stop() { method getP4Info (line 139) | func (p *P4runtime) getP4Info() (*p4_config.P4Info, error) { method newP4RuntimeClient (line 185) | func (p *P4runtime) newP4RuntimeClient() error { method readAllEntries (line 204) | func (p *P4runtime) readAllEntries(counterID uint32) ([]*p4.Entity, er... function initConnection (line 129) | func initConnection(endpoint string, tlscfg *tls.Config) (*grpc.ClientCo... function filterCounters (line 168) | func filterCounters(counters []*p4_config.Counter, counterNamesInclude [... function init (line 225) | func init() { FILE: plugins/inputs/p4runtime/p4runtime_fake_client_test.go type fakeP4RuntimeClient (line 10) | type fakeP4RuntimeClient struct method Write (line 44) | func (c *fakeP4RuntimeClient) Write( method Read (line 55) | func (c *fakeP4RuntimeClient) Read( method SetForwardingPipelineConfig (line 66) | func (c *fakeP4RuntimeClient) SetForwardingPipelineConfig( method GetForwardingPipelineConfig (line 77) | func (c *fakeP4RuntimeClient) GetForwardingPipelineConfig( method StreamChannel (line 88) | func (c *fakeP4RuntimeClient) StreamChannel( method Capabilities (line 98) | func (c *fakeP4RuntimeClient) Capabilities( type fakeP4RuntimeReadClient (line 109) | type fakeP4RuntimeReadClient struct method Recv (line 117) | func (c *fakeP4RuntimeReadClient) Recv() (*p4.ReadResponse, error) { FILE: plugins/inputs/p4runtime/p4runtime_test.go function createCounter (line 21) | func createCounter( function createEntityCounterEntry (line 32) | func createEntityCounterEntry( function newTestP4RuntimeClient (line 46) | func newTestP4RuntimeClient( function TestInitDefault (line 65) | func TestInitDefault(t *testing.T) { function TestErrorGetP4Info (line 74) | func TestErrorGetP4Info(t *testing.T) { function TestOneCounterRead (line 112) | func TestOneCounterRead(t *testing.T) { function TestMultipleEntitiesSingleCounterRead (line 262) | func TestMultipleEntitiesSingleCounterRead(t *testing.T) { function TestSingleEntitiesMultipleCounterRead (line 351) | func TestSingleEntitiesMultipleCounterRead(t *testing.T) { function TestNoCountersAvailable (line 444) | func TestNoCountersAvailable(t *testing.T) { function TestFilterCounters (line 466) | func TestFilterCounters(t *testing.T) { function TestFailReadCounterEntryFromEntry (line 501) | func TestFailReadCounterEntryFromEntry(t *testing.T) { function TestFailReadAllEntries (line 554) | func TestFailReadAllEntries(t *testing.T) { function TestFilterCounterNamesInclude (line 597) | func TestFilterCounterNamesInclude(t *testing.T) { FILE: plugins/inputs/passenger/passenger.go type Passenger (line 22) | type Passenger struct method SampleConfig (line 80) | func (*Passenger) SampleConfig() string { method Gather (line 84) | func (p *Passenger) Gather(acc telegraf.Accumulator) error { method parseCommand (line 99) | func (p *Passenger) parseCommand() (string, []string) { type info (line 26) | type info struct type process (line 55) | type process struct method getUptime (line 113) | func (p *process) getUptime() int64 { function importMetric (line 153) | func importMetric(stat []byte, acc telegraf.Accumulator) error { function init (line 232) | func init() { FILE: plugins/inputs/passenger/passenger_test.go function fakePassengerStatus (line 16) | func fakePassengerStatus(stat string) (string, error) { function teardown (line 41) | func teardown(tempFilePath string) { function Test_Invalid_Passenger_Status_Cli (line 45) | func Test_Invalid_Passenger_Status_Cli(t *testing.T) { function Test_Invalid_Xml (line 57) | func Test_Invalid_Xml(t *testing.T) { function Test_Default_Config_Load_Default_Command (line 74) | func Test_Default_Config_Load_Default_Command(t *testing.T) { function TestPassengerGenerateMetric (line 88) | func TestPassengerGenerateMetric(t *testing.T) { FILE: plugins/inputs/pf/pf.go constant measurement (line 64) | measurement = "pf" constant pfctlCommand (line 65) | pfctlCommand = "pfctl" type PF (line 68) | type PF struct method SampleConfig (line 88) | func (*PF) SampleConfig() string { method Gather (line 92) | func (pf *PF) Gather(acc telegraf.Accumulator) error { method callPfctl (line 185) | func (pf *PF) callPfctl() (string, error) { method buildPfctlCmd (line 198) | func (pf *PF) buildPfctlCmd() (string, []string, error) { type pfctlOutputStanza (line 76) | type pfctlOutputStanza struct type entry (line 82) | type entry struct function errMissingData (line 113) | func errMissingData(tag string) error { function parsePfctlOutput (line 117) | func parsePfctlOutput(pfoutput string, acc telegraf.Accumulator) error { function parseStateTable (line 152) | func parseStateTable(lines []string, fields map[string]interface{}) error { function parseCounterTable (line 156) | func parseCounterTable(lines []string, fields map[string]interface{}) er... function storeFieldValues (line 160) | func storeFieldValues(lines []string, regex *regexp.Regexp, fields map[s... function init (line 214) | func init() { FILE: plugins/inputs/pf/pf_test.go type measurementResult (line 12) | type measurementResult struct function TestPfctlInvocation (line 17) | func TestPfctlInvocation(t *testing.T) { function TestPfMeasurements (line 54) | func TestPfMeasurements(t *testing.T) { FILE: plugins/inputs/pgbouncer/pgbouncer.go type PgBouncer (line 24) | type PgBouncer struct method SampleConfig (line 31) | func (*PgBouncer) SampleConfig() string { method Init (line 35) | func (p *PgBouncer) Init() error { method Start (line 57) | func (p *PgBouncer) Start(_ telegraf.Accumulator) error { method Gather (line 61) | func (p *PgBouncer) Gather(acc telegraf.Accumulator) error { method Stop (line 86) | func (p *PgBouncer) Stop() { method accRow (line 90) | func (p *PgBouncer) accRow(row *sql.Rows, columns []string) (map[strin... method showStats (line 125) | func (p *PgBouncer) showStats(acc telegraf.Accumulator) error { method showPools (line 173) | func (p *PgBouncer) showPools(acc telegraf.Accumulator) error { method showLists (line 219) | func (p *PgBouncer) showLists(acc telegraf.Accumulator) error { method showDatabase (line 260) | func (p *PgBouncer) showDatabase(acc telegraf.Accumulator) error { function init (line 307) | func init() { FILE: plugins/inputs/pgbouncer/pgbouncer_test.go function TestPgBouncerGeneratesMetricsIntegration (line 16) | func TestPgBouncerGeneratesMetricsIntegration(t *testing.T) { function TestPgBouncerGeneratesMetricsIntegrationShowCommands (line 105) | func TestPgBouncerGeneratesMetricsIntegrationShowCommands(t *testing.T) { FILE: plugins/inputs/phpfpm/child.go type request (line 22) | type request struct method parseParams (line 42) | func (r *request) parseParams() { function newRequest (line 31) | func newRequest(reqID uint16, flags uint8) *request { type response (line 68) | type response struct method Header (line 84) | func (r *response) Header() http.Header { method Write (line 88) | func (r *response) Write(data []byte) (int, error) { method WriteHeader (line 96) | func (r *response) WriteHeader(code int) { method Flush (line 122) | func (r *response) Flush() { method Close (line 131) | func (r *response) Close() error { function newResponse (line 75) | func newResponse(c *child, req *request) *response { type child (line 136) | type child struct method serve (line 152) | func (c *child) serve() { method handleRecord (line 178) | func (c *child) handleRecord(rec *record) error { method serveRequest (line 269) | func (c *child) serveRequest(req *request, body io.ReadCloser) { method cleanUp (line 305) | func (c *child) cleanUp() { function newChild (line 144) | func newChild(rwc io.ReadWriteCloser, handler http.Handler) *child { FILE: plugins/inputs/phpfpm/fcgi.go type recType (line 24) | type recType constant typeBeginRequest (line 27) | typeBeginRequest recType = 1 constant typeAbortRequest (line 28) | typeAbortRequest recType = 2 constant typeEndRequest (line 29) | typeEndRequest recType = 3 constant typeParams (line 30) | typeParams recType = 4 constant typeStdin (line 31) | typeStdin recType = 5 constant typeStdout (line 32) | typeStdout recType = 6 constant typeStderr (line 33) | typeStderr recType = 7 constant typeData (line 34) | typeData recType = 8 constant typeGetValues (line 35) | typeGetValues recType = 9 constant typeGetValuesResult (line 36) | typeGetValuesResult recType = 10 constant typeUnknownType (line 37) | typeUnknownType recType = 11 constant flagKeepConn (line 41) | flagKeepConn = 1 constant maxWrite (line 44) | maxWrite = 65535 constant maxPad (line 45) | maxPad = 255 constant roleResponder (line 49) | roleResponder = iota + 1 constant roleAuthorizer (line 50) | roleAuthorizer constant roleFilter (line 51) | roleFilter constant statusRequestComplete (line 55) | statusRequestComplete = iota constant statusCantMultiplex (line 56) | statusCantMultiplex constant statusOverloaded (line 57) | statusOverloaded constant statusUnknownRole (line 58) | statusUnknownRole type header (line 61) | type header struct method init (line 89) | func (h *header) init(recType recType, reqID uint16, contentLength int) { type beginRequest (line 70) | type beginRequest struct method read (line 76) | func (br *beginRequest) read(content []byte) error { type conn (line 98) | type conn struct method Close (line 112) | func (c *conn) Close() error { method writeRecord (line 142) | func (c *conn) writeRecord(recType recType, reqID uint16, b []byte) er... method writeBeginRequest (line 156) | func (c *conn) writeBeginRequest(reqID, role uint16, flags uint8) error { method writeEndRequest (line 161) | func (c *conn) writeEndRequest(reqID uint16, appStatus int, protocolSt... method writePairs (line 168) | func (c *conn) writePairs(recType recType, reqID uint16, pairs map[str... function newConn (line 107) | func newConn(rwc io.ReadWriteCloser) *conn { type record (line 118) | type record struct method read (line 123) | func (rec *record) read(r io.Reader) (err error) { method content (line 137) | func (rec *record) content() []byte { function readSize (line 187) | func readSize(s []byte) (uint32, int) { function readString (line 203) | func readString(s []byte, size uint32) string { function encodeSize (line 210) | func encodeSize(b []byte, size uint32) int { type bufWriter (line 223) | type bufWriter struct method Close (line 229) | func (w *bufWriter) Close() error { function newWriter (line 237) | func newWriter(c *conn, recType recType, reqID uint16) *bufWriter { type streamWriter (line 245) | type streamWriter struct method Write (line 251) | func (w *streamWriter) Write(p []byte) (int, error) { method Close (line 268) | func (w *streamWriter) Close() error { FILE: plugins/inputs/phpfpm/fcgi_client.go function newFcgiClient (line 13) | func newFcgiClient(timeout time.Duration, h string, args ...interface{})... method request (line 47) | func (c *conn) request(env map[string]string, requestData string) (retou... FILE: plugins/inputs/phpfpm/fcgi_test.go constant requestID (line 15) | requestID uint16 = 1 function TestSize (line 28) | func TestSize(t *testing.T) { type nilCloser (line 71) | type nilCloser struct method Close (line 75) | func (*nilCloser) Close() error { return nil } function TestStreams (line 77) | func TestStreams(t *testing.T) { type writeOnlyConn (line 119) | type writeOnlyConn struct method Write (line 123) | func (c *writeOnlyConn) Write(p []byte) (int, error) { method Read (line 128) | func (*writeOnlyConn) Read([]byte) (int, error) { method Close (line 132) | func (*writeOnlyConn) Close() error { function TestGetValues (line 136) | func TestGetValues(t *testing.T) { function nameValuePair11 (line 155) | func nameValuePair11(nameData, valueData string) []byte { function makeRecord (line 166) | func makeRecord( type nopWriteCloser (line 222) | type nopWriteCloser struct method Close (line 226) | func (nopWriteCloser) Close() error { function TestChildServeCleansUp (line 233) | func TestChildServeCleansUp(t *testing.T) { type rwNopCloser (line 255) | type rwNopCloser struct method Close (line 260) | func (rwNopCloser) Close() error { function TestMalformedParams (line 265) | func TestMalformedParams(_ *testing.T) { FILE: plugins/inputs/phpfpm/phpfpm.go constant pfPool (line 29) | pfPool = "pool" constant pfStartSince (line 30) | pfStartSince = "start since" constant pfAcceptedConn (line 31) | pfAcceptedConn = "accepted conn" constant pfListenQueue (line 32) | pfListenQueue = "listen queue" constant pfMaxListenQueue (line 33) | pfMaxListenQueue = "max listen queue" constant pfListenQueueLen (line 34) | pfListenQueueLen = "listen queue len" constant pfIdleProcesses (line 35) | pfIdleProcesses = "idle processes" constant pfActiveProcesses (line 36) | pfActiveProcesses = "active processes" constant pfTotalProcesses (line 37) | pfTotalProcesses = "total processes" constant pfMaxActiveProcesses (line 38) | pfMaxActiveProcesses = "max active processes" constant pfMaxChildrenReached (line 39) | pfMaxChildrenReached = "max children reached" constant pfSlowRequests (line 40) | pfSlowRequests = "slow requests" type Phpfpm (line 43) | type Phpfpm struct method SampleConfig (line 88) | func (*Phpfpm) SampleConfig() string { method Init (line 92) | func (p *Phpfpm) Init() error { method Gather (line 120) | func (p *Phpfpm) Gather(acc telegraf.Accumulator) error { method gatherServer (line 136) | func (p *Phpfpm) gatherServer(addr string, acc telegraf.Accumulator) e... method gatherFcgi (line 187) | func (p *Phpfpm) gatherFcgi(fcgi *conn, statusPath string, acc telegra... method gatherHTTP (line 206) | func (p *Phpfpm) gatherHTTP(addr string, acc telegraf.Accumulator) err... method importMetric (line 232) | func (p *Phpfpm) importMetric(r io.Reader, acc telegraf.Accumulator, a... method parseJSON (line 294) | func (p *Phpfpm) parseJSON(r io.Reader, acc telegraf.Accumulator, addr... type jsonMetrics (line 53) | type jsonMetrics struct type metricStat (line 85) | type metricStat type poolStat (line 86) | type poolStat function parseLines (line 240) | func parseLines(r io.Reader, acc telegraf.Accumulator, addr string) { function expandUrls (line 344) | func expandUrls(acc telegraf.Accumulator, urls []string) []string { function globUnixSocket (line 361) | func globUnixSocket(address string) ([]string, error) { function unixSocketPaths (line 383) | func unixSocketPaths(addr string) (socketPath, statusPath string) { function isNetworkURL (line 396) | func isNetworkURL(addr string) bool { function init (line 400) | func init() { FILE: plugins/inputs/phpfpm/phpfpm_test.go type statServer (line 31) | type statServer struct method ServeHTTP (line 34) | func (statServer) ServeHTTP(w http.ResponseWriter, _ *http.Request) { function TestPhpFpmGeneratesMetrics_From_Http (line 40) | func TestPhpFpmGeneratesMetrics_From_Http(t *testing.T) { function TestPhpFpmGeneratesJSONMetrics_From_Http (line 92) | func TestPhpFpmGeneratesJSONMetrics_From_Http(t *testing.T) { function TestPhpFpmGeneratesMetrics_From_Fcgi (line 121) | func TestPhpFpmGeneratesMetrics_From_Fcgi(t *testing.T) { function TestPhpFpmTimeout_From_Fcgi (line 162) | func TestPhpFpmTimeout_From_Fcgi(t *testing.T) { function TestPhpFpmCrashWithTimeout_From_Fcgi (line 200) | func TestPhpFpmCrashWithTimeout_From_Fcgi(t *testing.T) { function TestPhpFpmGeneratesMetrics_From_Socket (line 227) | func TestPhpFpmGeneratesMetrics_From_Socket(t *testing.T) { function TestPhpFpmGeneratesMetrics_From_Multiple_Sockets_With_Glob (line 271) | func TestPhpFpmGeneratesMetrics_From_Multiple_Sockets_With_Glob(t *testi... function TestPhpFpmGeneratesMetrics_From_Socket_Custom_Status_Path (line 330) | func TestPhpFpmGeneratesMetrics_From_Socket_Custom_Status_Path(t *testin... function TestPhpFpmDefaultGetFromLocalhost (line 376) | func TestPhpFpmDefaultGetFromLocalhost(t *testing.T) { function TestPhpFpmGeneratesMetrics_Throw_Error_When_Fpm_Status_Is_Not_Responding (line 387) | func TestPhpFpmGeneratesMetrics_Throw_Error_When_Fpm_Status_Is_Not_Respo... function TestPhpFpmGeneratesMetrics_Throw_Error_When_Socket_Path_Is_Invalid (line 404) | func TestPhpFpmGeneratesMetrics_Throw_Error_When_Socket_Path_Is_Invalid(... constant outputSample (line 415) | outputSample = ` function TestPhpFpmParseJSON_Log_Error_Without_Panic_When_When_JSON_Is_Invalid (line 435) | func TestPhpFpmParseJSON_Log_Error_Without_Panic_When_When_JSON_Is_Inval... function TestGatherDespiteUnavailable (line 452) | func TestGatherDespiteUnavailable(t *testing.T) { FILE: plugins/inputs/ping/ping.go constant defaultPingDataBytesSize (line 28) | defaultPingDataBytesSize = 56 type Ping (line 31) | type Ping struct method SampleConfig (line 70) | func (*Ping) SampleConfig() string { method Init (line 74) | func (p *Ping) Init() error { method Gather (line 97) | func (p *Ping) Gather(acc telegraf.Accumulator) error { method nativePing (line 117) | func (p *Ping) nativePing(destination string) (*pingStats, error) { method pingToURLNative (line 195) | func (p *Ping) pingToURLNative(destination string, acc telegraf.Accumu... type hostPingerFunc (line 59) | type hostPingerFunc type nativePingFunc (line 61) | type nativePingFunc type durationSlice (line 63) | type durationSlice method Len (line 254) | func (p durationSlice) Len() int { return len(p) } method Less (line 256) | func (p durationSlice) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 258) | func (p durationSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } type pingStats (line 65) | type pingStats struct function percentile (line 261) | func percentile(values durationSlice, perc int) time.Duration { function hostPinger (line 287) | func hostPinger(binary string, timeout float64, args ...string) (string,... function init (line 298) | func init() { FILE: plugins/inputs/ping/ping_notwindows.go type roundTripTimeStats (line 18) | type roundTripTimeStats struct type statistics (line 25) | type statistics struct method pingToURL (line 32) | func (p *Ping) pingToURL(u string, acc telegraf.Accumulator) { method args (line 108) | func (p *Ping) args(url, system string) []string { function processPingOutput (line 182) | func processPingOutput(out string) (statistics, error) { function getPacketStats (line 217) | func getPacketStats(line string) (trans, recv int, err error) { function getTTL (line 231) | func getTTL(line string) (int, error) { function checkRoundTripTimeStats (line 237) | func checkRoundTripTimeStats(line string) (roundTripTimeStats, error) { function freeBSDMajorVersion (line 273) | func freeBSDMajorVersion() int { FILE: plugins/inputs/ping/ping_test.go function TestProcessPingOutput (line 79) | func TestProcessPingOutput(t *testing.T) { function TestProcessPingOutputWithVaryingTTL (line 136) | func TestProcessPingOutputWithVaryingTTL(t *testing.T) { function TestErrorProcessPingOutput (line 150) | func TestErrorProcessPingOutput(t *testing.T) { function TestArgs (line 156) | func TestArgs(t *testing.T) { function TestArgs6 (line 183) | func TestArgs6(t *testing.T) { function TestArguments (line 210) | func TestArguments(t *testing.T) { function mockHostPinger (line 228) | func mockHostPinger(string, float64, ...string) (string, error) { function TestPingGather (line 233) | func TestPingGather(t *testing.T) { function TestPingGatherIntegration (line 259) | func TestPingGatherIntegration(t *testing.T) { function mockLossyHostPinger (line 286) | func mockLossyHostPinger(string, float64, ...string) (string, error) { function TestLossyPingGather (line 291) | func TestLossyPingGather(t *testing.T) { function mockErrorHostPinger (line 322) | func mockErrorHostPinger(string, float64, ...string) (string, error) { function TestBadPingGather (line 329) | func TestBadPingGather(t *testing.T) { function mockFatalHostPinger (line 347) | func mockFatalHostPinger(string, float64, ...string) (string, error) { function TestFatalPingGather (line 352) | func TestFatalPingGather(t *testing.T) { function TestErrorWithHostNamePingGather (line 378) | func TestErrorWithHostNamePingGather(t *testing.T) { function TestPingBinary (line 401) | func TestPingBinary(t *testing.T) { function TestPingGatherNative (line 417) | func TestPingGatherNative(t *testing.T) { function TestInitWarnsForNativeTimeout (line 485) | func TestInitWarnsForNativeTimeout(t *testing.T) { function TestNoPacketsSent (line 502) | func TestNoPacketsSent(t *testing.T) { function TestDNSLookupError (line 531) | func TestDNSLookupError(t *testing.T) { FILE: plugins/inputs/ping/ping_windows.go type roundTripTimeStats (line 15) | type roundTripTimeStats struct type statistics (line 21) | type statistics struct method pingToURL (line 28) | func (p *Ping) pingToURL(host string, acc telegraf.Accumulator) { method args (line 81) | func (p *Ping) args(url string) []string { function processPingOutput (line 100) | func processPingOutput(out string) (statistics, error) { method timeout (line 174) | func (p *Ping) timeout() float64 { FILE: plugins/inputs/ping/ping_windows_test.go function TestHost (line 43) | func TestHost(t *testing.T) { function mockHostPinger (line 63) | func mockHostPinger(string, float64, ...string) (string, error) { function TestPingGather (line 68) | func TestPingGather(t *testing.T) { function mockErrorHostPinger (line 106) | func mockErrorHostPinger(string, float64, ...string) (string, error) { function TestBadPingGather (line 112) | func TestBadPingGather(t *testing.T) { function TestArguments (line 135) | func TestArguments(t *testing.T) { function mockLossyHostPinger (line 167) | func mockLossyHostPinger(string, float64, ...string) (string, error) { function TestLossyPingGather (line 172) | func TestLossyPingGather(t *testing.T) { function mockFatalHostPinger (line 230) | func mockFatalHostPinger(string, float64, ...string) (string, error) { function TestFatalPingGather (line 235) | func TestFatalPingGather(t *testing.T) { function mockUnreachableHostPinger (line 275) | func mockUnreachableHostPinger(string, float64, ...string) (string, erro... function TestUnreachablePingGather (line 283) | func TestUnreachablePingGather(t *testing.T) { function mockTTLExpiredPinger (line 326) | func mockTTLExpiredPinger(string, float64, ...string) (string, error) { function TestTTLExpiredPingGather (line 332) | func TestTTLExpiredPingGather(t *testing.T) { function TestPingBinary (line 364) | func TestPingBinary(t *testing.T) { FILE: plugins/inputs/postfix/postfix.go type Postfix (line 24) | type Postfix struct method SampleConfig (line 28) | func (*Postfix) SampleConfig() string { method Gather (line 32) | func (p *Postfix) Gather(acc telegraf.Accumulator) error { function getQueueDirectory (line 54) | func getQueueDirectory() (string, error) { function qScan (line 62) | func qScan(path string, acc telegraf.Accumulator) (map[string]interface{... function init (line 108) | func init() { FILE: plugins/inputs/postfix/postfix_test.go function TestGather (line 15) | func TestGather(t *testing.T) { FILE: plugins/inputs/postfix/postfix_windows.go type Postfix (line 15) | type Postfix struct method SampleConfig (line 19) | func (*Postfix) SampleConfig() string { return sampleConfig } method Init (line 21) | func (p *Postfix) Init() error { method Gather (line 26) | func (*Postfix) Gather(_ telegraf.Accumulator) error { return nil } function init (line 28) | func init() { FILE: plugins/inputs/postfix/stat_ctim.go function statCTime (line 10) | func statCTime(sys interface{}) time.Time { FILE: plugins/inputs/postfix/stat_ctimespec.go function statCTime (line 10) | func statCTime(sys interface{}) time.Time { FILE: plugins/inputs/postgresql/postgresql.go type Postgresql (line 21) | type Postgresql struct method SampleConfig (line 30) | func (*Postgresql) SampleConfig() string { method Init (line 34) | func (p *Postgresql) Init() error { method Start (line 46) | func (p *Postgresql) Start(_ telegraf.Accumulator) error { method Gather (line 50) | func (p *Postgresql) Gather(acc telegraf.Accumulator) error { method Stop (line 105) | func (p *Postgresql) Stop() { method accRow (line 109) | func (p *Postgresql) accRow(row *sql.Rows, acc telegraf.Accumulator, c... function init (line 156) | func init() { FILE: plugins/inputs/postgresql/postgresql_test.go constant servicePort (line 16) | servicePort = "5432" function launchTestContainer (line 18) | func launchTestContainer(t *testing.T) *testutil.Container { function TestPostgresqlGeneratesMetricsIntegration (line 39) | func TestPostgresqlGeneratesMetricsIntegration(t *testing.T) { function TestPostgresqlTagsMetricsWithDatabaseNameIntegration (line 133) | func TestPostgresqlTagsMetricsWithDatabaseNameIntegration(t *testing.T) { function TestPostgresqlDefaultsToAllDatabasesIntegration (line 166) | func TestPostgresqlDefaultsToAllDatabasesIntegration(t *testing.T) { function TestPostgresqlIgnoresUnwantedColumnsIntegration (line 206) | func TestPostgresqlIgnoresUnwantedColumnsIntegration(t *testing.T) { function TestPostgresqlDatabaseWhitelistTestIntegration (line 237) | func TestPostgresqlDatabaseWhitelistTestIntegration(t *testing.T) { function TestPostgresqlDatabaseBlacklistTestIntegration (line 284) | func TestPostgresqlDatabaseBlacklistTestIntegration(t *testing.T) { function TestInitialConnectivityIssueIntegration (line 331) | func TestInitialConnectivityIssueIntegration(t *testing.T) { FILE: plugins/inputs/postgresql_extensible/postgresql_extensible.go type Postgresql (line 26) | type Postgresql struct method SampleConfig (line 54) | func (*Postgresql) SampleConfig() string { method Init (line 58) | func (p *Postgresql) Init() error { method Start (line 105) | func (p *Postgresql) Start(_ telegraf.Accumulator) error { method Gather (line 109) | func (p *Postgresql) Gather(acc telegraf.Accumulator) error { method Stop (line 131) | func (p *Postgresql) Stop() { method gatherMetricsFromQuery (line 135) | func (p *Postgresql) gatherMetricsFromQuery(acc telegraf.Accumulator, ... method accRow (line 157) | func (p *Postgresql) accRow(acc telegraf.Accumulator, row scanner, col... type query (line 36) | type query struct type scanner (line 50) | type scanner interface function init (line 230) | func init() { FILE: plugins/inputs/postgresql_extensible/postgresql_extensible_test.go function queryRunner (line 18) | func queryRunner(t *testing.T, q []query) *testutil.Accumulator { function TestPostgresqlGeneratesMetricsIntegration (line 60) | func TestPostgresqlGeneratesMetricsIntegration(t *testing.T) { function TestPostgresqlQueryOutputTestsIntegration (line 129) | func TestPostgresqlQueryOutputTestsIntegration(t *testing.T) { function TestPostgresqlFieldOutputIntegration (line 178) | func TestPostgresqlFieldOutputIntegration(t *testing.T) { function TestPostgresqlSqlScript (line 242) | func TestPostgresqlSqlScript(t *testing.T) { function TestPostgresqlIgnoresUnwantedColumnsIntegration (line 272) | func TestPostgresqlIgnoresUnwantedColumnsIntegration(t *testing.T) { function TestAccRow (line 301) | func TestAccRow(t *testing.T) { type fakeRow (line 352) | type fakeRow struct method Scan (line 356) | func (f fakeRow) Scan(dest ...interface{}) error { FILE: plugins/inputs/powerdns/powerdns.go constant defaultTimeout (line 22) | defaultTimeout = 5 * time.Second type Powerdns (line 24) | type Powerdns struct method SampleConfig (line 29) | func (*Powerdns) SampleConfig() string { method Gather (line 33) | func (p *Powerdns) Gather(acc telegraf.Accumulator) error { method gatherServer (line 47) | func (p *Powerdns) gatherServer(address string, acc telegraf.Accumulat... method parseResponse (line 98) | func (p *Powerdns) parseResponse(metrics string) map[string]interface{} { function init (line 120) | func init() { FILE: plugins/inputs/powerdns/powerdns_linux_test.go function serverSocket (line 16) | func serverSocket(l net.Listener) { function TestPowerdnsGeneratesMetrics (line 36) | func TestPowerdnsGeneratesMetrics(t *testing.T) { FILE: plugins/inputs/powerdns/powerdns_test.go function TestPowerdnsParseMetrics (line 44) | func TestPowerdnsParseMetrics(t *testing.T) { function TestPowerdnsParseCorruptMetrics (line 108) | func TestPowerdnsParseCorruptMetrics(t *testing.T) { function TestPowerdnsParseIntOverflowMetrics (line 171) | func TestPowerdnsParseIntOverflowMetrics(t *testing.T) { FILE: plugins/inputs/powerdns_recursor/powerdns_recursor.go constant defaultTimeout (line 17) | defaultTimeout = 5 * time.Second type PowerdnsRecursor (line 19) | type PowerdnsRecursor struct method SampleConfig (line 31) | func (*PowerdnsRecursor) SampleConfig() string { method Init (line 35) | func (p *PowerdnsRecursor) Init() error { method Gather (line 68) | func (p *PowerdnsRecursor) Gather(acc telegraf.Accumulator) error { function init (line 78) | func init() { FILE: plugins/inputs/powerdns_recursor/powerdns_recursor_test.go function TestV1PowerdnsRecursorGeneratesMetrics (line 99) | func TestV1PowerdnsRecursorGeneratesMetrics(t *testing.T) { function TestV2PowerdnsRecursorGeneratesMetrics (line 154) | func TestV2PowerdnsRecursorGeneratesMetrics(t *testing.T) { function TestV3PowerdnsRecursorGeneratesMetrics (line 218) | func TestV3PowerdnsRecursorGeneratesMetrics(t *testing.T) { function testReturnedMetrics (line 289) | func testReturnedMetrics(t *testing.T, acc *testutil.Accumulator) { function TestPowerdnsRecursorParseMetrics (line 319) | func TestPowerdnsRecursorParseMetrics(t *testing.T) { function TestPowerdnsRecursorParseCorruptMetrics (line 439) | func TestPowerdnsRecursorParseCorruptMetrics(t *testing.T) { function TestPowerdnsRecursorParseIntOverflowMetrics (line 558) | func TestPowerdnsRecursorParseIntOverflowMetrics(t *testing.T) { FILE: plugins/inputs/powerdns_recursor/protocol_commons.go function parseResponse (line 13) | func parseResponse(metrics string) map[string]interface{} { constant uintSizeInBytes (line 50) | uintSizeInBytes = strconv.IntSize / 8 function writeNativeUIntToConn (line 52) | func writeNativeUIntToConn(conn net.Conn, value uint) error { function readNativeUIntFromConn (line 68) | func readNativeUIntFromConn(conn net.Conn) (uint, error) { FILE: plugins/inputs/powerdns_recursor/protocol_v1.go method gatherFromV1Server (line 22) | func (p *PowerdnsRecursor) gatherFromV1Server(address string, acc telegr... FILE: plugins/inputs/powerdns_recursor/protocol_v2.go method gatherFromV2Server (line 20) | func (p *PowerdnsRecursor) gatherFromV2Server(address string, acc telegr... FILE: plugins/inputs/powerdns_recursor/protocol_v3.go function gatherFromV3Server (line 19) | func gatherFromV3Server(address string, acc telegraf.Accumulator) error { FILE: plugins/inputs/processes/processes.go method SampleConfig (line 9) | func (*Processes) SampleConfig() string { FILE: plugins/inputs/processes/processes_notwindows.go type Processes (line 21) | type Processes struct method Gather (line 31) | func (p *Processes) Gather(acc telegraf.Accumulator) error { method gatherFromPS (line 90) | func (p *Processes) gatherFromPS(fields map[string]interface{}) error { method gatherFromProc (line 130) | func (p *Processes) gatherFromProc(fields map[string]interface{}) error { function getEmptyFields (line 62) | func getEmptyFields() map[string]interface{} { function readProcFile (line 193) | func readProcFile(filename string) ([]byte, error) { function execPS (line 213) | func execPS(useSudo bool) ([]byte, error) { function init (line 232) | func init() { FILE: plugins/inputs/processes/processes_test.go function TestProcesses (line 19) | func TestProcesses(t *testing.T) { function TestFromPS (line 40) | func TestFromPS(t *testing.T) { function TestFromPSError (line 61) | func TestFromPSError(t *testing.T) { function TestFromProcFiles (line 72) | func TestFromProcFiles(t *testing.T) { function TestFromProcFilesWithSpaceInCmd (line 94) | func TestFromProcFilesWithSpaceInCmd(t *testing.T) { function TestParkedProcess (line 123) | func TestParkedProcess(t *testing.T) { function testExecPS (line 169) | func testExecPS(out string) func(_ bool) ([]byte, error) { type tester (line 174) | type tester struct method testProcFile (line 178) | func (t *tester) testProcFile(_ string) ([]byte, error) { method testProcFile2 (line 183) | func (t *tester) testProcFile2(_ string) ([]byte, error) { function testExecPSError (line 188) | func testExecPSError(_ bool) ([]byte, error) { constant testProcStat (line 192) | testProcStat = `10 (rcuob/0) %s 2 0 0 0 -1 2129984 0 0 0 0 0 0 0 0 20 0 ... constant testProcStat2 (line 196) | testProcStat2 = `10 (rcuob 0) %s 2 0 0 0 -1 2129984 0 0 0 0 0 0 0 0 20 0... FILE: plugins/inputs/processes/processes_windows.go type Processes (line 10) | type Processes struct method Init (line 14) | func (e *Processes) Init() error { method Gather (line 19) | func (*Processes) Gather(telegraf.Accumulator) error { function init (line 23) | func init() { FILE: plugins/inputs/procstat/filter.go type filter (line 16) | type filter struct method init (line 38) | func (f *filter) init() error { method applyFilter (line 92) | func (f *filter) applyFilter() ([]processGroup, error) { function getChildren (line 223) | func getChildren(p *gopsprocess.Process) ([]*gopsprocess.Process, error) { FILE: plugins/inputs/procstat/native_finder.go type NativeFinder (line 14) | type NativeFinder struct method uid (line 17) | func (*NativeFinder) uid(user string) ([]pid, error) { method pidFile (line 34) | func (*NativeFinder) pidFile(path string) ([]pid, error) { method fullPattern (line 47) | func (*NativeFinder) fullPattern(pattern string) ([]pid, error) { method children (line 71) | func (*NativeFinder) children(processID pid) ([]pid, error) { method pattern (line 105) | func (*NativeFinder) pattern(pattern string) ([]pid, error) { function fastProcessList (line 91) | func fastProcessList() ([]*gopsprocess.Process, error) { FILE: plugins/inputs/procstat/native_finder_test.go function BenchmarkPattern (line 14) | func BenchmarkPattern(b *testing.B) { function BenchmarkFullPattern (line 22) | func BenchmarkFullPattern(b *testing.B) { function TestChildPattern (line 30) | func TestChildPattern(t *testing.T) { function TestGather_RealPatternIntegration (line 64) | func TestGather_RealPatternIntegration(t *testing.T) { function TestGather_RealFullPatternIntegration (line 74) | func TestGather_RealFullPatternIntegration(t *testing.T) { function TestGather_RealUserIntegration (line 87) | func TestGather_RealUserIntegration(t *testing.T) { FILE: plugins/inputs/procstat/os_linux.go function processName (line 27) | func processName(p *gopsprocess.Process) (string, error) { function username (line 31) | func username(p *gopsprocess.Process) string { function queryPidWithWinServiceName (line 57) | func queryPidWithWinServiceName(_ string) (uint32, error) { function collectMemmap (line 61) | func collectMemmap(proc process, prefix string, fields map[string]any) { function findBySystemdUnits (line 77) | func findBySystemdUnits(units []string) ([]processGroup, error) { function findByWindowsServices (line 116) | func findByWindowsServices(_ []string) ([]processGroup, error) { function collectTotalReadWrite (line 120) | func collectTotalReadWrite(proc process) (r, w uint64, err error) { function socketStateName (line 141) | func socketStateName(s uint8) string { function socketTypeName (line 172) | func socketTypeName(t uint8) string { function mapFdToInode (line 193) | func mapFdToInode(pid int32, fd uint32) (uint32, error) { function statsTCP (line 210) | func statsTCP(conns []gopsnet.ConnectionStat, family uint8) ([]map[strin... function statsUDP (line 273) | func statsUDP(conns []gopsnet.ConnectionStat, family uint8) ([]map[strin... function statsUnix (line 332) | func statsUnix(conns []gopsnet.ConnectionStat) ([]map[string]interface{}... FILE: plugins/inputs/procstat/os_others.go function processName (line 17) | func processName(p *gopsprocess.Process) (string, error) { function username (line 21) | func username(p *gopsprocess.Process) string { function queryPidWithWinServiceName (line 47) | func queryPidWithWinServiceName(string) (uint32, error) { function collectMemmap (line 51) | func collectMemmap(process, string, map[string]any) {} function findBySystemdUnits (line 53) | func findBySystemdUnits([]string) ([]processGroup, error) { function findByWindowsServices (line 57) | func findByWindowsServices([]string) ([]processGroup, error) { function collectTotalReadWrite (line 61) | func collectTotalReadWrite(process) (r, w uint64, err error) { function statsTCP (line 65) | func statsTCP(conns []gopsnet.ConnectionStat, _ uint8) ([]map[string]int... function statsUDP (line 98) | func statsUDP(conns []gopsnet.ConnectionStat, _ uint8) ([]map[string]int... function statsUnix (line 131) | func statsUnix([]gopsnet.ConnectionStat) ([]map[string]interface{}, erro... FILE: plugins/inputs/procstat/os_windows.go function processName (line 17) | func processName(p *gopsprocess.Process) (string, error) { function username (line 21) | func username(p *gopsprocess.Process) string { function getService (line 28) | func getService(name string) (*mgr.Service, error) { function queryPidWithWinServiceName (line 43) | func queryPidWithWinServiceName(winServiceName string) (uint32, error) { function collectMemmap (line 67) | func collectMemmap(process, string, map[string]any) {} function findBySystemdUnits (line 69) | func findBySystemdUnits([]string) ([]processGroup, error) { function findByWindowsServices (line 73) | func findByWindowsServices(services []string) ([]processGroup, error) { function collectTotalReadWrite (line 95) | func collectTotalReadWrite(process) (r, w uint64, err error) { function statsTCP (line 99) | func statsTCP(conns []gopsnet.ConnectionStat, _ uint8) ([]map[string]int... function statsUDP (line 132) | func statsUDP(conns []gopsnet.ConnectionStat, _ uint8) ([]map[string]int... function statsUnix (line 165) | func statsUnix([]gopsnet.ConnectionStat) ([]map[string]interface{}, erro... FILE: plugins/inputs/procstat/pgrep.go type pgrep (line 14) | type pgrep struct method pidFile (line 26) | func (*pgrep) pidFile(path string) ([]pid, error) { method pattern (line 39) | func (pg *pgrep) pattern(pattern string) ([]pid, error) { method uid (line 44) | func (pg *pgrep) uid(user string) ([]pid, error) { method fullPattern (line 49) | func (pg *pgrep) fullPattern(pattern string) ([]pid, error) { method children (line 54) | func (pg *pgrep) children(pid pid) ([]pid, error) { method find (line 59) | func (pg *pgrep) find(args []string) ([]pid, error) { function newPgrepFinder (line 18) | func newPgrepFinder() (pidFinder, error) { FILE: plugins/inputs/procstat/process.go type process (line 19) | type process interface type pidFinder (line 27) | type pidFinder interface type proc (line 35) | type proc struct method pid (line 55) | func (p *proc) pid() pid { method setTag (line 59) | func (p *proc) setTag(k, v string) { method percent (line 63) | func (p *proc) percent(_ time.Duration) (float64, error) { method metrics (line 73) | func (p *proc) metrics(prefix string, cfg *collectionConfig, t time.Ti... function newProc (line 41) | func newProc(pid pid) (process, error) { FILE: plugins/inputs/procstat/procstat.go type pid (line 31) | type pid type Procstat (line 33) | type Procstat struct method SampleConfig (line 82) | func (*Procstat) SampleConfig() string { method Init (line 86) | func (p *Procstat) Init() error { method Gather (line 212) | func (p *Procstat) Gather(acc telegraf.Accumulator) error { method gatherOld (line 220) | func (p *Procstat) gatherOld(acc telegraf.Accumulator) error { method gatherNew (line 333) | func (p *Procstat) gatherNew(acc telegraf.Accumulator) error { method findPids (line 463) | func (p *Procstat) findPids() ([]pidsTags, error) { method findSupervisorUnits (line 510) | func (p *Procstat) findSupervisorUnits() ([]pidsTags, error) { method supervisorPIDs (line 556) | func (p *Procstat) supervisorPIDs() ([]string, map[string]map[string]s... method systemdUnitPIDs (line 600) | func (p *Procstat) systemdUnitPIDs() ([]pidsTags, error) { method simpleSystemdUnitPIDs (line 618) | func (p *Procstat) simpleSystemdUnitPIDs() ([]pid, error) { method cgroupPIDs (line 647) | func (p *Procstat) cgroupPIDs() ([]pidsTags, error) { method winServicePIDs (line 709) | func (p *Procstat) winServicePIDs() ([]pid, error) { type collectionConfig (line 64) | type collectionConfig struct type pidsTags (line 71) | type pidsTags struct type processGroup (line 76) | type processGroup struct function singleCgroupPIDs (line 671) | func singleCgroupPIDs(path string) ([]pid, error) { function isDir (line 701) | func isDir(path string) (bool, error) { function init (line 718) | func init() { FILE: plugins/inputs/procstat/procstat_test.go function init (line 23) | func init() { function mockExecCommand (line 26) | func mockExecCommand(arg0 string, args ...string) *exec.Cmd { function TestMockExecCommand (line 32) | func TestMockExecCommand(_ *testing.T) { type testPgrep (line 79) | type testPgrep struct method pidFile (line 91) | func (pg *testPgrep) pidFile(_ string) ([]pid, error) { method pattern (line 95) | func (pg *testPgrep) pattern(_ string) ([]pid, error) { method uid (line 99) | func (pg *testPgrep) uid(_ string) ([]pid, error) { method fullPattern (line 103) | func (pg *testPgrep) fullPattern(_ string) ([]pid, error) { method children (line 107) | func (pg *testPgrep) children(_ pid) ([]pid, error) { function newTestFinder (line 84) | func newTestFinder(pids []pid) pidFinder { type testProc (line 112) | type testProc struct method pid (line 125) | func (p *testProc) pid() pid { method Name (line 129) | func (*testProc) Name() (string, error) { method setTag (line 133) | func (p *testProc) setTag(k, v string) { method MemoryMaps (line 137) | func (*testProc) MemoryMaps(bool) (*[]gopsprocess.MemoryMapsStat, erro... method metrics (line 142) | func (p *testProc) metrics(prefix string, cfg *collectionConfig, t tim... function newTestProc (line 117) | func newTestProc(pid pid) (process, error) { function TestInitInvalidFinder (line 218) | func TestInitInvalidFinder(t *testing.T) { function TestInitRequiresChildDarwin (line 228) | func TestInitRequiresChildDarwin(t *testing.T) { function TestInitMissingPidMethod (line 243) | func TestInitMissingPidMethod(t *testing.T) { function TestGather_CreateProcessErrorOk (line 252) | func TestGather_CreateProcessErrorOk(t *testing.T) { function TestGather_ProcessName (line 288) | func TestGather_ProcessName(t *testing.T) { function TestGather_NoProcessNameUsesReal (line 360) | func TestGather_NoProcessNameUsesReal(t *testing.T) { function TestGather_NoPidTag (line 379) | func TestGather_NoPidTag(t *testing.T) { function TestGather_PidTag (line 397) | func TestGather_PidTag(t *testing.T) { function TestGather_Prefix (line 416) | func TestGather_Prefix(t *testing.T) { function TestGather_Exe (line 434) | func TestGather_Exe(t *testing.T) { function TestGather_User (line 451) | func TestGather_User(t *testing.T) { function TestGather_Pattern (line 470) | func TestGather_Pattern(t *testing.T) { function TestGather_PidFile (line 489) | func TestGather_PidFile(t *testing.T) { function TestGather_PercentFirstPass (line 508) | func TestGather_PercentFirstPass(t *testing.T) { function TestGather_PercentSecondPass (line 529) | func TestGather_PercentSecondPass(t *testing.T) { function TestGather_systemdUnitPIDs (line 551) | func TestGather_systemdUnitPIDs(t *testing.T) { function TestGather_cgroupPIDs (line 570) | func TestGather_cgroupPIDs(t *testing.T) { function TestProcstatLookupMetric (line 596) | func TestProcstatLookupMetric(t *testing.T) { function TestGather_SameTimestamps (line 612) | func TestGather_SameTimestamps(t *testing.T) { function TestGather_supervisorUnitPIDs (line 634) | func TestGather_supervisorUnitPIDs(t *testing.T) { function TestGather_MoresupervisorUnitPIDs (line 652) | func TestGather_MoresupervisorUnitPIDs(t *testing.T) { function TestGather_MultipleFiltersMatchingSameProcess (line 678) | func TestGather_MultipleFiltersMatchingSameProcess(t *testing.T) { function TestGather_MultipleFiltersProcessCacheIsolation (line 726) | func TestGather_MultipleFiltersProcessCacheIsolation(t *testing.T) { FILE: plugins/inputs/procstat/service_finders.go type processFinder (line 16) | type processFinder struct method findByPidFiles (line 28) | func (f *processFinder) findByPidFiles(paths []string) ([]processGroup... function newProcessFinder (line 21) | func newProcessFinder(log telegraf.Logger) *processFinder { function findByCgroups (line 54) | func findByCgroups(cgroups []string) ([]processGroup, error) { function findBySupervisorUnits (line 106) | func findBySupervisorUnits(units string) ([]processGroup, error) { FILE: plugins/inputs/prometheus/consul.go type consulConfig (line 17) | type consulConfig struct type consulQuery (line 27) | type consulQuery struct method startConsul (line 51) | func (p *Prometheus) startConsul(ctx context.Context) error { method refreshConsulServices (line 130) | func (p *Prometheus) refreshConsulServices(c *api.Catalog) error { method getConsulServiceURL (line 180) | func (p *Prometheus) getConsulServiceURL(q *consulQuery, s *api.CatalogS... FILE: plugins/inputs/prometheus/http_service_discovery.go type HTTPSDConfig (line 16) | type HTTPSDConfig struct type httpSDOutput (line 23) | type httpSDOutput struct method startHTTPSD (line 28) | func (p *Prometheus) startHTTPSD(ctx context.Context) error { method refreshHTTPServices (line 75) | func (p *Prometheus) refreshHTTPServices(sdURL string, client *http.Clie... FILE: plugins/inputs/prometheus/http_service_discovery_test.go function TestHttpSD (line 15) | func TestHttpSD(t *testing.T) { FILE: plugins/inputs/prometheus/kubernetes.go type podMetadata (line 32) | type podMetadata struct type podResponse (line 37) | type podResponse struct constant cAdvisorPodListDefaultInterval (line 44) | cAdvisorPodListDefaultInterval = 60 function loadConfig (line 47) | func loadConfig(kubeconfigPath string) (*rest.Config, error) { method startK8s (line 55) | func (p *Prometheus) startK8s(ctx context.Context) error { function shouldScrapePod (line 120) | func shouldScrapePod(pod *corev1.Pod, p *Prometheus) bool { method watchPod (line 152) | func (p *Prometheus) watchPod(ctx context.Context, clientset *kubernetes... method cAdvisor (line 233) | func (p *Prometheus) cAdvisor(ctx context.Context, bearerToken string) e... function updateCadvisorPodList (line 267) | func updateCadvisorPodList(p *Prometheus, req *http.Request) error { function necessaryPodFieldsArePresent (line 309) | func necessaryPodFieldsArePresent(pod *corev1.Pod) bool { function podHasMatchingLabelSelector (line 318) | func podHasMatchingLabelSelector(pod *corev1.Pod, labelSelector labels.S... function podHasMatchingFieldSelector (line 332) | func podHasMatchingFieldSelector(pod *corev1.Pod, fieldSelector fields.S... function getNamespaceObject (line 350) | func getNamespaceObject(name string, p *Prometheus) *corev1.Namespace { function namespaceAnnotationMatch (line 366) | func namespaceAnnotationMatch(nsName string, p *Prometheus) bool { function podHasMatchingNamespace (line 388) | func podHasMatchingNamespace(pod *corev1.Pod, p *Prometheus) bool { function podReady (line 392) | func podReady(pod *corev1.Pod) bool { function registerPod (line 401) | func registerPod(pod *corev1.Pod, p *Prometheus) { function getScrapeURL (line 450) | func getScrapeURL(pod *corev1.Pod, p *Prometheus) (*url.URL, error) { function unregisterPod (line 503) | func unregisterPod(podID podID, p *Prometheus) { FILE: plugins/inputs/prometheus/kubernetes_test.go function initPrometheus (line 20) | func initPrometheus() *Prometheus { function TestScrapeURLNoAnnotations (line 30) | func TestScrapeURLNoAnnotations(t *testing.T) { function TestScrapeURLNoAnnotationsScrapeConfig (line 39) | func TestScrapeURLNoAnnotationsScrapeConfig(t *testing.T) { function TestScrapeURLScrapeConfigCustom (line 50) | func TestScrapeURLScrapeConfigCustom(t *testing.T) { function TestScrapeURLAnnotations (line 63) | func TestScrapeURLAnnotations(t *testing.T) { function TestScrapeURLAnnotationsScrapeConfig (line 71) | func TestScrapeURLAnnotationsScrapeConfig(t *testing.T) { function TestScrapeURLAnnotationsCustomPort (line 80) | func TestScrapeURLAnnotationsCustomPort(t *testing.T) { function TestScrapeURLAnnotationsCustomPortScrapeConfig (line 89) | func TestScrapeURLAnnotationsCustomPortScrapeConfig(t *testing.T) { function TestScrapeURLAnnotationsCustomPath (line 99) | func TestScrapeURLAnnotationsCustomPath(t *testing.T) { function TestScrapeURLAnnotationsCustomPathWithSep (line 108) | func TestScrapeURLAnnotationsCustomPathWithSep(t *testing.T) { function TestScrapeURLAnnotationsCustomPathWithQueryParameters (line 117) | func TestScrapeURLAnnotationsCustomPathWithQueryParameters(t *testing.T) { function TestScrapeURLAnnotationsCustomPathWithFragment (line 126) | func TestScrapeURLAnnotationsCustomPathWithFragment(t *testing.T) { function TestAddPod (line 135) | func TestAddPod(t *testing.T) { function TestAddPodScrapeConfig (line 144) | func TestAddPodScrapeConfig(t *testing.T) { function TestAddMultipleDuplicatePods (line 154) | func TestAddMultipleDuplicatePods(t *testing.T) { function TestAddMultiplePods (line 168) | func TestAddMultiplePods(t *testing.T) { function TestDeletePods (line 180) | func TestDeletePods(t *testing.T) { function TestKeepDefaultNamespaceLabelName (line 193) | func TestKeepDefaultNamespaceLabelName(t *testing.T) { function TestChangeNamespaceLabelName (line 206) | func TestChangeNamespaceLabelName(t *testing.T) { function TestPodHasMatchingNamespace (line 220) | func TestPodHasMatchingNamespace(t *testing.T) { function TestPodHasMatchingLabelSelector (line 235) | func TestPodHasMatchingLabelSelector(t *testing.T) { function TestPodHasMatchingFieldSelector (line 253) | func TestPodHasMatchingFieldSelector(t *testing.T) { function TestInvalidFieldSelector (line 265) | func TestInvalidFieldSelector(t *testing.T) { function TestAnnotationFilters (line 276) | func TestAnnotationFilters(t *testing.T) { function TestLabelFilters (line 321) | func TestLabelFilters(t *testing.T) { function TestInformerFactoryRefCounting (line 366) | func TestInformerFactoryRefCounting(t *testing.T) { function TestInformerFactoryMultipleNamespaces (line 416) | func TestInformerFactoryMultipleNamespaces(t *testing.T) { function TestInformerFactoryConcurrentStop (line 472) | func TestInformerFactoryConcurrentStop(t *testing.T) { function pod (line 510) | func pod() *corev1.Pod { type mockSharedInformerFactory (line 518) | type mockSharedInformerFactory struct method Shutdown (line 523) | func (m *mockSharedInformerFactory) Shutdown() { function resetInformerFactoryState (line 529) | func resetInformerFactoryState(t *testing.T) { FILE: plugins/inputs/prometheus/prometheus.go constant acceptHeader (line 39) | acceptHeader = `application/vnd.google.protobuf;proto=io.prometheus.clie... constant monitorMethodNone (line 41) | monitorMethodNone monitorMethod = "" constant monitorMethodAnnotations (line 42) | monitorMethodAnnotations monitorMethod = "annotations" constant monitorMethodSettings (line 43) | monitorMethodSettings monitorMethod = "settings" constant monitorMethodSettingsAndAnnotations (line 44) | monitorMethodSettingsAndAnnotations monitorMethod = "settings+annotations" type Prometheus (line 47) | type Prometheus struct method SampleConfig (line 135) | func (*Prometheus) SampleConfig() string { method Init (line 139) | func (p *Prometheus) Init() error { method Start (line 263) | func (p *Prometheus) Start(_ telegraf.Accumulator) error { method Gather (line 286) | func (p *Prometheus) Gather(acc telegraf.Accumulator) error { method Stop (line 312) | func (p *Prometheus) Stop() { method initFilters (line 342) | func (p *Prometheus) initFilters() error { method getAllURLs (line 393) | func (p *Prometheus) getAllURLs() (map[string]urlAndAddress, error) { method gatherURL (line 444) | func (p *Prometheus) gatherURL(u urlAndAddress, acc telegraf.Accumulat... method addHeaders (line 637) | func (p *Prometheus) addHeaders(req *http.Request) { type urlAndAddress (line 123) | type urlAndAddress struct type monitorMethod (line 131) | type monitorMethod type podID (line 133) | type podID function addressToURL (line 374) | func addressToURL(u *url.URL, address string) *url.URL { function fieldSelectorIsSupported (line 647) | func fieldSelectorIsSupported(fieldSelector fields.Selector) (bool, stri... function init (line 667) | func init() { FILE: plugins/inputs/prometheus/prometheus_test.go constant sampleTextFormat (line 23) | sampleTextFormat = `# HELP go_gc_duration_seconds A summary of the GC in... constant sampleSummaryTextFormat (line 39) | sampleSummaryTextFormat = `# HELP go_gc_duration_seconds A summary of th... constant sampleGaugeTextFormat (line 49) | sampleGaugeTextFormat = ` function TestPrometheusGeneratesMetrics (line 54) | func TestPrometheusGeneratesMetrics(t *testing.T) { function TestPrometheusCustomHeader (line 85) | func TestPrometheusCustomHeader(t *testing.T) { function TestPrometheusGeneratesMetricsWithHostNameTag (line 152) | func TestPrometheusGeneratesMetricsWithHostNameTag(t *testing.T) { function TestPrometheusWithTimestamp (line 187) | func TestPrometheusWithTimestamp(t *testing.T) { function TestPrometheusGeneratesMetricsAlthoughFirstDNSFailsIntegration (line 225) | func TestPrometheusGeneratesMetricsAlthoughFirstDNSFailsIntegration(t *t... function TestPrometheusGeneratesMetricsSlowEndpoint (line 258) | func TestPrometheusGeneratesMetricsSlowEndpoint(t *testing.T) { function TestPrometheusGeneratesMetricsSlowEndpointHitTheTimeout (line 293) | func TestPrometheusGeneratesMetricsSlowEndpointHitTheTimeout(t *testing.... function TestPrometheusGeneratesMetricsSlowEndpointNewConfigParameter (line 325) | func TestPrometheusGeneratesMetricsSlowEndpointNewConfigParameter(t *tes... function TestPrometheusGeneratesMetricsSlowEndpointHitTheTimeoutNewConfigParameter (line 358) | func TestPrometheusGeneratesMetricsSlowEndpointHitTheTimeoutNewConfigPar... function TestPrometheusContentLengthLimit (line 384) | func TestPrometheusContentLengthLimit(t *testing.T) { function TestPrometheusGeneratesSummaryMetricsV2 (line 407) | func TestPrometheusGeneratesSummaryMetricsV2(t *testing.T) { function TestSummaryMayContainNaN (line 437) | func TestSummaryMayContainNaN(t *testing.T) { function TestPrometheusGeneratesGaugeMetricsV2 (line 516) | func TestPrometheusGeneratesGaugeMetricsV2(t *testing.T) { function TestPrometheusGeneratesMetricsWithIgnoreTimestamp (line 545) | func TestPrometheusGeneratesMetricsWithIgnoreTimestamp(t *testing.T) { function TestUnsupportedFieldSelector (line 572) | func TestUnsupportedFieldSelector(t *testing.T) { function TestInitConfigErrors (line 583) | func TestInitConfigErrors(t *testing.T) { function TestInitConfigSelectors (line 626) | func TestInitConfigSelectors(t *testing.T) { function TestPrometheusInternalOk (line 645) | func TestPrometheusInternalOk(t *testing.T) { function TestPrometheusInternalContentBadFormat (line 689) | func TestPrometheusInternalContentBadFormat(t *testing.T) { function TestPrometheusInternalNoWeb (line 731) | func TestPrometheusInternalNoWeb(t *testing.T) { function TestOpenmetricsText (line 768) | func TestOpenmetricsText(t *testing.T) { function TestOpenmetricsProtobuf (line 829) | func TestOpenmetricsProtobuf(t *testing.T) { function TestContentTypeOverride (line 881) | func TestContentTypeOverride(t *testing.T) { FILE: plugins/inputs/promql/client.go type client (line 16) | type client struct method init (line 27) | func (c *client) init() (*client, error) { method close (line 63) | func (c *client) close() { type secretReader (line 72) | type secretReader struct method Fetch (line 78) | func (r *secretReader) Fetch(context.Context) (string, error) { method Description (line 90) | func (r *secretReader) Description() string { method Immutable (line 95) | func (*secretReader) Immutable() bool { FILE: plugins/inputs/promql/promql.go type PromQL (line 23) | type PromQL struct method SampleConfig (line 37) | func (*PromQL) SampleConfig() string { method Init (line 41) | func (p *PromQL) Init() error { method Start (line 88) | func (p *PromQL) Start(telegraf.Accumulator) error { method Stop (line 99) | func (p *PromQL) Stop() { method Gather (line 105) | func (p *PromQL) Gather(acc telegraf.Accumulator) error { function init (line 126) | func init() { FILE: plugins/inputs/promql/promql_test.go function TestInitSuccess (line 28) | func TestInitSuccess(t *testing.T) { function TestInitFail (line 81) | func TestInitFail(t *testing.T) { function TestInstantQueries (line 135) | func TestInstantQueries(t *testing.T) { function TestRangeQueries (line 1120) | func TestRangeQueries(t *testing.T) { function TestMetricNameOverride (line 2119) | func TestMetricNameOverride(t *testing.T) { function TestWarnings (line 2521) | func TestWarnings(t *testing.T) { function TestIntegrationInstant (line 2584) | func TestIntegrationInstant(t *testing.T) { function TestIntegrationRange (line 2774) | func TestIntegrationRange(t *testing.T) { type writer (line 3041) | type writer struct method write (line 3053) | func (w *writer) write(metrics []telegraf.Metric) error { method writeSingle (line 3062) | func (w *writer) writeSingle(m telegraf.Metric) error { method send (line 3071) | func (w *writer) send(buf []byte) error { function newWriter (line 3046) | func newWriter(addr string) *writer { FILE: plugins/inputs/promql/query.go type query (line 16) | type query struct method init (line 26) | func (q *query) init(c *client, log telegraf.Logger, options ...apiv1.... method convertModelValue (line 101) | func (q *query) convertModelValue(acc telegraf.Accumulator, results mo... type InstantQuery (line 40) | type InstantQuery struct method init (line 44) | func (q *InstantQuery) init(c *client, log telegraf.Logger, options ..... method execute (line 48) | func (q *InstantQuery) execute(ctx context.Context, acc telegraf.Accum... type RangeQuery (line 60) | type RangeQuery struct method init (line 67) | func (q *RangeQuery) init(c *client, log telegraf.Logger, options ...a... method execute (line 85) | func (q *RangeQuery) execute(ctx context.Context, acc telegraf.Accumul... FILE: plugins/inputs/proxmox/proxmox.go type Proxmox (line 25) | type Proxmox struct method SampleConfig (line 40) | func (*Proxmox) SampleConfig() string { method Init (line 44) | func (px *Proxmox) Init() error { method Gather (line 78) | func (px *Proxmox) Gather(acc telegraf.Accumulator) error { method getNodeSearchDomain (line 89) | func (px *Proxmox) getNodeSearchDomain() error { method performRequest (line 105) | func (px *Proxmox) performRequest(apiURL, method string, data url.Valu... method gatherVMData (line 126) | func (px *Proxmox) gatherVMData(acc telegraf.Accumulator, rt resourceT... method getCurrentVMStatus (line 206) | func (px *Proxmox) getCurrentVMStatus(rt resourceType, id json.Number)... method getVMStats (line 222) | func (px *Proxmox) getVMStats(rt resourceType) (vmStats, error) { method getVMConfig (line 238) | func (px *Proxmox) getVMConfig(vmID json.Number, rt resourceType) (vmC... function getByteMetrics (line 254) | func getByteMetrics(total, used json.Number) metrics { function jsonNumberToInt64 (line 271) | func jsonNumberToInt64(value json.Number) int64 { function jsonNumberToFloat64 (line 280) | func jsonNumberToFloat64(value json.Number) float64 { function init (line 289) | func init() { FILE: plugins/inputs/proxmox/proxmox_test.go function performTestRequest (line 30) | func performTestRequest(apiURL, _ string, _ url.Values) ([]byte, error) { function TestGetNodeSearchDomain (line 52) | func TestGetNodeSearchDomain(t *testing.T) { function TestGatherLxcData (line 64) | func TestGatherLxcData(t *testing.T) { function TestGatherQemuData (line 108) | func TestGatherQemuData(t *testing.T) { function TestGatherLxcDataWithID (line 152) | func TestGatherLxcDataWithID(t *testing.T) { function TestGatherQemuDataWithID (line 198) | func TestGatherQemuDataWithID(t *testing.T) { function TestGather (line 244) | func TestGather(t *testing.T) { FILE: plugins/inputs/proxmox/structs.go type resourceType (line 12) | type resourceType type vmStats (line 14) | type vmStats struct type vmCurrentStats (line 18) | type vmCurrentStats struct type vmStat (line 22) | type vmStat struct type vmConfig (line 36) | type vmConfig struct type nodeDNS (line 44) | type nodeDNS struct type metrics (line 50) | type metrics struct FILE: plugins/inputs/puppetagent/puppetagent.go type PuppetAgent (line 20) | type PuppetAgent struct method SampleConfig (line 84) | func (*PuppetAgent) SampleConfig() string { method Gather (line 88) | func (pa *PuppetAgent) Gather(acc telegraf.Accumulator) error { type state (line 24) | type state struct type event (line 32) | type event struct type resource (line 39) | type resource struct type change (line 51) | type change struct type time (line 55) | type time struct type version (line 79) | type version struct function structPrinter (line 115) | func structPrinter(s *state, acc telegraf.Accumulator, tags map[string]s... function init (line 135) | func init() { FILE: plugins/inputs/puppetagent/puppetagent_test.go function TestGather (line 11) | func TestGather(t *testing.T) { FILE: plugins/inputs/rabbitmq/rabbitmq.go constant defaultUsername (line 26) | defaultUsername = "guest" constant defaultPassword (line 27) | defaultPassword = "guest" constant defaultURL (line 28) | defaultURL = "http://localhost:15672" constant defaultResponseHeaderTimeout (line 29) | defaultResponseHeaderTimeout = 3 constant defaultClientTimeout (line 30) | defaultClientTimeout = 4 type RabbitMQ (line 35) | type RabbitMQ struct method SampleConfig (line 261) | func (*RabbitMQ) SampleConfig() string { method Init (line 265) | func (r *RabbitMQ) Init() error { method Gather (line 297) | func (r *RabbitMQ) Gather(acc telegraf.Accumulator) error { method requestEndpoint (line 315) | func (r *RabbitMQ) requestEndpoint(u string) ([]byte, error) { method requestJSON (line 363) | func (r *RabbitMQ) requestJSON(u string, target interface{}) error { method shouldGatherNode (line 703) | func (r *RabbitMQ) shouldGatherNode(node *node) bool { method createQueueFilter (line 717) | func (r *RabbitMQ) createQueueFilter() error { method createUpstreamFilter (line 733) | func (r *RabbitMQ) createUpstreamFilter() error { method shouldGatherExchange (line 743) | func (r *RabbitMQ) shouldGatherExchange(exchangeName string) bool { method shouldGatherFederationLink (line 757) | func (r *RabbitMQ) shouldGatherFederationLink(link federationLink) bool { type overviewResponse (line 65) | type overviewResponse struct type listeners (line 72) | type listeners struct type details (line 76) | type details struct type messageStats (line 80) | type messageStats struct type objectTotals (line 99) | type objectTotals struct type queueTotals (line 107) | type queueTotals struct type queue (line 118) | type queue struct type node (line 136) | type node struct type exchange (line 172) | type exchange struct type federationLinkChannelMessageStats (line 182) | type federationLinkChannelMessageStats struct type federationLinkChannel (line 191) | type federationLinkChannel struct type federationLink (line 200) | type federationLink struct type memoryResponse (line 211) | type memoryResponse struct type memory (line 216) | type memory struct type errorResponse (line 239) | type errorResponse struct type gatherFunc (line 244) | type gatherFunc function boolToInt (line 254) | func boolToInt(b bool) int64 { function gatherOverview (line 385) | func gatherOverview(r *RabbitMQ, acc telegraf.Accumulator) { function gatherNodes (line 430) | func gatherNodes(r *RabbitMQ, acc telegraf.Accumulator) { function gatherQueues (line 546) | func gatherQueues(r *RabbitMQ, acc telegraf.Accumulator) { function gatherExchanges (line 621) | func gatherExchanges(r *RabbitMQ, acc telegraf.Accumulator) { function gatherFederationLinks (line 657) | func gatherFederationLinks(r *RabbitMQ, acc telegraf.Accumulator) { function init (line 772) | func init() { FILE: plugins/inputs/rabbitmq/rabbitmq_test.go function TestRabbitMQGeneratesMetricsSet1 (line 18) | func TestRabbitMQGeneratesMetricsSet1(t *testing.T) { function TestRabbitMQGeneratesMetricsSet2 (line 351) | func TestRabbitMQGeneratesMetricsSet2(t *testing.T) { function TestRabbitMQMetricFilerts (line 826) | func TestRabbitMQMetricFilerts(t *testing.T) { function TestRabbitMQQueueTypeTag (line 878) | func TestRabbitMQQueueTypeTag(t *testing.T) { FILE: plugins/inputs/radius/radius.go type Radius (line 24) | type Radius struct method SampleConfig (line 35) | func (*Radius) SampleConfig() string { method Init (line 39) | func (r *Radius) Init() error { method Gather (line 58) | func (r *Radius) Gather(acc telegraf.Accumulator) error { method pollServer (line 73) | func (r *Radius) pollServer(acc telegraf.Accumulator, server string) e... function init (line 154) | func init() { FILE: plugins/inputs/radius/radius_test.go function TestRadiusLocal (line 19) | func TestRadiusLocal(t *testing.T) { function TestRadiusNASIP (line 86) | func TestRadiusNASIP(t *testing.T) { function TestInvalidRequestIP (line 156) | func TestInvalidRequestIP(t *testing.T) { function TestRadiusIntegration (line 168) | func TestRadiusIntegration(t *testing.T) { function TestRadiusIntegrationInvalidSourceIP (line 288) | func TestRadiusIntegrationInvalidSourceIP(t *testing.T) { FILE: plugins/inputs/raindrops/raindrops.go type Raindrops (line 23) | type Raindrops struct method SampleConfig (line 28) | func (*Raindrops) SampleConfig() string { method Gather (line 32) | func (r *Raindrops) Gather(acc telegraf.Accumulator) error { method gatherURL (line 54) | func (r *Raindrops) gatherURL(addr *url.URL, acc telegraf.Accumulator)... function getTags (line 156) | func getTags(addr *url.URL) map[string]string { function init (line 172) | func init() { FILE: plugins/inputs/raindrops/raindrops_test.go constant sampleResponse (line 17) | sampleResponse = ` function TestRaindropsTags (line 36) | func TestRaindropsTags(t *testing.T) { function TestRaindropsGeneratesMetrics (line 46) | func TestRaindropsGeneratesMetrics(t *testing.T) { FILE: plugins/inputs/ras/ras.go constant mceQuery (line 26) | mceQuery = ` constant defaultDBPath (line 32) | defaultDBPath = "/var/lib/rasdaemon/ras-mc_event.db" constant dateLayout (line 33) | dateLayout = "2006-01-02 15:04:05 -0700" constant memoryReadCorrected (line 34) | memoryReadCorrected = "memory_read_corrected_errors" constant memoryReadUncorrected (line 35) | memoryReadUncorrected = "memory_read_uncorrectable_errors" constant memoryWriteCorrected (line 36) | memoryWriteCorrected = "memory_write_corrected_errors" constant memoryWriteUncorrected (line 37) | memoryWriteUncorrected = "memory_write_uncorrectable_errors" constant instructionCache (line 38) | instructionCache = "cache_l0_l1_errors" constant instructionTLB (line 39) | instructionTLB = "tlb_instruction_errors" constant levelTwoCache (line 40) | levelTwoCache = "cache_l2_errors" constant upi (line 41) | upi = "upi_errors" constant processorBase (line 42) | processorBase = "processor_base_errors" constant processorBus (line 43) | processorBus = "processor_bus_errors" constant internalTimer (line 44) | internalTimer = "internal_timer_errors" constant smmHandlerCode (line 45) | smmHandlerCode = "smm_handler_code_access_violation_errors" constant internalParity (line 46) | internalParity = "internal_parity_errors" constant frc (line 47) | frc = "frc_errors" constant externalMCEBase (line 48) | externalMCEBase = "external_mce_errors" constant microcodeROMParity (line 49) | microcodeROMParity = "microcode_rom_parity_errors" constant unclassifiedMCEBase (line 50) | unclassifiedMCEBase = "unclassified_mce_errors" type Ras (line 53) | type Ras struct method SampleConfig (line 73) | func (*Ras) SampleConfig() string { method Start (line 78) | func (r *Ras) Start(telegraf.Accumulator) error { method Gather (line 93) | func (r *Ras) Gather(acc telegraf.Accumulator) error { method Stop (line 119) | func (r *Ras) Stop() { method updateLatestTimestamp (line 128) | func (r *Ras) updateLatestTimestamp(timestamp string) error { method updateCounters (line 140) | func (r *Ras) updateCounters(mcError *machineCheckError) { method updateServerCounters (line 170) | func (r *Ras) updateServerCounters(mcError *machineCheckError) { method initializeCPUMetricDataIfRequired (line 201) | func (r *Ras) initializeCPUMetricDataIfRequired(socketID int) { method updateSocketCounters (line 207) | func (r *Ras) updateSocketCounters(mcError *machineCheckError) { method updateProcessorBaseCounters (line 226) | func (r *Ras) updateProcessorBaseCounters(mcError *machineCheckError) { method updateMemoryCounters (line 263) | func (r *Ras) updateMemoryCounters(mcError *machineCheckError) { type machineCheckError (line 63) | type machineCheckError struct type metricCounters (line 71) | type metricCounters function newMetricCounters (line 150) | func newMetricCounters() *metricCounters { function validateDBPath (line 180) | func validateDBPath(dbPath string) error { function connectToDB (line 197) | func connectToDB(dbPath string) (*sql.DB, error) { function addCPUSocketMetrics (line 280) | func addCPUSocketMetrics(acc telegraf.Accumulator, cpuSocketCounters map... function addServerMetrics (line 295) | func addServerMetrics(acc telegraf.Accumulator, counters map[string]int6... function fetchMachineCheckError (line 304) | func fetchMachineCheckError(rows *sql.Rows) (*machineCheckError, error) { function parseDate (line 315) | func parseDate(date string) (time.Time, error) { function init (line 319) | func init() { FILE: plugins/inputs/ras/ras_notlinux.go type Ras (line 16) | type Ras struct method SampleConfig (line 20) | func (*Ras) SampleConfig() string { return sampleConfig } method Init (line 22) | func (r *Ras) Init() error { method Gather (line 27) | func (*Ras) Gather(telegraf.Accumulator) error { return nil } function init (line 29) | func init() { FILE: plugins/inputs/ras/ras_test.go function TestUpdateCounters (line 13) | func TestUpdateCounters(t *testing.T) { function TestUpdateLatestTimestamp (line 36) | func TestUpdateLatestTimestamp(t *testing.T) { function TestMultipleSockets (line 66) | func TestMultipleSockets(t *testing.T) { function TestMissingDatabase (line 112) | func TestMissingDatabase(t *testing.T) { function TestEmptyDatabase (line 120) | func TestEmptyDatabase(t *testing.T) { function newRas (line 135) | func newRas() *Ras { FILE: plugins/inputs/ravendb/ravendb.go constant defaultURL (line 25) | defaultURL = "http://localhost:8080" constant defaultTimeout (line 26) | defaultTimeout = 5 type RavenDB (line 29) | type RavenDB struct method SampleConfig (line 51) | func (*RavenDB) SampleConfig() string { method Init (line 55) | func (r *RavenDB) Init() error { method Gather (line 79) | func (r *RavenDB) Gather(acc telegraf.Accumulator) error { method ensureClient (line 114) | func (r *RavenDB) ensureClient() error { method requestJSON (line 135) | func (r *RavenDB) requestJSON(u string, target interface{}) error { method gatherServer (line 156) | func (r *RavenDB) gatherServer(acc telegraf.Accumulator) { method gatherDatabases (line 235) | func (r *RavenDB) gatherDatabases(acc telegraf.Accumulator) { method gatherIndexes (line 299) | func (r *RavenDB) gatherIndexes(acc telegraf.Accumulator) { method gatherCollections (line 340) | func (r *RavenDB) gatherCollections(acc telegraf.Accumulator) { function prepareDBNamesURLPart (line 375) | func prepareDBNamesURLPart(dbNames []string) string { function init (line 390) | func init() { FILE: plugins/inputs/ravendb/ravendb_dto.go type serverMetricsResponse (line 3) | type serverMetricsResponse struct type backupMetrics (line 20) | type backupMetrics struct type configurationMetrics (line 25) | type configurationMetrics struct type cpuMetrics (line 32) | type cpuMetrics struct type memoryMetrics (line 42) | type memoryMetrics struct type diskMetrics (line 53) | type diskMetrics struct type licenseMetrics (line 60) | type licenseMetrics struct type networkMetrics (line 67) | type networkMetrics struct type certificateMetrics (line 76) | type certificateMetrics struct type clusterMetrics (line 81) | type clusterMetrics struct type allDatabasesMetrics (line 89) | type allDatabasesMetrics struct type databasesMetricResponse (line 94) | type databasesMetricResponse struct type databaseMetrics (line 100) | type databaseMetrics struct type databaseCounts (line 113) | type databaseCounts struct type databaseStatistics (line 124) | type databaseStatistics struct type databaseIndexesMetrics (line 134) | type databaseIndexesMetrics struct type databaseStorageMetrics (line 145) | type databaseStorageMetrics struct type indexesMetricResponse (line 159) | type indexesMetricResponse struct type perDatabaseIndexMetrics (line 165) | type perDatabaseIndexMetrics struct type indexMetrics (line 170) | type indexMetrics struct type collectionsMetricResponse (line 186) | type collectionsMetricResponse struct type perDatabaseCollectionMetrics (line 192) | type perDatabaseCollectionMetrics struct type collectionMetrics (line 197) | type collectionMetrics struct FILE: plugins/inputs/ravendb/ravendb_test.go function TestRavenDBGeneratesMetricsFull (line 16) | func TestRavenDBGeneratesMetricsFull(t *testing.T) { function TestRavenDBGeneratesMetricsMin (line 225) | func TestRavenDBGeneratesMetricsMin(t *testing.T) { FILE: plugins/inputs/redfish/redfish.go constant tagSetChassisLocation (line 29) | tagSetChassisLocation = "chassis.location" constant tagSetChassis (line 30) | tagSetChassis = "chassis" type Redfish (line 33) | type Redfish struct method SampleConfig (line 156) | func (*Redfish) SampleConfig() string { method Init (line 160) | func (r *Redfish) Init() error { method Gather (line 218) | func (r *Redfish) Gather(acc telegraf.Accumulator) error { method getData (line 253) | func (r *Redfish) getData(address string, payload interface{}) error { method getComputerSystem (line 309) | func (r *Redfish) getComputerSystem(id string) (*system, error) { method getChassis (line 319) | func (r *Redfish) getChassis(ref string) (*chassis, error) { method getPower (line 329) | func (r *Redfish) getPower(ref string) (*power, error) { method getThermal (line 339) | func (r *Redfish) getThermal(ref string) (*thermal, error) { method gatherThermal (line 361) | func (r *Redfish) gatherThermal(acc telegraf.Accumulator, address stri... method gatherPower (line 433) | func (r *Redfish) gatherPower(acc telegraf.Accumulator, address string... type system (line 49) | type system struct type chassis (line 58) | type chassis struct type power (line 76) | type power struct type thermal (line 114) | type thermal struct type location (line 140) | type location struct type status (line 151) | type status struct function setChassisTags (line 349) | func setChassisTags(chassis *chassis, tags map[string]string) { function init (line 528) | func init() { FILE: plugins/inputs/redfish/redfish_test.go function TestDellApis (line 18) | func TestDellApis(t *testing.T) { function TestHPApis (line 441) | func TestHPApis(t *testing.T) { function TestHPilo4Apis (line 620) | func TestHPilo4Apis(t *testing.T) { function checkAuth (line 717) | func checkAuth(r *http.Request, username, password string) bool { function TestInvalidUsernameorPassword (line 725) | func TestInvalidUsernameorPassword(t *testing.T) { function TestNoUsernameorPasswordConfiguration (line 756) | func TestNoUsernameorPasswordConfiguration(t *testing.T) { function TestInvalidDellJSON (line 783) | func TestInvalidDellJSON(t *testing.T) { function TestInvalidHPJSON (line 861) | func TestInvalidHPJSON(t *testing.T) { function TestIncludeTagSetsConfiguration (line 932) | func TestIncludeTagSetsConfiguration(t *testing.T) { FILE: plugins/inputs/redis/redis.go type Redis (line 37) | type Redis struct method SampleConfig (line 180) | func (*Redis) SampleConfig() string { method Init (line 184) | func (r *Redis) Init() error { method Start (line 194) | func (*Redis) Start(telegraf.Accumulator) error { method Gather (line 198) | func (r *Redis) Gather(acc telegraf.Accumulator) error { method Stop (line 222) | func (r *Redis) Stop() { method connect (line 231) | func (r *Redis) connect() error { method gatherCommandValues (line 309) | func (r *Redis) gatherCommandValues(client client, acc telegraf.Accumu... type redisCommand (line 51) | type redisCommand struct type redisClient (line 57) | type redisClient struct method do (line 329) | func (r *redisClient) do(returnType string, args ...interface{}) (inte... method info (line 344) | func (r *redisClient) info() *redis.StringCmd { method baseTags (line 348) | func (r *redisClient) baseTags() map[string]string { method close (line 356) | func (r *redisClient) close() error { type redisFieldTypes (line 63) | type redisFieldTypes struct type client (line 173) | type client interface function gatherServer (line 360) | func gatherServer(client client, acc telegraf.Accumulator) error { function gatherInfoOutput (line 370) | func gatherInfoOutput(rdr io.Reader, acc telegraf.Accumulator, tags map[... function gatherKeyspaceLine (line 501) | func gatherKeyspaceLine(name, line string, acc telegraf.Accumulator, glo... function gatherCommandStateLine (line 527) | func gatherCommandStateLine(name, line string, acc telegraf.Accumulator,... function gatherLatencyStatsLine (line 569) | func gatherLatencyStatsLine(name, line string, acc telegraf.Accumulator,... function gatherReplicationLine (line 604) | func gatherReplicationLine(name, line string, acc telegraf.Accumulator, ... function gatherErrorStatsLine (line 644) | func gatherErrorStatsLine(name, line string, acc telegraf.Accumulator, g... function setExistingFieldsFromStruct (line 665) | func setExistingFieldsFromStruct(fields map[string]interface{}, o *redis... function setStructFieldsFromObject (line 683) | func setStructFieldsFromObject(fields map[string]interface{}, o *redisFi... function coerceType (line 702) | func coerceType(value interface{}, typ reflect.Type) reflect.Value { function init (line 779) | func init() { FILE: plugins/inputs/redis/redis_test.go type testClient (line 18) | type testClient struct method baseTags (line 20) | func (*testClient) baseTags() map[string]string { method info (line 24) | func (*testClient) info() *redis.StringCmd { method do (line 28) | func (*testClient) do(string, ...interface{}) (interface{}, error) { method close (line 32) | func (*testClient) close() error { function TestRedisConnectIntegration (line 36) | func TestRedisConnectIntegration(t *testing.T) { function TestRedis_Commands (line 64) | func TestRedis_Commands(t *testing.T) { function TestRedis_ParseMetrics (line 91) | func TestRedis_ParseMetrics(t *testing.T) { function TestRedis_ParseFloatOnInts (line 312) | func TestRedis_ParseFloatOnInts(t *testing.T) { function TestRedis_ParseIntOnFloats (line 331) | func TestRedis_ParseIntOnFloats(t *testing.T) { function TestRedis_ParseStringOnInts (line 350) | func TestRedis_ParseStringOnInts(t *testing.T) { function TestRedis_ParseIntOnString (line 369) | func TestRedis_ParseIntOnString(t *testing.T) { function TestRedis_GatherErrorstatsLine (line 388) | func TestRedis_GatherErrorstatsLine(t *testing.T) { constant testOutput (line 406) | testOutput = `# Server FILE: plugins/inputs/redis_sentinel/redis_sentinel.go constant measurementMasters (line 26) | measurementMasters = "redis_sentinel_masters" constant measurementSentinel (line 27) | measurementSentinel = "redis_sentinel" constant measurementSentinels (line 28) | measurementSentinels = "redis_sentinel_sentinels" constant measurementReplicas (line 29) | measurementReplicas = "redis_sentinel_replicas" type RedisSentinel (line 32) | type RedisSentinel struct method SampleConfig (line 44) | func (*RedisSentinel) SampleConfig() string { method Init (line 48) | func (r *RedisSentinel) Init() error { method Gather (line 109) | func (r *RedisSentinel) Gather(acc telegraf.Accumulator) error { type redisSentinelClient (line 39) | type redisSentinelClient struct method gatherInfoStats (line 195) | func (client *redisSentinelClient) gatherInfoStats(acc telegraf.Accumu... method gatherMasterStats (line 217) | func (client *redisSentinelClient) gatherMasterStats(acc telegraf.Accu... method gatherReplicaStats (line 259) | func (client *redisSentinelClient) gatherReplicaStats(acc telegraf.Acc... method gatherSentinelStats (line 291) | func (client *redisSentinelClient) gatherSentinelStats(acc telegraf.Ac... function toMap (line 136) | func toMap(vals []interface{}) map[string]string { function castFieldValue (line 151) | func castFieldValue(value string, fieldType configFieldType) (interface{... function prepareFieldValues (line 173) | func prepareFieldValues(fields map[string]string, typeMap map[string]con... function convertSentinelMastersOutput (line 324) | func convertSentinelMastersOutput(globalTags, master map[string]string, ... function convertSentinelSentinelsOutput (line 340) | func convertSentinelSentinelsOutput( function convertSentinelReplicaOutput (line 360) | func convertSentinelReplicaOutput( function convertSentinelInfoOutput (line 381) | func convertSentinelInfoOutput(globalTags map[string]string, rdr io.Read... function init (line 432) | func init() { FILE: plugins/inputs/redis_sentinel/redis_sentinel_test.go constant masterName (line 20) | masterName = "mymaster" constant sentinelServicePort (line 21) | sentinelServicePort = "26379" function TestRedisSentinelConnectIntegration (line 23) | func TestRedisSentinelConnectIntegration(t *testing.T) { function TestRedisSentinelMasters (line 67) | func TestRedisSentinelMasters(t *testing.T) { function TestRedisSentinels (line 141) | func TestRedisSentinels(t *testing.T) { function TestRedisSentinelReplicas (line 196) | func TestRedisSentinelReplicas(t *testing.T) { function TestRedisSentinelInfoAll (line 263) | func TestRedisSentinelInfoAll(t *testing.T) { function createRedisContainer (line 344) | func createRedisContainer(networkName string) testutil.Container { function createSentinelContainer (line 357) | func createSentinelContainer(redisAddress, networkName string, waitingFo... FILE: plugins/inputs/redis_sentinel/redis_sentinel_types.go type configFieldType (line 3) | type configFieldType constant configFieldTypeInteger (line 6) | configFieldTypeInteger configFieldType = iota constant configFieldTypeString (line 7) | configFieldTypeString constant configFieldTypeFloat (line 8) | configFieldTypeFloat FILE: plugins/inputs/registry.go type Creator (line 6) | type Creator function Add (line 12) | func Add(name string, creator Creator) { FILE: plugins/inputs/rethinkdb/rethinkdb.go type RethinkDB (line 21) | type RethinkDB struct method SampleConfig (line 25) | func (*RethinkDB) SampleConfig() string { method Gather (line 29) | func (r *RethinkDB) Gather(acc telegraf.Accumulator) error { function gatherServer (line 57) | func gatherServer(server *server, acc telegraf.Accumulator) error { function init (line 88) | func init() { FILE: plugins/inputs/rethinkdb/rethinkdb_data.go type serverStatus (line 10) | type serverStatus struct type address (line 23) | type address struct type stats (line 28) | type stats struct type engine (line 32) | type engine struct method addEngineStats (line 89) | func (e *engine) addEngineStats(keys []string, acc telegraf.Accumulato... type tableStatus (line 43) | type tableStatus struct type tableStats (line 49) | type tableStats struct type storage (line 54) | type storage struct method addStats (line 98) | func (s *storage) addStats(acc telegraf.Accumulator, tags map[string]s... type cache (line 59) | type cache struct type disk (line 63) | type disk struct type spaceUsage (line 71) | type spaceUsage struct FILE: plugins/inputs/rethinkdb/rethinkdb_data_test.go function TestAddEngineStats (line 13) | func TestAddEngineStats(t *testing.T) { function TestAddEngineStatsPartial (line 44) | func TestAddEngineStatsPartial(t *testing.T) { function TestAddStorageStats (line 75) | func TestAddStorageStats(t *testing.T) { FILE: plugins/inputs/rethinkdb/rethinkdb_server.go type server (line 17) | type server struct method gatherData (line 23) | func (s *server) gatherData(acc telegraf.Accumulator) error { method validateVersion (line 47) | func (s *server) validateVersion() error { method getServerStatus (line 65) | func (s *server) getServerStatus() error { method getDefaultTags (line 100) | func (s *server) getDefaultTags() map[string]string { method addClusterStats (line 115) | func (s *server) addClusterStats(acc telegraf.Accumulator) error { method addMemberStats (line 143) | func (s *server) addMemberStats(acc telegraf.Accumulator) error { method addTablesStats (line 167) | func (s *server) addTablesStats(acc telegraf.Accumulator) error { method addTableStats (line 188) | func (s *server) addTableStats(acc telegraf.Accumulator, table tableSt... FILE: plugins/inputs/rethinkdb/rethinkdb_server_test.go function TestValidateVersion (line 13) | func TestValidateVersion(t *testing.T) { function TestGetDefaultTags (line 18) | func TestGetDefaultTags(t *testing.T) { function TestAddClusterStats (line 34) | func TestAddClusterStats(t *testing.T) { function TestAddMemberStats (line 45) | func TestAddMemberStats(t *testing.T) { function TestAddTableStats (line 56) | func TestAddTableStats(t *testing.T) { FILE: plugins/inputs/rethinkdb/rethinkdb_test.go function init (line 19) | func init() { function testSetup (line 29) | func testSetup(m *testing.M) { function testTeardown (line 60) | func testTeardown(m *testing.M) { function TestMain (line 64) | func TestMain(m *testing.M) { FILE: plugins/inputs/riak/riak.go type Riak (line 19) | type Riak struct method SampleConfig (line 76) | func (*Riak) SampleConfig() string { method Gather (line 80) | func (r *Riak) Gather(acc telegraf.Accumulator) error { method gatherServer (line 94) | func (r *Riak) gatherServer(s string, acc telegraf.Accumulator) error { type riakStats (line 27) | type riakStats struct function newRiak (line 181) | func newRiak() *Riak { function init (line 190) | func init() { FILE: plugins/inputs/riak/riak_test.go function TestRiak (line 15) | func TestRiak(t *testing.T) { FILE: plugins/inputs/riemann_listener/riemann_listener.go type RiemannSocketListener (line 33) | type RiemannSocketListener struct method SampleConfig (line 62) | func (*RiemannSocketListener) SampleConfig() string { method Start (line 66) | func (rsl *RiemannSocketListener) Start(acc telegraf.Accumulator) error { method Gather (line 120) | func (*RiemannSocketListener) Gather(telegraf.Accumulator) error { method Stop (line 124) | func (rsl *RiemannSocketListener) Stop() { method processOsSignals (line 340) | func (rsl *RiemannSocketListener) processOsSignals(cancelFunc context.... type setReadBufferer (line 48) | type setReadBufferer interface type riemannListener (line 52) | type riemannListener struct method listen (line 129) | func (rsl *riemannListener) listen(ctx context.Context) { method closeAllConnections (line 185) | func (rsl *riemannListener) closeAllConnections() { method setKeepAlive (line 195) | func (rsl *riemannListener) setKeepAlive(c net.Conn) error { method removeConnection (line 212) | func (rsl *riemannListener) removeConnection(c net.Conn) { method read (line 234) | func (rsl *riemannListener) read(conn net.Conn) { method riemannReturnResponse (line 294) | func (rsl *riemannListener) riemannReturnResponse(conn net.Conn) { method riemannReturnErrorResponse (line 316) | func (rsl *riemannListener) riemannReturnErrorResponse(conn net.Conn, ... function readMessages (line 223) | func readMessages(r io.Reader, p []byte) error { function newRiemannSocketListener (line 353) | func newRiemannSocketListener() *RiemannSocketListener { function init (line 357) | func init() { FILE: plugins/inputs/riemann_listener/riemann_listener_test.go function TestSocketListener_tcp (line 15) | func TestSocketListener_tcp(t *testing.T) { FILE: plugins/inputs/s7comm/s7comm.go constant addressRegexp (line 63) | addressRegexp = `^(?P[A-Z]+)(?P[0-9]+)\.(?P[A-Z]+)(?P> 1) type SQL (line 31) | type SQL struct method SampleConfig (line 75) | func (*SQL) SampleConfig() string { method Init (line 79) | func (s *SQL) Init() error { method Start (line 219) | func (s *SQL) Start(telegraf.Accumulator) error { method Gather (line 237) | func (s *SQL) Gather(acc telegraf.Accumulator) error { method Stop (line 267) | func (s *SQL) Stop() { method setupConnection (line 285) | func (s *SQL) setupConnection() error { method ping (line 309) | func (s *SQL) ping() error { method prepareStatements (line 322) | func (s *SQL) prepareStatements() { method executeQuery (line 342) | func (s *SQL) executeQuery(ctx context.Context, acc telegraf.Accumulat... method checkDSN (line 373) | func (s *SQL) checkDSN() error { type query (line 48) | type query struct method parse (line 380) | func (q *query) parse(acc telegraf.Accumulator, rows *dbsql.Rows, t ti... function init (line 537) | func init() { FILE: plugins/inputs/sql/sql_test.go function TestMariaDBIntegration (line 18) | func TestMariaDBIntegration(t *testing.T) { function TestPostgreSQLIntegration (line 116) | func TestPostgreSQLIntegration(t *testing.T) { function TestClickHouseIntegration (line 214) | func TestClickHouseIntegration(t *testing.T) { FILE: plugins/inputs/sql/testdata/clickhouse/expected.sql type default (line 1) | CREATE TABLE IF NOT EXISTS default.metric_one ( FILE: plugins/inputs/sql/testdata/postgres/expected.sql type public (line 13) | CREATE TABLE public."metric three" ( type public (line 19) | CREATE TABLE public.metric_one ( type public (line 27) | CREATE TABLE public.metric_two ( FILE: plugins/inputs/sqlserver/azurearcsqlmiqueries_test.go function TestAzureSQLIntegration_ArcManaged_DatabaseIO_Query (line 13) | func TestAzureSQLIntegration_ArcManaged_DatabaseIO_Query(t *testing.T) { function TestAzureSQLIntegration_ArcManaged_ServerProperties_Query (line 56) | func TestAzureSQLIntegration_ArcManaged_ServerProperties_Query(t *testin... function TestAzureSQLIntegration_ArcManaged_OsWaitStats_Query (line 102) | func TestAzureSQLIntegration_ArcManaged_OsWaitStats_Query(t *testing.T) { function TestAzureSQLIntegration_ArcManaged_MemoryClerks_Query (line 140) | func TestAzureSQLIntegration_ArcManaged_MemoryClerks_Query(t *testing.T) { function TestAzureSQLIntegration_ArcManaged_PerformanceCounters_Query (line 173) | func TestAzureSQLIntegration_ArcManaged_PerformanceCounters_Query(t *tes... function TestAzureSQLIntegration_ArcManaged_Requests_Query (line 209) | func TestAzureSQLIntegration_ArcManaged_Requests_Query(t *testing.T) { function TestAzureSQLIntegration_ArcManaged_Schedulers_Query (line 268) | func TestAzureSQLIntegration_ArcManaged_Schedulers_Query(t *testing.T) { FILE: plugins/inputs/sqlserver/azuresqldbqueries_test.go function TestAzureSQLIntegration_Database_ResourceStats_Query (line 13) | func TestAzureSQLIntegration_Database_ResourceStats_Query(t *testing.T) { function TestAzureSQLIntegration_Database_ResourceGovernance_Query (line 59) | func TestAzureSQLIntegration_Database_ResourceGovernance_Query(t *testin... function TestAzureSQLIntegration_Database_WaitStats_Query (line 121) | func TestAzureSQLIntegration_Database_WaitStats_Query(t *testing.T) { function TestAzureSQLIntegration_Database_DatabaseIO_Query (line 159) | func TestAzureSQLIntegration_Database_DatabaseIO_Query(t *testing.T) { function TestAzureSQLIntegration_Database_ServerProperties_Query (line 206) | func TestAzureSQLIntegration_Database_ServerProperties_Query(t *testing.... function TestAzureSQLIntegration_Database_OsWaitstats_Query (line 248) | func TestAzureSQLIntegration_Database_OsWaitstats_Query(t *testing.T) { function TestAzureSQLIntegration_Database_MemoryClerks_Query (line 287) | func TestAzureSQLIntegration_Database_MemoryClerks_Query(t *testing.T) { function TestAzureSQLIntegration_Database_PerformanceCounters_Query (line 321) | func TestAzureSQLIntegration_Database_PerformanceCounters_Query(t *testi... function TestAzureSQLIntegration_Database_Requests_Query (line 358) | func TestAzureSQLIntegration_Database_Requests_Query(t *testing.T) { function TestAzureSQLIntegration_Database_Schedulers_Query (line 417) | func TestAzureSQLIntegration_Database_Schedulers_Query(t *testing.T) { FILE: plugins/inputs/sqlserver/azuresqlmanagedqueries.go constant sqlAzureMIProperties (line 11) | sqlAzureMIProperties = ` constant sqlAzureMIResourceStats (line 52) | sqlAzureMIResourceStats = ` constant sqlAzureMIResourceGovernance (line 70) | sqlAzureMIResourceGovernance string = ` constant sqlAzureMIDatabaseIO (line 95) | sqlAzureMIDatabaseIO = ` constant sqlAzureMIMemoryClerks (line 127) | sqlAzureMIMemoryClerks = ` constant sqlAzureMIOsWaitStats (line 148) | sqlAzureMIOsWaitStats = ` constant sqlAzureMIPerformanceCounters (line 264) | sqlAzureMIPerformanceCounters = ` constant sqlAzureMIRequests (line 447) | sqlAzureMIRequests string = ` constant sqlAzureMISchedulers (line 544) | sqlAzureMISchedulers string = ` FILE: plugins/inputs/sqlserver/azuresqlpoolqueries.go constant sqlAzurePoolResourceStats (line 11) | sqlAzurePoolResourceStats = ` constant sqlAzurePoolResourceGovernance (line 41) | sqlAzurePoolResourceGovernance = ` constant sqlAzurePoolDatabaseIO (line 89) | sqlAzurePoolDatabaseIO = ` constant sqlAzurePoolOsWaitStats (line 131) | sqlAzurePoolOsWaitStats = ` constant sqlAzurePoolMemoryClerks (line 245) | sqlAzurePoolMemoryClerks = ` constant sqlAzurePoolPerformanceCounters (line 275) | sqlAzurePoolPerformanceCounters = ` constant sqlAzurePoolSchedulers (line 442) | sqlAzurePoolSchedulers = ` FILE: plugins/inputs/sqlserver/azuresqlpoolqueries_test.go function TestAzureSQLIntegration_ElasticPool_ResourceStats_Query (line 13) | func TestAzureSQLIntegration_ElasticPool_ResourceStats_Query(t *testing.... function TestAzureSQLIntegration_ElasticPool_ResourceGovernance_Query (line 56) | func TestAzureSQLIntegration_ElasticPool_ResourceGovernance_Query(t *tes... function TestAzureSQLIntegration_ElasticPool_DatabaseIO_Query (line 120) | func TestAzureSQLIntegration_ElasticPool_DatabaseIO_Query(t *testing.T) { function TestAzureSQLIntegration_ElasticPool_OsWaitStats_Query (line 165) | func TestAzureSQLIntegration_ElasticPool_OsWaitStats_Query(t *testing.T) { function TestAzureSQLIntegration_ElasticPool_MemoryClerks_Query (line 203) | func TestAzureSQLIntegration_ElasticPool_MemoryClerks_Query(t *testing.T) { function TestAzureSQLIntegration_ElasticPool_PerformanceCounters_Query (line 236) | func TestAzureSQLIntegration_ElasticPool_PerformanceCounters_Query(t *te... function TestAzureSQLIntegration_ElasticPool_Schedulers_Query (line 271) | func TestAzureSQLIntegration_ElasticPool_Schedulers_Query(t *testing.T) { FILE: plugins/inputs/sqlserver/sqlserver_test.go function TestSqlServer_QueriesInclusionExclusion (line 16) | func TestSqlServer_QueriesInclusionExclusion(t *testing.T) { function TestSqlServer_ParseMetrics (line 49) | func TestSqlServer_ParseMetrics(t *testing.T) { function TestSqlServerIntegration_MultipleInstance (line 115) | func TestSqlServerIntegration_MultipleInstance(t *testing.T) { function TestSqlServerIntegration_MultipleInstanceWithHealthMetric (line 152) | func TestSqlServerIntegration_MultipleInstanceWithHealthMetric(t *testin... function TestSqlServer_HealthMetric (line 202) | func TestSqlServer_HealthMetric(t *testing.T) { function TestSqlServer_MultipleInit (line 252) | func TestSqlServer_MultipleInit(t *testing.T) { function TestSqlServer_ConnectionString (line 274) | func TestSqlServer_ConnectionString(t *testing.T) { function TestSqlServerIntegration_AGQueriesApplicableForDatabaseTypeSQLServer (line 354) | func TestSqlServerIntegration_AGQueriesApplicableForDatabaseTypeSQLServe... function TestSqlServerIntegration_AGQueryFieldsOutputBasedOnSQLServerVersion (line 403) | func TestSqlServerIntegration_AGQueryFieldsOutputBasedOnSQLServerVersion... constant mockPerformanceMetrics (line 465) | mockPerformanceMetrics = `measurement;servername;type;Point In Time Reco... constant mockWaitStatsCategorized (line 471) | mockWaitStatsCategorized = `measurement;servername;type;I/O;Latch;Lock;N... constant mockCPUHistory (line 475) | mockCPUHistory = `measurement;servername;type;SQL process;External proce... constant mockDatabaseIO (line 478) | mockDatabaseIO = `measurement;servername;type;AdventureWorks2014;Austral... constant mockDatabaseSize (line 488) | mockDatabaseSize = `measurement;servername;type;AdventureWorks2014;Austr... constant mockDatabaseProperties (line 492) | mockDatabaseProperties string = `measurement;servername;type;AdventureWo... constant mockMemoryClerk (line 504) | mockMemoryClerk = `measurement;servername;type;Buffer pool;Cache (object... constant mockDatabaseStats (line 508) | mockDatabaseStats = `measurement;servername;type;AdventureWorks2014;Aust... constant mockVolumeSpace (line 518) | mockVolumeSpace = `measurement;servername;type;C:;D: (DATA);L: (LOG) constant mockPerformanceCounters (line 524) | mockPerformanceCounters = `measurement;servername;type;value