status

package
v0.9.1-0...-495529f Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 18

Documentation

Overview

Package status implements the status of the agent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLCChecks

type CLCChecks struct {
	Checks  map[string]map[string]CLCStats `json:"Checks"`
	Workers Workers                        `json:"Workers"`
}

CLCChecks is used to unmarshall the runner expvar payload for CLC Runner

func GetExpvarRunnerStats

func GetExpvarRunnerStats() (CLCChecks, error)

GetExpvarRunnerStats grabs the status of the runner from expvar and puts it into a CLCChecks struct

type CLCStats

type CLCStats struct {
	AverageExecutionTime int  `json:"AverageExecutionTime"`
	MetricSamples        int  `json:"MetricSamples"`
	HistogramBuckets     int  `json:"HistogramBuckets"`
	Events               int  `json:"Events"`
	LastExecFailed       bool `json:"LastExecFailed"`
}

CLCStats is used to unmarshall the stats needed from the runner expvar payload

func (*CLCStats) UnmarshalJSON

func (d *CLCStats) UnmarshalJSON(data []byte) error

UnmarshalJSON overwrites the unmarshall method for CLCStats

type WorkerInfo

type WorkerInfo struct {
	Utilization float64 `json:"Utilization"`
}

WorkerInfo is used to unmarshall the workers info needed from the runner expvar payload

type Workers

type Workers struct {
	Count     int                   `json:"Count"`
	Instances map[string]WorkerInfo `json:"Instances"`
}

Workers is used to unmarshall the workers info needed from the runner expvar payload

Directories

Path Synopsis
Package clusteragent fetch information about the cluster agent
Package clusteragent fetch information about the cluster agent
Package collector fetch information needed to render the 'collector' section of the status page.
Package collector fetch information needed to render the 'collector' section of the status page.
Package endpoints fetch information needed to render the 'endpoints' section of the status page.
Package endpoints fetch information needed to render the 'endpoints' section of the status page.
health module
Package httpproxy implements the status provider interface
Package httpproxy implements the status provider interface
Package jmx allows to set and collect information about JMX check
Package jmx allows to set and collect information about JMX check
Package render has all the formating options for status output
Package render has all the formating options for status output
Package systemprobe fetch information about the system probe
Package systemprobe fetch information about the system probe

Jump to

Keyboard shortcuts

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