Documentation ¶
Index ¶
Constants ¶
View Source
const ( HasNodeLabel = "node_label_node_name" // "node" label is present and has the node name HasInstanceLabelPodIp = "instance_label_pod_ip" // "node" label is absent, "instance" label has a format of IP address:port HasInstanceLabelOther = "instance_label_node_name" // "node" label is absent, "instance" label has a different format and assumed to be node name )
View Source
const (
ByPodIpSuffix = `, "pod_ip", "$1", "instance", "(.*):.*")) by (pod_ip) * on (pod_ip) group_right kube_pod_info{pod=~".*node-exporter.*"}`
)
Variables ¶
This section is empty.
Functions ¶
func DetermineNodeExporter ¶
func GetOSInstanceType ¶
GetOSInstanceType is exported for usage in nodegroup package as well
func HasNodeExporter ¶
HasNodeExporter returns true if node exporter metrics are present for any cluster
Types ¶
type QueryWrapper ¶
type QueryWrapper struct {
Query, SumQuery *common.WorkloadQueryWrapper
MetricField []model.LabelName
}
func GetQueryWrappers ¶
func GetQueryWrappers(qws *[]*QueryWrapper, qwm map[string]*QueryWrapper) []*QueryWrapper
GetQueryWrappers returns the query wrappers that are relevant for the current environment
Click to show internal directories.
Click to hide internal directories.