stats

package
v0.0.0-...-e09c833 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvoyStatsClientHttpTimeout = 5 * time.Second
)

Variables

View Source
var (
	// QuerySet records the set of the supported query parameters and their allowed value.
	QuerySet = map[string]interface{}{
		// contains filtered or unexported fields
	}
)

Functions

This section is empty.

Types

type EnvoyPrometheusStatsHandler

type EnvoyPrometheusStatsHandler struct {
	AgentConfig     config.AgentConfig
	Limiter         *rate.Limiter
	QueryParameters url.Values
	Snapshotter     *Snapshotter
}

func (*EnvoyPrometheusStatsHandler) HandleStats

func (envoyPrometheusStatsHandler *EnvoyPrometheusStatsHandler) HandleStats(resWriter http.ResponseWriter, request *http.Request)

type Snapshotter

type Snapshotter struct {
	Snapshot    map[string]*io_prometheus_client.MetricFamily
	Delta       map[string]*io_prometheus_client.MetricFamily
	HttpClient  *retryablehttp.Client
	HttpRequest *retryablehttp.Request
}

func (*Snapshotter) StartSnapshot

func (snapshotter *Snapshotter) StartSnapshot(agentConfig config.AgentConfig)

Jump to

Keyboard shortcuts

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