Documentation ¶
Index ¶
- func BuildTLSConfig(clientCert, clientKey, serverRootCACert, serverName string, ...) (*tls.Config, error)
- func SamplesToString(queriedMetrics map[string][]*model.Sample) string
- type APIClient
- type APIConfig
- type ByMetricName
- type Config
- type Data
- type HttpClient
- type Metric
- type PromToScrapeServer
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTLSConfig ¶
Types ¶
type ByMetricName ¶
type ByMetricName []Metric
ByMetricName lets us sort metrics
func (ByMetricName) Len ¶
func (m ByMetricName) Len() int
func (ByMetricName) Less ¶
func (m ByMetricName) Less(i, j int) bool
func (ByMetricName) Swap ¶
func (m ByMetricName) Swap(i, j int)
type HttpClient ¶
func NewHttpClient ¶
func NewHttpClient(addr string, httpClient *http.Client) (*HttpClient, error)
type PromToScrapeServer ¶
func NewPromToScrapeServer ¶
func NewPromToScrapeServer(client *APIClient, conf *Config, addr string) *PromToScrapeServer
func (*PromToScrapeServer) Start ¶
func (s *PromToScrapeServer) Start() error
Start runs the embedded http.Server.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.