metrics

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package metrics The implementation is derived from https://github.com/patrobinson/gokini

Copyright 2018 Patrick robinson.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitoringService

type MonitoringService interface {
	Init(appName, streamName, workerID string) error
	Start() error
	IncrRecordsProcessed(shard string, count int)
	IncrBytesProcessed(shard string, count int64)
	MillisBehindLatest(shard string, milliSeconds float64)
	DeleteMetricMillisBehindLatest(shard string)
	LeaseGained(shard string)
	LeaseLost(shard string)
	LeaseRenewed(shard string)
	RecordGetRecordsTime(shard string, time float64)
	RecordProcessRecordsTime(shard string, time float64)
	IncrLocalTPSBackoffs(shard string, count int)
	IncrMaxBytesBackoffs(shard string, count int)
	IncrThrottlingBackoffs(shard string, count int)
	IncrGetRecordsErrors(shard string, count int)
	Shutdown()
}

type NoopMonitoringService

type NoopMonitoringService struct{}

NoopMonitoringService implements MonitoringService by does nothing.

func (NoopMonitoringService) DeleteMetricMillisBehindLatest

func (NoopMonitoringService) DeleteMetricMillisBehindLatest(_ string)

func (NoopMonitoringService) IncrBytesProcessed

func (NoopMonitoringService) IncrBytesProcessed(_ string, _ int64)

func (NoopMonitoringService) IncrGetRecordsErrors added in v1.2.0

func (NoopMonitoringService) IncrGetRecordsErrors(_ string, _ int)

func (NoopMonitoringService) IncrLocalTPSBackoffs added in v1.2.0

func (NoopMonitoringService) IncrLocalTPSBackoffs(_ string, _ int)

func (NoopMonitoringService) IncrMaxBytesBackoffs added in v1.2.0

func (NoopMonitoringService) IncrMaxBytesBackoffs(_ string, _ int)

func (NoopMonitoringService) IncrRecordsProcessed

func (NoopMonitoringService) IncrRecordsProcessed(_ string, _ int)

func (NoopMonitoringService) IncrThrottlingBackoffs added in v1.2.0

func (NoopMonitoringService) IncrThrottlingBackoffs(_ string, _ int)

func (NoopMonitoringService) Init

func (NoopMonitoringService) Init(_, _, _ string) error

func (NoopMonitoringService) LeaseGained

func (NoopMonitoringService) LeaseGained(_ string)

func (NoopMonitoringService) LeaseLost

func (NoopMonitoringService) LeaseLost(_ string)

func (NoopMonitoringService) LeaseRenewed

func (NoopMonitoringService) LeaseRenewed(_ string)

func (NoopMonitoringService) MillisBehindLatest

func (NoopMonitoringService) MillisBehindLatest(_ string, _ float64)

func (NoopMonitoringService) RecordGetRecordsTime

func (NoopMonitoringService) RecordGetRecordsTime(_ string, _ float64)

func (NoopMonitoringService) RecordProcessRecordsTime

func (NoopMonitoringService) RecordProcessRecordsTime(_ string, _ float64)

func (NoopMonitoringService) Shutdown

func (NoopMonitoringService) Shutdown()

func (NoopMonitoringService) Start

func (NoopMonitoringService) Start() error

Directories

Path Synopsis
Package cloudwatch The implementation is derived from https://github.com/patrobinson/gokini
Package cloudwatch The implementation is derived from https://github.com/patrobinson/gokini
Package prometheus The implementation is derived from https://github.com/patrobinson/gokini
Package prometheus The implementation is derived from https://github.com/patrobinson/gokini

Jump to

Keyboard shortcuts

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