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)
Click to show internal directories.
Click to hide internal directories.