Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Target ¶
type Target struct { URL *url.URL AllowList []string DenyList []string Rules []types.SimpleRule ExtraLabels map[string]string ContainerLabels map[string]string // contains filtered or unexported fields }
Target is an URL to scrape.
func (*Target) Gather ¶
func (t *Target) Gather() ([]*dto.MetricFamily, error)
Gather implement prometheus.Gatherer.
func (*Target) GatherWithState ¶
func (t *Target) GatherWithState(ctx context.Context, state registry.GatherState) ([]*dto.MetricFamily, error)
Click to show internal directories.
Click to hide internal directories.