Documentation ¶
Index ¶
- Constants
- Variables
- func PostRequestAndGetValue(client *http.Client, req *http.Request, value interface{}) error
- type Container
- type ContainerData
- type DmrContainer
- type Environment
- type JolokiaContainer
- type JolokiaRequest
- type JolokiaRequestType
- type JolokiaResponse
- type Jube
- type KubeSource
- type Kubernetes
- type Pod
- type Source
- type StatsEntry
- type StatsValue
Constants ¶
View Source
const (
AMQDefaultDomain string = "org.apache.activemq"
)
Variables ¶
View Source
var ( JVMRequest = JolokiaRequest{ Type: Read, MBean: "java.lang:type=Memory", Attribute: []string{"HeapMemoryUsage", "NonHeapMemoryUsage"}, } )
Functions ¶
Types ¶
type Container ¶
type Container interface { GetName() string GetStats() (*StatsEntry, error) }
type ContainerData ¶
type ContainerData struct {
Pods []Pod
}
type DmrContainer ¶
type DmrContainer struct { Name string `json:"name,omitempty"` Host string `json:"host"` DmrPort int `json:"dmrPort"` Stats *StatsEntry `json:"stats,omitempty"` }
func (*DmrContainer) GetName ¶
func (self *DmrContainer) GetName() string
func (*DmrContainer) GetStats ¶
func (self *DmrContainer) GetStats() (*StatsEntry, error)
type Environment ¶
type JolokiaContainer ¶
type JolokiaContainer struct { Name string `json:"name,omitempty"` Host string `json:"host"` JolokiaPort int `json:"jolokiaPort"` Stats *StatsEntry `json:"stats,omitempty"` }
func (*JolokiaContainer) GetName ¶
func (self *JolokiaContainer) GetName() string
func (*JolokiaContainer) GetStats ¶
func (self *JolokiaContainer) GetStats() (*StatsEntry, error)
type JolokiaRequest ¶
type JolokiaRequest struct { Type JolokiaRequestType `json:"type"` MBean string `json:"mbean,omitempty"` Attribute interface{} `json:"attribute,omitempty"` Path string `json:"path,omitempty"` MaxDepth uint `json:"maxDepth,omitempty"` }
func GetAMQRequests ¶
func GetAMQRequests(url string) ([]JolokiaRequest, error)
type JolokiaRequestType ¶
type JolokiaRequestType string
const ( Search JolokiaRequestType = "search" Read JolokiaRequestType = "read" List JolokiaRequestType = "list" Exec JolokiaRequestType = "exec" Write JolokiaRequestType = "write" )
type JolokiaResponse ¶
type JolokiaResponse struct { Status uint32 Timestamp uint32 Request map[string]interface{} Value StatsValue Error string }
type KubeSource ¶
type KubeSource struct {
// contains filtered or unexported fields
}
func (*KubeSource) GetData ¶
func (self *KubeSource) GetData() (ContainerData, error)
type Pod ¶
type Pod struct { Namespace string `json:"namespace,omitempty"` Name string `json:"name,omitempty"` ID types.UID `json:"id,omitempty"` Hostname string `json:"hostname,omitempty"` Containers []*Container `json:"containers"` Status string `json:"status,omitempty"` PodIP string `json:"podIP,omitempty"` Labels map[string]string `json:"labels,omitempty"` }
PodState is the state of a pod, used as either input (desired state) or output (current state)
type Source ¶
type Source interface {
GetData() (ContainerData, error)
}
type StatsEntry ¶
type StatsEntry struct { // The time of this stat point. Timestamp time.Time `json:"timestamp"` Stats map[string]StatsValue `json:"stats,omitempty"` }
type StatsValue ¶
type StatsValue map[string]interface{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.