instrumentation

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstrumentAgentManagementConfigFallback

func InstrumentAgentManagementConfigFallback(fallbackTo string)

func InstrumentConfig

func InstrumentConfig(buf []byte)

Create a sha256 hash of the config before expansion and expose it via the alloy_config_hash metric.

func InstrumentInvalidRemoteConfig

func InstrumentInvalidRemoteConfig(reason string)

func InstrumentLoad

func InstrumentLoad(success bool)

Expose metrics for load success / failures.

func InstrumentRemoteConfigFetch

func InstrumentRemoteConfigFetch(statusCode int)

func InstrumentRemoteConfigFetchError

func InstrumentRemoteConfigFetchError()

func InstrumentSHA256

func InstrumentSHA256(hash [sha256.Size]byte)

InstrumentSHA256 stores the provided hash to the alloy_config_hash metric.

Types

This section is empty.

Jump to

Keyboard shortcuts

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