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 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.
Click to show internal directories.
Click to hide internal directories.