mon

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mon helps cloud monitoring

Index

Constants

View Source
const SLOFreshnessTiles = `` /* 5279-byte string literal not displayed */

SLOFreshnessTiles freshness SLO dashboard JSON template

Variables

This section is empty.

Functions

func GetGCFWidget

func GetGCFWidget(microserviceName string, widgetType string) (widget monitoring.Widget, err error)

GetGCFWidget assemble a monitoring widget for given widget type and microservice name

Types

type DashboardDeployment

type DashboardDeployment struct {
	Artifacts struct {
		Widgets []*monitoring.Widget
		Tiles   []*monitoring.Tile
	}
	Core     *deploy.Core
	Settings struct {
		Instance struct {
			MON DashboardParameters
		}
	}
}

DashboardDeployment struct

func NewDashboardDeployment

func NewDashboardDeployment() *DashboardDeployment

NewDashboardDeployment create deployment structure

func (DashboardDeployment) Deploy

func (dashboardDeployment DashboardDeployment) Deploy() (err error)

Deploy dashboard

type DashboardParameters

type DashboardParameters struct {
	DisplayName string
	GridLayout  struct {
		Columns              int64
		MicroServiceNameList []string `yaml:"microServiceNameList,omitempty"`
		WidgetTypeList       []string `yaml:"widgetTypeList,omitempty"`
	} `yaml:"gridLayout,omitempty"`
	SLOFreshnessLayout struct {
		Columns            int64
		Origin             string
		Scope              string
		Flow               string
		SLO                float64 `yaml:"slo,omitempty"`
		CutOffBucketNumber int64   `yaml:"cutOffBucketNumber,omitempty"`
	} `yaml:"sloFreshnessLayout,omitempty"`
}

DashboardParameters structure

Jump to

Keyboard shortcuts

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