Documentation
¶
Overview ¶
Package appmetrics runs the coordinator's managed application metrics scraper and keeps its sandbox targets and remote-write identity current.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
*base.BaseComponent
// contains filtered or unexported fields
}
func New ¶
func New(log *slog.Logger, cc *containerd.Client, namespace, dataPath string, eac *entityserver_v1alpha.EntityAccessClient, issuer *workloadidentity.Issuer) *Component
func (*Component) ImportURL ¶ added in v0.16.0
ImportURL is the loopback base URL at which vmagent accepts pushed samples (its /api/v1/import/prometheus and related handlers). Samples pushed here ride the same remote-write destination, identity token, on-disk queue and retry as the scraped application metrics. Unlike the scrape path, nothing relabels a pushed sample, so the pusher owns its own cluster identity labels.
type DisabledReporter ¶
type DisabledReporter struct {
// contains filtered or unexported fields
}
DisabledReporter watches for applications that asked to be scraped while the cluster has no remote-write destination. It makes the disabled state visible without starting vmagent or touching the private scrape endpoint.
func NewDisabledReporter ¶
func NewDisabledReporter(log *slog.Logger, eac *entityserver_v1alpha.EntityAccessClient) *DisabledReporter
func (*DisabledReporter) Stop ¶
func (r *DisabledReporter) Stop()