mpfluentd

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 11 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

Types

type FluentMonitorJSON

type FluentMonitorJSON struct {
	Plugins []FluentdPluginMetrics `json:"plugins"`
}

FluentMonitorJSON monitor json

type FluentdMetrics

type FluentdMetrics struct {
	Target   string
	Tempfile string
	// contains filtered or unexported fields
}

FluentdMetrics plugin for fluentd

func (FluentdMetrics) FetchMetrics

func (f FluentdMetrics) FetchMetrics() (map[string]interface{}, error)

FetchMetrics interface for mackerelplugin

func (FluentdMetrics) GraphDefinition

func (f FluentdMetrics) GraphDefinition() map[string]mp.Graphs

GraphDefinition interface for mackerelplugin

type FluentdPluginMetrics

type FluentdPluginMetrics struct {
	RetryCount            uint64 `json:"retry_count"`
	BufferQueueLength     uint64 `json:"buffer_queue_length"`
	BufferTotalQueuedSize uint64 `json:"buffer_total_queued_size"`
	OutputPlugin          bool   `json:"output_plugin"`
	Type                  string `json:"type"`
	PluginCategory        string `json:"plugin_category"`
	PluginID              string `json:"plugin_id"`

	// extended metrics fluentd >= 1.6
	// https://www.fluentd.org/blog/fluentd-v1.6.0-has-been-released
	EmitRecords                      uint64  `json:"emit_records"`
	EmitCount                        uint64  `json:"emit_count"`
	WriteCount                       uint64  `json:"write_count"`
	RollbackCount                    uint64  `json:"rollback_count"`
	SlowFlushCount                   uint64  `json:"slow_flush_count"`
	FlushTimeCount                   uint64  `json:"flush_time_count"`
	BufferStageLength                uint64  `json:"buffer_stage_length"`
	BufferStageByteSize              uint64  `json:"buffer_stage_byte_size"`
	BufferQueueByteSize              uint64  `json:"buffer_queue_byte_size"`
	BufferAvailableBufferSpaceRatios float64 `json:"buffer_available_buffer_space_ratios"`
	// contains filtered or unexported fields
}

FluentdPluginMetrics metrics

Jump to

Keyboard shortcuts

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