useragent

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 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"
)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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