Documentation
¶
Index ¶
Constants ¶
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" )
const ( HTTP = "http/protobuf" JSON = "http/json" GRPC = "grpc" )
Protocols of the export
const ( Gzip = "gzip" None = "none" )
Compressions of the requests
const ( Cumulative = "cumulative" Delta = "delta" )
How totals are sent
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
const ExportVariable = "ICEBATH_MONITORING_EXPORT"
Variable that turns the export on, as a container's start may set it
const QueueDefault = 2048
Most events that wait to be sent unless the settings say another
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 ¶
Types ¶
This section is empty.