metrics

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

package metrics provides functionality for metrics collection and export via Grafana As of PR #72, it uses Grafana as the metrics exporting system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServePprof

func ServePprof(ctx context.Context, logger polylog.Logger, addr string)

ServePprof Starts a pprof server on the given address.

func SetVersionInfo

func SetVersionInfo(version, commit, buildDate string)

SetVersionInfo sets the version information metric with the provided build details. This should be called once during application startup.

Types

type PrometheusMetricsReporter

type PrometheusMetricsReporter struct {
	Logger polylog.Logger
}

PrometheusMetricsReporter provides the functionality required for exporting PATH metrics to Grafana.

func (*PrometheusMetricsReporter) Publish

Publish exports service request and response metrics to Prometheus/Grafana Implements the gateway.RequestResponseReporter interface.

func (*PrometheusMetricsReporter) ServeMetrics

func (pmr *PrometheusMetricsReporter) ServeMetrics(addr string) error

Starts a metrics server on the given address.

Directories

Path Synopsis
Package protocol handles exporting of all protocol-related observation based metrics.
Package protocol handles exporting of all protocol-related observation based metrics.
shannon
Package shannon provides functionality for exporting Shannon protocol metrics to Prometheus.
Package shannon provides functionality for exporting Shannon protocol metrics to Prometheus.
qos
Package qos handles exporting of all qos-related metrics.
Package qos handles exporting of all qos-related metrics.
evm
Package reputation provides functionality for exporting reputation system metrics to Prometheus.
Package reputation provides functionality for exporting reputation system metrics to Prometheus.

Jump to

Keyboard shortcuts

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