Documentation ¶
Index ¶
- Variables
- func PromQueryPost(query string) ([]byte, error)
- func SanitizePQ(check_q string) error
- type PQOutputFormat
- func PQ_ContainerCPUUsage(ns string) ([]PQOutputFormat, error)
- func PQ_ContainerFSRead(ns string) ([]PQOutputFormat, error)
- func PQ_ContainerFSWrite(ns string) ([]PQOutputFormat, error)
- func PQ_ContainerMemUsage(ns string) ([]PQOutputFormat, error)
- func PQ_ContainerNetworkReceive(ns string) ([]PQOutputFormat, error)
- func PQ_ContainerNetworkTransmit(ns string) ([]PQOutputFormat, error)
- func PQ_KubeletVolumeAvailable() ([]PQOutputFormat, error)
- func PQ_KubeletVolumeCapacity() ([]PQOutputFormat, error)
- func PQ_KubeletVolumeUsed() ([]PQOutputFormat, error)
- func PQ_NodeCPUCores() ([]PQOutputFormat, error)
- func PQ_NodeDiskRead() ([]PQOutputFormat, error)
- func PQ_NodeDiskWrite() ([]PQOutputFormat, error)
- func PQ_NodeDiskWrittenTotal() ([]PQOutputFormat, error)
- func PQ_NodeMemActive() ([]PQOutputFormat, error)
- func PQ_NodeMemTotal() ([]PQOutputFormat, error)
- func PQ_NodeNetworkReceive() ([]PQOutputFormat, error)
- func PQ_NodeNetworkTransmit() ([]PQOutputFormat, error)
- func PQ_NodeProcessRunning() ([]PQOutputFormat, error)
- func PQ_NodeTemperatureCelsius() ([]PQOutputFormat, error)
- func PQ_NodeTemperatureCelsiusAverage() ([]PQOutputFormat, error)
- func PQ_NodeTemperatureCelsiusChange() ([]PQOutputFormat, error)
- func PQ_PodScheduled(ns string) ([]PQOutputFormat, error)
- func PQ_PodUnscheduled(ns string) ([]PQOutputFormat, error)
- func PromQueryStandardizer(raw_query_bytes []byte, metric_key string) ([]PQOutputFormat, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var INSTANCE = "instance"
View Source
var NODE = "node"
View Source
var POD = "pod"
View Source
var PROM_COMM_URL = "http://localhost:9090/api/v1/query"
View Source
var PVC = "persistentvolumeclaim"
View Source
var Q_CONTAINER_CPU_USAGE = "rate(container_cpu_usage_seconds_total{namespace=***}[5m])[1h:5m]"
View Source
var Q_CONTAINER_FS_READ = "rate(container_fs_reads_bytes_total{namespace=***}[5m])[1h:30s]"
View Source
var Q_CONTAINER_FS_WRITE = "rate(container_fs_writes_bytes_total{namespace=***}[5m])[1h:30s]"
View Source
var Q_CONTAINER_MEM_USAGE = "rate(container_memory_usage_bytes{namespace=***}[5m])[1h:30s]"
View Source
var Q_CONTAINER_NETWORK_RECEIVE = "rate(container_network_receive_bytes_total{namespace=***}[5m])[1h:30s]"
View Source
var Q_CONTAINER_NETWORK_TRANSMIT = "rate(container_network_transmit_bytes_total{namespace=***}[5m])[1h:30s]"
View Source
var Q_KUBELET_VOLUME_AVAILABLE = "kubelet_volume_stats_available_bytes[1h:30s]"
View Source
var Q_KUBELET_VOLUME_CAPACITY = "kubelet_volume_stats_capacity_bytes[1h:30s]"
View Source
var Q_KUBELET_VOLUME_USED = "kubelet_volume_stats_used_bytes[1h:30s]"
View Source
var Q_NODE_CPU_CORES = "machine_cpu_cores[1h:30s]"
View Source
var Q_NODE_DISK_READ = "rate(node_disk_read_bytes_total{namespace=***}[5m])[1h:30s]"
View Source
var Q_NODE_DISK_WRITE = "rate(node_disk_written_bytes_total{namespace=***}[5m])[1h:30s]"
View Source
var Q_NODE_DISK_WRITTEN_TOTAL = "sum_over_time(node_disk_written_bytes_total{namespace=***}[5m])[1h:30s]"
View Source
var Q_NODE_MEM_ACTIVE = "node_memory_MemAvailable_bytes{namespace=***}[1h:30s]"
View Source
var Q_NODE_MEM_TOTAL = "node_memory_MemTotal_bytes{namespace=***}[1h:30s]"
View Source
var Q_NODE_NETWORK_RECEIVE = "rate(node_network_receive_bytes_total{namespace=***}[5m])[1h:30s]"
View Source
var Q_NODE_NETWORK_TRANSMIT = "rate(node_network_transmit_bytes_total{namespace=***}[5m])[1h:30s]"
View Source
var Q_NODE_PROCESS_RUNNING = "node_procs_running{namespace=***}[1h:30s]"
View Source
var Q_NODE_TEMPERATURE_CELSIUS = "node_hwmon_temp_celsius{namespace=***}"
View Source
var Q_NODE_TEMPERATURE_CELSIUS_AVERAGE = "avg_over_time(node_hwmon_temp_celsius{namespace=***}[5m])[24h:1h]"
View Source
var Q_NODE_TEMPERATURE_CELSIUS_CHANGE = "changes(node_hwmon_temp_celsius{namespace=***}[5m])[24h:1h]"
View Source
var Q_POD_SCHEDULED = "count_over_time(kube_pod_status_scheduled{namespace=***}[5m])[24h:1h]"
View Source
var Q_POD_UNSCHEDULED = "count_over_time(kube_pod_status_unschedulable{namespace=***}[5m])[24h:1h]"
View Source
var SENSOR = "sensor"
Functions ¶
func PromQueryPost ¶
func SanitizePQ ¶
Types ¶
type PQOutputFormat ¶
func PQ_ContainerCPUUsage ¶
func PQ_ContainerCPUUsage(ns string) ([]PQOutputFormat, error)
func PQ_ContainerFSRead ¶
func PQ_ContainerFSRead(ns string) ([]PQOutputFormat, error)
func PQ_ContainerFSWrite ¶
func PQ_ContainerFSWrite(ns string) ([]PQOutputFormat, error)
func PQ_ContainerMemUsage ¶
func PQ_ContainerMemUsage(ns string) ([]PQOutputFormat, error)
func PQ_ContainerNetworkReceive ¶
func PQ_ContainerNetworkReceive(ns string) ([]PQOutputFormat, error)
func PQ_ContainerNetworkTransmit ¶
func PQ_ContainerNetworkTransmit(ns string) ([]PQOutputFormat, error)
func PQ_KubeletVolumeAvailable ¶
func PQ_KubeletVolumeAvailable() ([]PQOutputFormat, error)
func PQ_KubeletVolumeCapacity ¶
func PQ_KubeletVolumeCapacity() ([]PQOutputFormat, error)
func PQ_KubeletVolumeUsed ¶
func PQ_KubeletVolumeUsed() ([]PQOutputFormat, error)
func PQ_NodeCPUCores ¶
func PQ_NodeCPUCores() ([]PQOutputFormat, error)
func PQ_NodeDiskRead ¶
func PQ_NodeDiskRead() ([]PQOutputFormat, error)
func PQ_NodeDiskWrite ¶
func PQ_NodeDiskWrite() ([]PQOutputFormat, error)
func PQ_NodeDiskWrittenTotal ¶
func PQ_NodeDiskWrittenTotal() ([]PQOutputFormat, error)
func PQ_NodeMemActive ¶
func PQ_NodeMemActive() ([]PQOutputFormat, error)
func PQ_NodeMemTotal ¶
func PQ_NodeMemTotal() ([]PQOutputFormat, error)
func PQ_NodeNetworkReceive ¶
func PQ_NodeNetworkReceive() ([]PQOutputFormat, error)
func PQ_NodeNetworkTransmit ¶
func PQ_NodeNetworkTransmit() ([]PQOutputFormat, error)
func PQ_NodeProcessRunning ¶
func PQ_NodeProcessRunning() ([]PQOutputFormat, error)
func PQ_NodeTemperatureCelsius ¶
func PQ_NodeTemperatureCelsius() ([]PQOutputFormat, error)
func PQ_NodeTemperatureCelsiusAverage ¶
func PQ_NodeTemperatureCelsiusAverage() ([]PQOutputFormat, error)
func PQ_NodeTemperatureCelsiusChange ¶
func PQ_NodeTemperatureCelsiusChange() ([]PQOutputFormat, error)
func PQ_PodScheduled ¶
func PQ_PodScheduled(ns string) ([]PQOutputFormat, error)
func PQ_PodUnscheduled ¶
func PQ_PodUnscheduled(ns string) ([]PQOutputFormat, error)
func PromQueryStandardizer ¶
func PromQueryStandardizer(raw_query_bytes []byte, metric_key string) ([]PQOutputFormat, error)
Click to show internal directories.
Click to hide internal directories.