Documentation ¶
Index ¶
- Constants
- func NewPromHTTPClient(addr, path string, tlsConfig *tls.Config) (prom_api_client.API, error)
- func NewPromReadClient(index int, addr string, timeout time.Duration, tlsConfig *config.TLSConfig) (remote.ReadClient, error)
- type DiscoveryAgent
- type PromAPI
- type ReloadAPI
- type Rule
- type RulesAPI
- type ScrapeManager
Constants ¶
View Source
const ( REMOTE_READ_SAMPLE_LIMIT = 20000000 REMOTE_READ_CONCURRENCY_LIMIT = 50 REMOTE_READ_MAX_BYTES_IN_FRAME = 1048576 // 1MB recommended by protobuf )
Variables ¶
This section is empty.
Functions ¶
func NewPromHTTPClient ¶
Types ¶
type DiscoveryAgent ¶ added in v1.4.3
type DiscoveryAgent interface {
ApplyScrapeConfig(configs []*config.ScrapeConfig)
}
type PromAPI ¶
type PromAPI struct {
// contains filtered or unexported fields
}
func (*PromAPI) RouterForStorage ¶
func (api *PromAPI) RouterForStorage(storage storage.Storage, ruleManager rules.RuleManager, gatherer prometheus.Gatherer, registerer prometheus.Registerer) *route.Router
type ReloadAPI ¶ added in v1.4.3
type ReloadAPI struct {
// contains filtered or unexported fields
}
func NewReloadAPI ¶ added in v1.4.3
type RulesAPI ¶
type RulesAPI struct {
// contains filtered or unexported fields
}
func NewRulesAPI ¶
func NewRulesAPI(ruleManager rules.RuleManager, log *logger.Logger) *RulesAPI
type ScrapeManager ¶ added in v1.4.3
Click to show internal directories.
Click to hide internal directories.