prometheus

package
v0.0.0-...-2e97daa Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationCall

type ApplicationCall struct {
	// contains filtered or unexported fields
}

func NewApplicationCall

func NewApplicationCall(p *Prometheus, handlerName string, logger logging.Logger) *ApplicationCall

func (*ApplicationCall) End

func (a *ApplicationCall) End(err *error)

type Prometheus

type Prometheus struct {
	// contains filtered or unexported fields
}

func NewPrometheus

func NewPrometheus(logger logging.Logger) (*Prometheus, error)

func (*Prometheus) Registry

func (p *Prometheus) Registry() *prometheus.Registry

func (*Prometheus) ReportCallingTwitterAPIToGetAUser

func (p *Prometheus) ReportCallingTwitterAPIToGetAUser(err error)

func (*Prometheus) ReportCallingTwitterAPIToPostATweet

func (p *Prometheus) ReportCallingTwitterAPIToPostATweet(err error)

func (*Prometheus) ReportNumberOfAccounts

func (p *Prometheus) ReportNumberOfAccounts(count int)

func (*Prometheus) ReportNumberOfLinkedPublicKeys

func (p *Prometheus) ReportNumberOfLinkedPublicKeys(count int)

func (*Prometheus) ReportNumberOfPublicKeyDownloaderRelays

func (p *Prometheus) ReportNumberOfPublicKeyDownloaderRelays(publicKey domain.PublicKey, n int)

func (*Prometheus) ReportNumberOfPublicKeyDownloaders

func (p *Prometheus) ReportNumberOfPublicKeyDownloaders(n int)

func (*Prometheus) ReportPurplePagesLookupResult

func (p *Prometheus) ReportPurplePagesLookupResult(address domain.RelayAddress, err *error)

func (*Prometheus) ReportRelayConnectionState

func (p *Prometheus) ReportRelayConnectionState(m map[domain.RelayAddress]app.RelayConnectionState)

func (*Prometheus) ReportSubscriptionQueueLength

func (p *Prometheus) ReportSubscriptionQueueLength(topic string, n int)

func (*Prometheus) ReportTweetCreatedCountPerAccount

func (p *Prometheus) ReportTweetCreatedCountPerAccount(m map[accounts.AccountID]int)

func (*Prometheus) StartApplicationCall

func (p *Prometheus) StartApplicationCall(handlerName string) app.ApplicationCall

Jump to

Keyboard shortcuts

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