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
Source Files
¶
- const_dashboardslofreshness.go
- const_widgetgcfactiveinstances.go
- const_widgetgcfexecutioncount.go
- const_widgetgcfexecutiontime.go
- const_widgetgcfmemoryusage.go
- const_widgetrame2elatency.go
- const_widgetramlatency.go
- const_widgetramtriggerage.go
- const_widgetsuboldestunackedmsg.go
- doc.go
- func_getgcfwidget.go
- meth_dashboarddeployment_deploy.go
- type_dashboarddeployment.go
- type_dashboardparameters.go
Click to show internal directories.
Click to hide internal directories.