Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OpenstackMetrics Openstack usage counter by API OpenstackMetrics = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "yawol_openstack", Help: "Openstack usage counter by api, object, operation", }, []string{"api", "object", "operation"}) // LoadBalancerInfoMetrics Loadbalancer Info for LoadBalancer contains labels like isInternal, externalIP LoadBalancerInfoMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancer_info", Help: "Loadbalancer Info for LoadBalancer contains labels like isInternal, externalIP", }, []string{"lb", "namespace", "isInternal", "tcpProxyProtocol", "externalIP", "tcpIdleTimeout", "udpIdleTimeout", "lokiEnabled"}) // LoadBalancerOpenstackInfoMetrics Openstack Info contains labels with the OpenStackIDs for LoadBalancer LoadBalancerOpenstackInfoMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancer_openstack_info", Help: "Openstack Info contains labels with the OpenStackIDs for LoadBalancer", }, []string{"lb", "namespace", "portID", "floatingID", "securityGroupID", "flavorID"}) // LoadBalancerReplicasMetrics Replicas for LoadBalancer (from lb.spec.replicas) LoadBalancerReplicasMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancer_replicas", Help: "Replicas for LoadBalancer (from lb.spec.replicas, 0 if marked for deletion)", }, []string{"lb", "namespace"}) // LoadBalancerReplicasCurrentMetrics Current replicas for LoadBalancer (from lb.status.replicas) LoadBalancerReplicasCurrentMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancer_replicas_current", Help: "Current replicas for LoadBalancer (from lb.status.replicas)", }, []string{"lb", "namespace"}) // LoadBalancerReplicasReadyMetrics Ready replicas for LoadBalancer (from lb.status.readyReplicas) LoadBalancerReplicasReadyMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancer_replicas_ready", Help: "Ready replicas for LoadBalancer (from lb.status.readyReplicas)", }, []string{"lb", "namespace"}) // LoadBalancerDeletionTimestampMetrics Deletion timestamp of a LoadBalancer in seconds since epoch LoadBalancerDeletionTimestampMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancer_deletion_timestamp", Help: "Deletion timestamp of a LoadBalancer in seconds since epoch (only present for LoadBalancers in deletion)", }, []string{"lb", "namespace"}) // LoadBalancerSetReplicasMetrics Replicas for LoadBalancerSet (from lbs.spec.replicas) LoadBalancerSetReplicasMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancerset_replicas", Help: "Replicas for LoadBalancerSet (from lbs.spec.replicas, 0 if marked for deletion)", }, []string{"lb", "lbs", "namespace"}) // LoadBalancerSetReplicasCurrentMetrics Current replicas for LoadBalancerSet (from lbs.status.replicas) LoadBalancerSetReplicasCurrentMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancerset_replicas_current", Help: "Current replicas for LoadBalancerSet (from lbs.status.replicas)", }, []string{"lb", "lbs", "namespace"}) // LoadBalancerSetReplicasReadyMetrics Ready replicas for LoadBalancerSet (from lbs.status.readyReplicas) LoadBalancerSetReplicasReadyMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancerset_replicas_ready", Help: "Ready replicas for LoadBalancerSet (from lbs.status.readyReplicas)", }, []string{"lb", "lbs", "namespace"}) // LoadBalancerSetDeletionTimestampMetrics Deletion timestamp of a LoadBalancerSet in seconds since epoch LoadBalancerSetDeletionTimestampMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancerset_deletion_timestamp", Help: "Deletion timestamp of a LoadBalancerSet in seconds since epoch (only present for LoadBalancerSets in deletion)", }, []string{"lb", "lbs", "namespace"}) // LoadBalancerMachineVMMetrics Metrics of loadbalancermachine (all metrics from lbm.status.metrics) LoadBalancerMachineVMMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancermachine", Help: "Metrics of loadbalancermachine (all metrics from lbm.status.metrics)", }, []string{"type", "lb", "lbm", "namespace"}) // LoadBalancerMachineConditionMetrics Conditions of loadbalancermachine (lbm.status.conditions LoadBalancerMachineConditionMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancermachine_condition", Help: "Conditions of loadbalancermachine (lbm.status.conditions)", }, []string{"lb", "lbm", "namespace", "condition", "reason", "status"}) // LoadBalancerMachineOpenstackInfoMetrics Openstack Info contains labels with the OpenStackIDs for LoadBalancerMachine LoadBalancerMachineOpenstackInfoMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancermachine_openstack_info", Help: "Openstack Info contains labels with the OpenStackIDs for LoadBalancerMachine", }, []string{"lb", "lbm", "namespace", "portID", "serverID", "flavorID", "imageID"}) // LoadBalancerMachineDeletionTimestampMetrics Deletion timestamp of a LoadBalancerMachine in seconds since epoch LoadBalancerMachineDeletionTimestampMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "loadbalancermachine_deletion_timestamp", Help: "Deletion timestamp of a LoadBalancerMachine in seconds since epoch (only present for LoadBalancerMachines in deletion)", }, []string{"lb", "lbm", "namespace"}) )
View Source
var LoadBalancerMachineMetrics = LoadBalancerMachineMetricList{ VM: LoadBalancerMachineVMMetrics, Conditions: LoadBalancerMachineConditionMetrics, OpenstackMetrics: OpenstackMetrics, OpenstackInfoMetrics: LoadBalancerMachineOpenstackInfoMetrics, DeletionTimestampMetrics: LoadBalancerMachineDeletionTimestampMetrics, }
View Source
var LoadBalancerMetrics = LoadBalancerMetricList{ OpenstackMetrics: OpenstackMetrics, InfoMetrics: LoadBalancerInfoMetrics, OpenstackInfoMetrics: LoadBalancerOpenstackInfoMetrics, ReplicasMetrics: LoadBalancerReplicasMetrics, ReplicasCurrentMetrics: LoadBalancerReplicasCurrentMetrics, ReplicasReadyMetrics: LoadBalancerReplicasReadyMetrics, DeletionTimestampMetrics: LoadBalancerDeletionTimestampMetrics, }
View Source
var LoadBalancerSetMetrics = LoadBalancerSetMetricList{ ReplicasMetrics: LoadBalancerSetReplicasMetrics, ReplicasCurrentMetrics: LoadBalancerSetReplicasCurrentMetrics, ReplicasReadyMetrics: LoadBalancerSetReplicasReadyMetrics, DeletionTimestampMetrics: LoadBalancerSetDeletionTimestampMetrics, }
Functions ¶
This section is empty.
Types ¶
type LoadBalancerMachineMetricList ¶
type LoadBalancerMachineMetricList struct { VM *prometheus.GaugeVec Conditions *prometheus.GaugeVec OpenstackMetrics *prometheus.CounterVec OpenstackInfoMetrics *prometheus.GaugeVec DeletionTimestampMetrics *prometheus.GaugeVec }
type LoadBalancerMetricList ¶
type LoadBalancerMetricList struct { OpenstackMetrics *prometheus.CounterVec InfoMetrics *prometheus.GaugeVec OpenstackInfoMetrics *prometheus.GaugeVec ReplicasMetrics *prometheus.GaugeVec ReplicasCurrentMetrics *prometheus.GaugeVec ReplicasReadyMetrics *prometheus.GaugeVec DeletionTimestampMetrics *prometheus.GaugeVec }
type LoadBalancerSetMetricList ¶
type LoadBalancerSetMetricList struct { ReplicasMetrics *prometheus.GaugeVec ReplicasCurrentMetrics *prometheus.GaugeVec ReplicasReadyMetrics *prometheus.GaugeVec DeletionTimestampMetrics *prometheus.GaugeVec }
Click to show internal directories.
Click to hide internal directories.