config

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Key = "monitoring"
	// What is sent to a collector of OpenTelemetry, and where
	ExportKey = Key + ".export"
	// The measures served at /metrics of the server, and who may read them
	ScrapeKey = Key + ".scrape"

	// The export is on: nothing leaves this computer while it is off
	Enabled = ExportKey + ".enabled"
	// Address of the collector: the paths of the signals go below it over HTTP, its host and port are dialed over gRPC
	Endpoint = ExportKey + ".endpoint"
	// HTTP with protobuf, HTTP with JSON, or gRPC
	Protocol = ExportKey + ".protocol"
	// Headers each request carries, by name, each the name of the variable that holds its value
	Headers = ExportKey + ".headers"
	// gzip or none
	Compression = ExportKey + ".compression"
	// Longest one request may take
	Timeout = ExportKey + ".timeout"
	// How long a batch that failed is tried again before it is dropped
	Retry = ExportKey + ".retry"
	// How often the measures are sent
	Interval = ExportKey + ".interval"
	// Which of what is kept is sent: the measures, the events, the warnings and errors of the log, and the events as spans too
	Metrics = ExportKey + ".metrics"
	Events  = ExportKey + ".events"
	Logs    = ExportKey + ".logs"
	Spans   = ExportKey + ".spans"
	// Totals as they stand or as what changed since the last send
	Temporality = ExportKey + ".temporality"
	// Most events that wait to be sent, the oldest dropped past it
	Queue = ExportKey + ".queue"
	// Labels every request carries, of the names allowed
	Labels = ExportKey + ".labels"
	// Certificate the collector's is checked against, and the certificate and key icebath shows it
	Certificate       = ExportKey + ".certificate"
	ClientCertificate = ExportKey + ".client_certificate"
	ClientKey         = ExportKey + ".client_key"

	// /metrics is served
	Scrape = ScrapeKey + ".enabled"
	// Who may read it
	Access = ScrapeKey + ".access"
)
View Source
const (
	HTTP = "http/protobuf"
	JSON = "http/json"
	GRPC = "grpc"
)

Protocols of the export

View Source
const (
	Gzip = "gzip"
	None = "none"
)

Compressions of the requests

View Source
const (
	Cumulative = "cumulative"
	Delta      = "delta"
)

How totals are sent

View Source
const (
	// A request carries the token
	Token = "token"
	// A request from this computer needs no token, one from any other carries it
	Local = "local"
	// Anyone who reaches the server
	Open = "open"
)

Who may read /metrics

View Source
const ExportVariable = "ICEBATH_MONITORING_EXPORT"

Variable that turns the export on, as a container's start may set it

View Source
const QueueDefault = 2048

Most events that wait to be sent unless the settings say another

View Source
const TokenVariable = "ICEBATH_METRICS_TOKEN"

Variable that holds the token /metrics takes, kept in the .env of the profile the server runs on

Variables

This section is empty.

Functions

func Register

func Register(cfg *config.Config, labels func() []config.Option)

Registers the settings of monitoring, the labels a request may carry read each time they are shown

Types

This section is empty.

Jump to

Keyboard shortcuts

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