metrics

package
v0.2.3-RC2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: AGPL-3.0, AGPL-3.0-or-later Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateAndPrint

func CalculateAndPrint(prometheusResp *http.Response, profilingResult string, elapsed time.Duration, sequencerTimeSub, executorTimeSub float64, nTxs int)

CalculateAndPrint calculates and prints the results

func FetchProfiling

func FetchProfiling() (string, error)

FetchProfiling fetches the profiling metrics

func FetchPrometheus

func FetchPrometheus() (*http.Response, error)

FetchPrometheus fetches the prometheus metrics

func PrintPrometheus

func PrintPrometheus(totalTime float64, executorTime float64, metricValues Values)

PrintPrometheus prints the prometheus metrics

Types

type Values added in v0.0.990

type Values struct {
	SequencerTotalProcessingTime float64
	ExecutorTotalProcessingTime  float64
	WorkerTotalProcessingTime    float64
}

func GetValues

func GetValues(metricsResponse *http.Response) (Values, error)

GetValues gets the prometheus metric Values

Jump to

Keyboard shortcuts

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