mpfluentd

package
v0.82.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 13 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 = FluentdPlugin

FluentdMetrics is alias for backward compatibility.

type FluentdPlugin added in v0.66.0

type FluentdPlugin struct {
	Host     string
	Port     string
	Prefix   string
	Tempfile string

	Workers uint
	// contains filtered or unexported fields
}

FluentdPlugin mackerel plugin for Fluentd

func (FluentdPlugin) FetchMetrics added in v0.66.0

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

FetchMetrics interface for mackerelplugin

func (FluentdPlugin) GraphDefinition added in v0.66.0

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

GraphDefinition interface for mackerelplugin

func (FluentdPlugin) MetricKeyPrefix added in v0.66.0

func (f FluentdPlugin) MetricKeyPrefix() string

MetricKeyPrefix interface for PluginWithPrefix

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