prometheus

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

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

Stats contains all of the calls to track metrics.

func NewStats

func NewStats(db db.DB, port int) *Stats

NewStats returns a new Stats HTTP server configured to the supplied port.

func (*Stats) APIAuth

func (ps *Stats) APIAuth()

APIAuth increments the number of api-auth calls.

func (*Stats) APIKeys

func (ps *Stats) APIKeys()

APIKeys increments the number of api-keys calls.

func (*Stats) APILinkGen

func (ps *Stats) APILinkGen()

APILinkGen increments the number of api-link-gen calls.

func (*Stats) APILinkRequest

func (ps *Stats) APILinkRequest()

APILinkRequest increments the number of api-link-request calls.

func (ps *Stats) APIUnlink()

APIUnlink increments the number of api-unlink calls.

func (*Stats) Close

func (ps *Stats) Close() error

Close immediately closes the Stats HTTP server.

func (*Stats) FSFileRead added in v0.12.2

func (ps *Stats) FSFileRead(id string, size int64)

FSFileRead reports metrics on a read file by a given charm_id.

func (*Stats) FSFileWritten added in v0.12.2

func (ps *Stats) FSFileWritten(id string, size int64)

FSFileWritten reports metrics on a written file by a given charm_id.

func (*Stats) GetNews

func (ps *Stats) GetNews()

GetNews increments the number of get-news calls.

func (*Stats) GetNewsList

func (ps *Stats) GetNewsList()

GetNewsList increments the number of get-news-list calls.

func (*Stats) GetUser

func (ps *Stats) GetUser()

GetUser increments the number of get-user calls.

func (*Stats) GetUserByID

func (ps *Stats) GetUserByID()

GetUserByID increments the number of user-by-id calls.

func (*Stats) ID

func (ps *Stats) ID()

ID increments the number of id calls.

func (*Stats) JWT

func (ps *Stats) JWT()

JWT increments the number of jwt calls.

func (*Stats) Keys

func (ps *Stats) Keys()

Keys increments the number of keys calls.

func (*Stats) LinkGen

func (ps *Stats) LinkGen()

LinkGen increments the number of link-gen calls.

func (*Stats) LinkRequest

func (ps *Stats) LinkRequest()

LinkRequest increments the number of link-request calls.

func (*Stats) PostNews

func (ps *Stats) PostNews()

PostNews increments the number of post-news calls.

func (*Stats) SetUserName

func (ps *Stats) SetUserName()

SetUserName increments the number of set-user-name calls.

func (*Stats) Shutdown

func (ps *Stats) Shutdown(ctx context.Context) error

Shutdown shuts down the Stats HTTP server.

func (*Stats) Start

func (ps *Stats) Start() error

Start starts the PrometheusStats HTTP server.

Jump to

Keyboard shortcuts

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