conf

package
v0.0.0-...-16dfdc2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_ROOT = "vipshop.com/VDL"
)

Variables

View Source
var (
	DefaultMetricsConfig = &MetricsConfig{
		RaftGroupEntryLatencySummaryDuration: 2 * time.Second,
		KafkaWriteLatencySummaryDuration:     2 * time.Second,
		KafkaReadLatencySummaryDuration:      2 * time.Second,
		LogstoreWriteLatencySummaryDuration:  2 * time.Second,
		LogstoreReadLatencySummaryDuration:   2 * time.Second,
		LogstoreDSLatencySummaryDuration:     30 * time.Second,
	}
)

Functions

This section is empty.

Types

type MetricsConfig

type MetricsConfig struct {

	// Duration for entry latency summary
	RaftGroupEntryLatencySummaryDuration time.Duration

	// ============ Kafka =============//
	// Write Latency
	KafkaWriteLatencySummaryDuration time.Duration

	// Read Latency
	KafkaReadLatencySummaryDuration time.Duration

	//=============Logstore===========//
	// Logstore Write Latency
	LogstoreWriteLatencySummaryDuration time.Duration

	// Logstore Read Latency
	LogstoreReadLatencySummaryDuration time.Duration
	// Logstore Delete segment latency
	LogstoreDSLatencySummaryDuration time.Duration
}

put all the metrics config here, later can consider which need use whether dynamic mode

Jump to

Keyboard shortcuts

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