appmetrics

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 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) 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