Documentation ¶
Index ¶
Constants ¶
View Source
const ( CoalescedAppendsTotalKey = "gazette_coalesced_appends_total" CommittedBytesTotalKey = "gazette_committed_bytes_total" FailedCommitsTotalKey = "gazette_failed_commits_total" ItemRouteDurationSecondsKey = "gazette_item_route_duration_seconds" RecoveryLogRecoveredBytesTotalKey = "gazette_recoverylog_recovered_bytes_total" )
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" GazetteConsumerTxStalledSecondsTotalKey = "gazette_consumer_tx_stalled_seconds_total" GazetteConsumerFailedShardLocksKey = "gazette_consumer_failed_shard_locks_total" )
Keys for consumer.Runner metrics.
Variables ¶
View Source
var ( CoalescedAppendsTotal = prometheus.NewGauge(prometheus.GaugeOpts{ Name: CoalescedAppendsTotalKey, Help: "Number of journal append requests bundled into a single write transaction.", }) CommittedBytesTotal = prometheus.NewCounter(prometheus.CounterOpts{ Name: CommittedBytesTotalKey, Help: "Cumulative number of bytes committed.", }) FailedCommitsTotal = prometheus.NewCounter(prometheus.CounterOpts{ Name: FailedCommitsTotalKey, Help: "Cumulative number of failed commits.", }) ItemRouteDurationSeconds = prometheus.NewHistogram(prometheus.HistogramOpts{ Name: ItemRouteDurationSecondsKey, Help: "Benchmarking of Runner.ItemRoute calls.", }) RecoveryLogRecoveredBytesTotal = prometheus.NewCounter(prometheus.CounterOpts{ Name: RecoveryLogRecoveredBytesTotalKey, Help: "Cumulative number of bytes recovered.", }) )
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.", }) GazetteConsumerTxStalledSecondsTotal = prometheus.NewCounter(prometheus.CounterOpts{ Name: GazetteConsumerTxStalledSecondsTotalKey, Help: "Cumulative number of seconds transactions have stalled.", }) GazetteConsumerFailedShardLocksTotal = prometheus.NewCounter(prometheus.CounterOpts{ Name: GazetteConsumerFailedShardLocksKey, Help: "Cumulative number of shard lock failures.", }) )
Collectors for consumer.Runner metrics.
Functions ¶
func GazetteClientCollectors ¶
func GazetteClientCollectors() []prometheus.Collector
GazetteClientCollectors returns the metrics used by gazette.Client and gazette.WriteService.
func GazetteCollectors ¶
func GazetteCollectors() []prometheus.Collector
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.
Click to show internal directories.
Click to hide internal directories.