monitoring

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TopologyName = "monitoring"
)

Variables

This section is empty.

Functions

func NewPlatformFactory

func NewPlatformFactory() *platformFactory

Types

type Extension

type Extension interface {
	CheckTopology()
	GenerateArtifacts()
	PostRun(load bool)
}

type Platform

type Platform struct {
	Context api.Context

	RootDir    string
	Prefix     string
	Extensions []Extension
	// contains filtered or unexported fields
}

func New

func New(reg api.Context, topology *Topology) *Platform

func (*Platform) AddExtension

func (p *Platform) AddExtension(ex Extension)

func (*Platform) Cleanup

func (p *Platform) Cleanup()

func (*Platform) ConfigDir

func (p *Platform) ConfigDir() string

func (*Platform) GenerateArtifacts

func (p *Platform) GenerateArtifacts()

func (*Platform) GenerateConfigTree

func (p *Platform) GenerateConfigTree()

func (*Platform) GetContext

func (p *Platform) GetContext() api.Context

func (*Platform) GrafanaPort

func (p *Platform) GrafanaPort() int

func (*Platform) HyperledgerExplorer

func (p *Platform) HyperledgerExplorer() bool

func (*Platform) HyperledgerExplorerPort

func (p *Platform) HyperledgerExplorerPort() int

func (*Platform) Load

func (p *Platform) Load()

func (*Platform) Members

func (p *Platform) Members() []grouper.Member

func (*Platform) Name

func (p *Platform) Name() string

func (*Platform) NetworkID

func (p *Platform) NetworkID() string

func (*Platform) OPTL added in v0.3.0

func (p *Platform) OPTL() bool

func (*Platform) OPTLPort added in v0.3.0

func (p *Platform) OPTLPort() int

func (*Platform) PostRun

func (p *Platform) PostRun(load bool)

func (*Platform) PrometheusGrafana

func (p *Platform) PrometheusGrafana() bool

func (*Platform) PrometheusPort

func (p *Platform) PrometheusPort() int

func (*Platform) Type

func (p *Platform) Type() string

type Topology

type Topology struct {
	TopologyName            string `yaml:"name,omitempty"`
	TopologyType            string `yaml:"type,omitempty"`
	HyperledgerExplorer     bool   `yaml:"hyperledger-explorer,omitempty"`
	HyperledgerExplorerPort int    `yaml:"hyperledger-explorer-port,omitempty"`
	PrometheusGrafana       bool   `yaml:"prometheus-grafana,omitempty"`
	PrometheusPort          int    `yaml:"prometheus-port,omitempty"`
	GrafanaPort             int    `yaml:"grafana-port,omitempty"`
	OPTL                    bool   `yaml:"optl,omitempty"`
	OPTLPort                int    `yaml:"optl-port,omitempty"`
}

func NewTopology

func NewTopology() *Topology

func (*Topology) EnableHyperledgerExplorer

func (t *Topology) EnableHyperledgerExplorer()

func (*Topology) EnableOPTL added in v0.3.0

func (t *Topology) EnableOPTL()

func (*Topology) EnablePrometheusGrafana

func (t *Topology) EnablePrometheusGrafana()

func (*Topology) Name

func (t *Topology) Name() string

func (*Topology) SetGrafanaPort

func (t *Topology) SetGrafanaPort(port int)

func (*Topology) SetHyperledgerExplorerPort

func (t *Topology) SetHyperledgerExplorerPort(port int)

func (*Topology) SetOPTLPort added in v0.3.0

func (t *Topology) SetOPTLPort(port int)

func (*Topology) SetPrometheusPort

func (t *Topology) SetPrometheusPort(port int)

func (*Topology) Type

func (t *Topology) Type() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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