metrics

package
v0.0.0-...-0a271de Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricKey

type MetricKey string

MetricKey represents metrics keys collected and sent to charmhub.

const (
	// Controller is used in RequestMetrics
	Controller MetricKey = "controller"

	// Model is used in RequestMetrics
	Model MetricKey = "model"
)

func (MetricKey) String

func (c MetricKey) String() string

type MetricValueKey

type MetricValueKey string

MetricValueKey represents metrics value keys collected and sent to charmhub.

const (

	// UUID is the uuid of a model, either controller or model.
	UUID MetricValueKey = "uuid"
	// JujuVersion is the version of juju running in this model.
	JujuVersion MetricValueKey = "juju-version"

	// Provider matches the provider type defined in juju.
	Provider MetricValueKey = "provider"
	// Region is the region this model is operating in.
	Region MetricValueKey = "region"
	// Cloud is the name of the cloud this model is operating in.
	Cloud MetricValueKey = "cloud"
	// NumApplications is the number of applications in the model.
	NumApplications MetricValueKey = "applications"
	// NumMachines is the number of machines in the model.
	NumMachines MetricValueKey = "machines"
	// NumUnits is the number of units in the model.
	NumUnits MetricValueKey = "units"

	// Relations is a common separated list of charms currently related
	// to an application.  (no spaces)
	Relations MetricValueKey = "relations"
)

func (MetricValueKey) String

func (c MetricValueKey) String() string

Jump to

Keyboard shortcuts

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