info

package
v0.4.4-rc-0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package info provides static information about the host (e.g., labels, IDs).

Index

Constants

View Source
const (
	StateNameDaemon = "daemon"

	StateKeyDaemonVersion = "daemon_version"
	StateKeyMacAddress    = "mac_address"
	StateKeyPackages      = "packages"

	StateKeyGPUdPID = "gpud_pid"

	StateKeyGPUdUsageFileDescriptors = "gpud_usage_file_descriptors"

	StateKeyGPUdUsageMemoryInBytes   = "gpud_usage_memory_in_bytes"
	StateKeyGPUdUsageMemoryHumanized = "gpud_usage_memory_humanized"

	StateKeyGPUdUsageDBInBytes   = "gpud_usage_db_in_bytes"
	StateKeyGPUdUsageDBHumanized = "gpud_usage_db_humanized"

	StateKeyGPUdUsageInsertUpdateTotal               = "gpud_usage_insert_update_total"
	StateKeyGPUdUsageInsertUpdateAvgQPS              = "gpud_usage_insert_update_avg_qps"
	StateKeyGPUdUsageInsertUpdateAvgLatencyInSeconds = "gpud_usage_insert_update_avg_latency_in_seconds"

	StateKeyGPUdUsageDeleteTotal               = "gpud_usage_delete_total"
	StateKeyGPUdUsageDeleteAvgQPS              = "gpud_usage_delete_avg_qps"
	StateKeyGPUdUsageDeleteAvgLatencyInSeconds = "gpud_usage_delete_avg_latency_in_seconds"

	StateKeyGPUdUsageSelectTotal               = "gpud_usage_select_total"
	StateKeyGPUdUsageSelectAvgQPS              = "gpud_usage_select_avg_qps"
	StateKeyGPUdUsageSelectAvgLatencyInSeconds = "gpud_usage_select_avg_latency_in_seconds"

	StateKeyGPUdStartTimeInUnixTime = "gpud_start_time_in_unix_time"
	StateKeyGPUdStartTimeHumanized  = "gpud_start_time_humanized"

	StateNameAnnotations = "annotations"
)

Variables

This section is empty.

Functions

func New

func New(annotations map[string]string, dbRO *sql.DB, gatherer prometheus.Gatherer) components.Component

Types

type Output

type Output struct {
	DaemonVersion string `json:"daemon_version"`
	MacAddress    string `json:"mac_address"`
}

func ParseOutputJSON

func ParseOutputJSON(data []byte) (*Output, error)

func (*Output) JSON

func (o *Output) JSON() ([]byte, error)

Directories

Path Synopsis
Package id contains the ID for the info component.
Package id contains the ID for the info component.

Jump to

Keyboard shortcuts

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