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: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrometheusImg = "prom/prometheus:latest"
	GrafanaImg    = "grafana/grafana:latest"
)
View Source
const DashboardFabricBackendTemplate = `` /* 38845-byte string literal not displayed */
View Source
const DashboardFabricBusinessTemplate = `` /* 14866-byte string literal not displayed */
View Source
const DashboardTemplate = `` /* 234-byte string literal not displayed */
View Source
const DatasourceTemplate = `` /* 215-byte string literal not displayed */

Variables

View Source
var RequiredImages = []string{
	PrometheusImg,
	GrafanaImg,
}

Functions

This section is empty.

Types

type Extension

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

func NewExtension

func NewExtension(platform Platform) *Extension

func (*Extension) CheckTopology

func (n *Extension) CheckTopology()

func (*Extension) GenerateArtifacts

func (n *Extension) GenerateArtifacts()

func (*Extension) PostRun

func (n *Extension) PostRun(bool)

type Global

type Global struct {
	ScrapeInterval     string `yaml:"scrape_interval"`
	EvaluationInterval string `yaml:"evaluation_interval"`
}

type Platform

type Platform interface {
	HyperledgerExplorer() bool
	GetContext() api.Context
	ConfigDir() string
	NetworkID() string
	PrometheusGrafana() bool
	PrometheusPort() int
	GrafanaPort() int
}

type Prometheus

type Prometheus struct {
	Global        Global         `yaml:"global"`
	ScrapeConfigs []ScrapeConfig `yaml:"scrape_configs"`
}

type ScrapeConfig

type ScrapeConfig struct {
	JobName       string         `yaml:"job_name"`
	Scheme        string         `yaml:"scheme"`
	StaticConfigs []StaticConfig `yaml:"static_configs"`
	TLSConfig     *TLSConfig     `yaml:"tls_config,omitempty"`
}

type StaticConfig

type StaticConfig struct {
	Targets []string `yaml:"targets"`
}

type TLSConfig

type TLSConfig struct {
	CAFile             string `yaml:"ca_file"`
	CertFile           string `yaml:"cert_file"`
	KeyFile            string `yaml:"key_file"`
	ServerName         string `yaml:"server_name"`
	InsecureSkipVerify bool   `yaml:"insecure_skip_verify"`
}

Jump to

Keyboard shortcuts

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