metrics

package
v0.85.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllocatorAssignmentAddedTotalKey    = "gazette_allocator_assignment_added_total"
	AllocatorAssignmentPackedTotalKey   = "gazette_allocator_assignment_packed_total"
	AllocatorAssignmentRemovedTotalKey  = "gazette_allocator_assignment_removed_total"
	AllocatorConvergeTotalKey           = "gazette_allocator_converge_total"
	AllocatorMaxFlowRuntimeSecondsKey   = "gazette_allocator_max_flow_runtime_seconds"
	AllocatorNumItemSlotsKey            = "gazette_allocator_desired_replication_slots"
	AllocatorNumItemsKey                = "gazette_allocator_items"
	AllocatorNumMembersKey              = "gazette_allocator_members"
	CommitsTotalKey                     = "gazette_commits_total"
	CommittedBytesTotalKey              = "gazette_committed_bytes_total"
	JournalServerResponseTimeSecondsKey = "gazette_journal_server_response_time_seconds"
	RecoveryLogRecoveredBytesTotalKey   = "gazette_recoverylog_recovered_bytes_total"
	StorePersistedBytesTotalKey         = "gazette_store_persisted_bytes_total"
	StoreRequestsTotalKey               = "gazette_store_requests_total"

	Fail = "fail"
	Ok   = "ok"
)

Keys for gazette metrics.

View Source
const (
	GazretentionDeletedBytesTotalKey      = "gazretention_deleted_bytes_total"
	GazretentionDeletedFragmentsTotalKey  = "gazretention_deleted_fragments_total"
	GazretentionRetainedBytesTotalKey     = "gazretention_retained_bytes_total"
	GazretentionRetainedFragmentsTotalKey = "gazretention_retained_fragments_total"
)

Keys for gazretention metrics.

View Source
const (
	GazetteDiscardBytesTotalKey         = "gazette_discard_bytes_total"
	GazetteReadBytesTotalKey            = "gazette_read_bytes_total"
	GazetteWriteBytesTotalKey           = "gazette_write_bytes_total"
	GazetteWriteCountTotalKey           = "gazette_write_count_total"
	GazetteWriteDurationSecondsTotalKey = "gazette_write_duration_seconds_total"
	GazetteWriteFailureTotalKey         = "gazette_write_failure_total"
)

Keys for gazette.Client and gazette.WriteService metrics.

View Source
const (
	GazetteConsumerTxCountTotalKey          = "gazette_consumer_tx_count_total"
	GazetteConsumerTxMessagesTotalKey       = "gazette_consumer_tx_messages_total"
	GazetteConsumerTxSecondsTotalKey        = "gazette_consumer_tx_seconds_total"
	GazetteConsumerTxConsumeSecondsTotalKey = "gazette_consumer_tx_consume_seconds_total"
	GazetteConsumerTxStalledSecondsTotalKey = "gazette_consumer_tx_stalled_seconds_total"
	GazetteConsumerTxFlushSecondsTotalKey   = "gazette_consumer_tx_flush_seconds_total"
	GazetteConsumerTxSyncSecondsTotalKey    = "gazette_consumer_tx_sync_seconds_total"
	GazetteConsumerConsumedBytesTotalKey    = "gazette_consumer_consumed_bytes_total"
)

Keys for consumer.Runner metrics.

View Source
const (
	GazconsumerLagBytesKey = "gazconsumer_lag_bytes"
)

Keys for gazconsumer metrics.

Variables

View Source
var (
	AllocatorAssignmentAddedTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: AllocatorAssignmentAddedTotalKey,
		Help: "Cumulative number of item / member assignments added by the allocator.",
	})
	AllocatorAssignmentPackedTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: AllocatorAssignmentPackedTotalKey,
		Help: "Cumulative number of item / member assignments packed by the allocator.",
	})
	AllocatorAssignmentRemovedTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: AllocatorAssignmentRemovedTotalKey,
		Help: "Cumulative number of item / member assignments removed by the allocator.",
	})
	AllocatorConvergeTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: AllocatorConvergeTotalKey,
		Help: "Cumulative number of converge iterations.",
	})
	AllocatorMaxFlowRuntimeSeconds = prometheus.NewHistogram(prometheus.HistogramOpts{
		Name: AllocatorMaxFlowRuntimeSecondsKey,
		Help: "Duration required to re-solve for maximum assignment.",
	})
	AllocatorNumItemSlots = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: AllocatorNumItemSlotsKey,
		Help: "Number of desired item replication slots summed across all items.",
	})
	AllocatorNumItems = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: AllocatorNumItemsKey,
		Help: "Number of items known to the allocator.",
	})
	AllocatorNumMembers = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: AllocatorNumMembersKey,
		Help: "Number of members known to the allocator.",
	})
	CommittedBytesTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: CommittedBytesTotalKey,
		Help: "Cumulative number of bytes committed to journals.",
	})
	CommitsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: CommitsTotalKey,
		Help: "Cumulative number of commits.",
	}, []string{"status"})
	RecoveryLogRecoveredBytesTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: RecoveryLogRecoveredBytesTotalKey,
		Help: "Cumulative number of bytes recovered.",
	})
	StoreRequestTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: StoreRequestsTotalKey,
		Help: "Cumulative number of fragment store operations.",
	}, []string{"provider", "operation", "status"})
	StorePersistedBytesTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: StorePersistedBytesTotalKey,
		Help: "Cumulative number of bytes persisted to fragment stores.",
	}, []string{"provider"})
	JournalServerResponseTimeSeconds = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Name: JournalServerResponseTimeSecondsKey,
		Help: "Response time of JournalServer.Append.",
	}, []string{"operation", "status"})
)

Collectors for gazette metrics.

View Source
var (
	GazretentionDeletedBytesTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: GazretentionDeletedBytesTotalKey,
		Help: "Cumulative number of bytes deleted.",
	}, []string{"prefix"})
	GazretentionDeletedFragmentsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: GazretentionDeletedFragmentsTotalKey,
		Help: "Cumulative number of fragments deleted.",
	}, []string{"prefix"})
	GazretentionRetainedBytesTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: GazretentionRetainedBytesTotalKey,
		Help: "Cumulative number of bytes retained.",
	}, []string{"prefix"})
	GazretentionRetainedFragmentsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: GazretentionRetainedFragmentsTotalKey,
		Help: "Cumulative number of fragments retained.",
	}, []string{"prefix"})
)

Collectors for gazretention metrics.

View Source
var (
	GazetteDiscardBytesTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteDiscardBytesTotalKey,
		Help: "Cumulative number of bytes read but discarded.",
	})
	GazetteReadBytesTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteReadBytesTotalKey,
		Help: "Cumulative number of bytes read.",
	})
	GazetteWriteBytesTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteWriteBytesTotalKey,
		Help: "Cumulative number of bytes written.",
	})
	GazetteWriteCountTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteWriteCountTotalKey,
		Help: "Cumulative number of writes.",
	})
	GazetteWriteDurationTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteWriteDurationSecondsTotalKey,
		Help: "Cumulative number of seconds spent writing.",
	})
	GazetteWriteFailureTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteWriteFailureTotalKey,
		Help: "Cumulative number of write errors returned to clients.",
	})
)

Collectors for gazette.Client and gazette.WriteService metrics. TODO(rupert): Should prefix be GazetteClient-, "gazette_client_-"?

View Source
var (
	GazetteConsumerTxCountTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteConsumerTxCountTotalKey,
		Help: "Cumulative number of transactions",
	})
	GazetteConsumerTxMessagesTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteConsumerTxMessagesTotalKey,
		Help: "Cumulative number of messages.",
	})
	GazetteConsumerTxSecondsTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteConsumerTxSecondsTotalKey,
		Help: "Cumulative number of seconds processing transactions.",
	})
	GazetteConsumerTxConsumeSecondsTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteConsumerTxConsumeSecondsTotalKey,
		Help: "Cumulative number of seconds transactions were processing messages.",
	})
	GazetteConsumerTxStalledSecondsTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteConsumerTxStalledSecondsTotalKey,
		Help: "Cumulative number of seconds transactions were stalled waiting for Gazette IO.",
	})
	GazetteConsumerTxFlushSecondsTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteConsumerTxFlushSecondsTotalKey,
		Help: "Cumulative number of seconds transactions were flushing their commit.",
	})
	GazetteConsumerTxSyncSecondsTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteConsumerTxSyncSecondsTotalKey,
		Help: "Cumulative number of seconds transactions were waiting for their commit to sync.",
	})
	GazetteConsumerBytesConsumedTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: GazetteConsumerConsumedBytesTotalKey,
		Help: "Cumulative number of bytes consumed.",
	})
)

Collectors for consumer.Runner metrics.

View Source
var (
	GazconsumerLagBytes = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: GazconsumerLagBytesKey,
		Help: "Lag of the consumer on a per shard basis.",
	}, []string{"consumer"})
)

Collectors for gazconsumer metrics.

Functions

func GazconsumerCollectors

func GazconsumerCollectors() []prometheus.Collector

GazetteconsumerCollectors lists collectors used by the gazette broker.

func GazetteBrokerCollectors

func GazetteBrokerCollectors() []prometheus.Collector

GazetteBrokerCollectors lists collectors used by the gazette broker.

func GazetteClientCollectors

func GazetteClientCollectors() []prometheus.Collector

GazetteClientCollectors returns the metrics used by gazette.Client and gazette.WriteService.

func GazetteConsumerCollectors

func GazetteConsumerCollectors() []prometheus.Collector

GazetteConsumerCollectors returns the metrics used by the consumer package.

func GazretentionCollectors

func GazretentionCollectors() []prometheus.Collector

Types

This section is empty.

Jump to

Keyboard shortcuts

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