appmetrics

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

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

func (c *Component) ImportURL() string

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.

func (*Component) Start

func (c *Component) Start(ctx context.Context, config Config) error

func (*Component) Stop

func (c *Component) Stop(ctx context.Context) error

type Config

type Config struct {
	RemoteWriteURL string
	Audience       string
	ClusterID      string
	HTTPPort       int
	// Image overrides the production pull-through reference in integration tests.
	Image string
}

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 (*DisabledReporter) Start

func (r *DisabledReporter) Start(ctx context.Context) error

func (*DisabledReporter) Stop

func (r *DisabledReporter) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL