octopus

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Octopus

type Octopus struct {
	// contains filtered or unexported fields
}

func NewOctopus

func NewOctopus(grpcPort uint16) *Octopus

NewOctopus creates a new Octopus

func (*Octopus) GetTopology

func (o *Octopus) GetTopology() *model.Topology

GetTopology returns a pointer to the current topology

func (*Octopus) Healthy

func (o *Octopus) Healthy() bool

func (*Octopus) Init

func (o *Octopus) Init(connectors []connector.Connector) error

Init initializes the Ocotopus with the given list of connectors and triggers and initial load of data into the connectors

func (*Octopus) Start

func (o *Octopus) Start()

Start starst the Octopus and connectors update routines as well as http + gRPC server

func (*Octopus) UpdateTopology

func (o *Octopus) UpdateTopology() error

UpdateTopology triggers and instant update of the topology data from all configured connectors

type PromAdapter

type PromAdapter struct {
	// contains filtered or unexported fields
}

func NewPromAdapter

func NewPromAdapter(octopus *Octopus) *PromAdapter

func (*PromAdapter) Collect

func (p *PromAdapter) Collect(ch chan<- prometheus.Metric)

func (*PromAdapter) Describe

func (p *PromAdapter) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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