useragent

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

package useragent provides a consistent way to get a user agent for outbound http requests from Grafana Alloy. The default User-Agent is `Alloy/VERSION (METADATA)`, where VERSION is the build version of Alloy and METADATA includes information about how Alloy was deployed.

Index

Constants

View Source
const (
	ProductName = "Alloy"
	// ExtensionProductName is the product name reported when Alloy runs as an OTel
	// Collector extension, distinguishing it from native Alloy.
	ExtensionProductName = ProductName + " OTel Extension"

	EngineOTel    = "otel"
	EngineDefault = "default"
)

Variables

This section is empty.

Functions

func Get

func Get() string

func GetDeployMode

func GetDeployMode() string

GetDeployMode returns our best-effort guess at the way Grafana Alloy was deployed.

func GetEngineMode added in v1.18.0

func GetEngineMode() string

GetEngineMode returns which engine Alloy is running with.

Types

This section is empty.

Jump to

Keyboard shortcuts

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