status

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentMetrics

type AgentMetrics struct {
	ExporterQueueSize     float32
	CPUSeconds            float32
	MemoryUsed            float32
	TotalSysMemory        float32
	Uptime                float32
	AvgServerResponseTime float32
	AvgClientResponseTime float32
	LogsStats             DataTypeStats
	MetricsStats          DataTypeStats
	TracesStats           DataTypeStats
}

func GetAgentMetricsFromEndpoint

func GetAgentMetricsFromEndpoint(baseURL string) (*AgentMetrics, error)

type AgentStatus

type AgentStatus int64
const (
	NotRunning AgentStatus = iota
	Running    AgentStatus = iota
)

func GetAgentStatusFromHealthcheck

func GetAgentStatusFromHealthcheck(baseURL string) (AgentStatus, error)

func (AgentStatus) String

func (s AgentStatus) String() string

type DataTypeStats

type DataTypeStats struct {
	ReceiverAcceptedCount   int
	ReceiverRefusedCount    int
	ExporterSentCount       int
	ExporterSendFailedCount int
}

type StatusData

type StatusData struct {
	Status          string
	OS              string
	Platform        string
	PlatformFamily  string
	PlatformVersion string
	KernelVersion   string
	KernelArch      string
	BootTime        string
	UpTime          string
	HostID          string
	Hostname        string
	AgentMetrics    AgentMetrics
}

func GetStatusData

func GetStatusData() (*StatusData, error)

Jump to

Keyboard shortcuts

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