metrics

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

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

Documentation

Overview

Package metrics defines metrics used in Swarming.

Index

Constants

This section is empty.

Variables

View Source
var (
	TaskStatusChangePubsubLatency = metric.NewCumulativeDistribution(
		"swarming/tasks/state_change_pubsub_notify_latencies",
		"Latency (in ms) of PubSub notification when backend receives task_update",
		nil,

		distribution.GeometricBucketerWithScale(math.Pow(float64((100*time.Second).Milliseconds()/scaleFactor), 1.0/buckets), buckets, scaleFactor),
		field.String("pool"),
		field.String("status"),
		field.Int("http_status_code")) // e.g. 404

	TaskStatusChangeSchedulerLatency = metric.NewCumulativeDistribution(
		"swarming/tasks/state_change_scheduling_latencies",
		"Latency (in ms) of task scheduling request",
		nil,

		distribution.GeometricBucketerWithScale(math.Pow(float64((100000*time.Second).Milliseconds()/scaleFactor), 1.0/buckets), buckets, scaleFactor),
		field.String("pool"),
		field.String("spec_name"),
		field.String("status"),
		field.String("device_type")) // e.g. "walleye"

	JobsActives = metric.NewInt(
		"jobs/active",
		"Number of running, pending or otherwise active jobs.",
		nil,
		field.String("spec_name"),
		field.String("project_id"),
		field.String("subproject_id"),
		field.String("pool"),
		field.String("rbe"),
		field.String("status"),
	)

	BotsPerState = metric.NewInt(
		"swarming/rbe_migration/bots",
		"Number of Swarming bots per RBE migration state.",
		nil,
		field.String("pool"),
		field.String("state"),
	)

	BotsStatus = metric.NewString(
		"executors/status",
		"Status of a job executor.",
		nil,
	)

	BotsDimensionsPool = metric.NewString(
		"executors/pool",
		"Pool name for a given job executor.",
		nil,
	)

	BotsRBEInstance = metric.NewString(
		"executors/rbe",
		"RBE instance of a job executor.",
		nil,
	)

	BotsVersion = metric.NewString(
		"executors/version",
		"Version of a job executor.",
		nil,
	)

	BotAuthSuccesses = metric.NewCounter(
		"swarming/bot_auth/success",
		"Number of successful bot authentication events",
		nil,
		field.String("auth_method"),
		field.String("condition"),
	)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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