Documentation ¶
Index ¶
- Variables
- func DeployVersion(appID string, sequence int64) error
- func ExtractArchiveToTempDirectory(archiveFilename string) (string, error)
- func GetForwardedPortsFromAppSpec(appID string, sequence int64) ([]types.ForwardedPort, error)
- func GetRealizedLinksFromAppSpec(appID string, sequence int64) ([]types.RealizedLink, error)
- type DownstreamGitOps
- type Metric
- type MetricChart
- type SampleStream
- type Series
- type ValuePair
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultQueryDurationSeconds uint = 15 * 60 // 15 minutes DefaultGraphStepPoints uint = 80 DefaultMetricGraphs = []kotsv1beta1.MetricGraph{ { Title: "Disk Usage", Queries: []kotsv1beta1.MetricQuery{ { Query: `sum(node_filesystem_size_bytes{job=~"node-exporter|kubernetes-service-endpoints",fstype!="",instance!=""} - node_filesystem_avail_bytes{job=~"node-exporter|kubernetes-service-endpoints",fstype!="",instance!=""}) by (instance)`, Legend: "Used: {{ instance }}", }, { Query: `sum(node_filesystem_avail_bytes{job=~"node-exporter|kubernetes-service-endpoints",fstype!="",instance!=""}) by (instance)`, Legend: "Available: {{ instance }}", }, }, YAxisFormat: "bytes", YAxisTemplate: "{{ value }} bytes", }, { Title: "CPU Usage", Query: fmt.Sprintf(`sum(rate(container_cpu_usage_seconds_total{namespace="%s",container!="POD",pod!=""}[5m])) by (pod)`, util.PodNamespace), Legend: "{{ pod }}", }, { Title: "Memory Usage", Query: fmt.Sprintf(`sum(container_memory_usage_bytes{namespace="%s",container!="POD",pod!=""}) by (pod)`, util.PodNamespace), Legend: "{{ pod }}", YAxisFormat: "bytes", }, } )
Functions ¶
func DeployVersion ¶
DeployVersion deploys the version for the given sequence
func GetForwardedPortsFromAppSpec ¶
func GetForwardedPortsFromAppSpec(appID string, sequence int64) ([]types.ForwardedPort, error)
func GetRealizedLinksFromAppSpec ¶
func GetRealizedLinksFromAppSpec(appID string, sequence int64) ([]types.RealizedLink, error)
Types ¶
type DownstreamGitOps ¶
type DownstreamGitOps struct { }
func (*DownstreamGitOps) CreateGitOpsDownstreamCommit ¶
type MetricChart ¶
type MetricChart struct { Title string `json:"title"` TickFormat string `json:"tickFormat"` TickTemplate string `json:"tickTemplate"` Series []Series `json:"series"` }
func GetMetricCharts ¶
func GetMetricCharts(appID string, sequence int64, prometheusAddress string) ([]MetricChart, error)
type SampleStream ¶
Click to show internal directories.
Click to hide internal directories.