metrics

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMetricsPrefix = "kos"

DefaultMetricsPrefix is the default prefix used for the exposed metrics.

Variables

This section is empty.

Functions

func AddPrefix

func AddPrefix(name, prefix string) string

AddPrefix adds the given prefix to the string, if set

func PublishCinderMetrics added in v1.0.4

func PublishCinderMetrics(client *gophercloud.ServiceClient, clientset *kubernetes.Clientset, tenantID string) error

PublishCinderMetrics makes the list request to the blockstorage api and passes the result to a publish function.

func PublishFirewallV1Metrics added in v1.0.7

func PublishFirewallV1Metrics(client *gophercloud.ServiceClient, tenantID string) error

PublishFirewallV1Metrics makes the list request to the firewall api and passes the result to a publish function. It only does that when the extension is available in neutron.

func PublishFirewallV2Metrics added in v1.0.7

func PublishFirewallV2Metrics(client *gophercloud.ServiceClient, tenantID string) error

PublishFirewallV2Metrics makes the list request to the firewall api and passes the result to a publish function. It only does that when the extension is available in neutron.

func PublishLoadBalancerMetrics added in v1.0.4

func PublishLoadBalancerMetrics(client *gophercloud.ServiceClient, tenantID string) error

PublishLoadBalancerMetrics makes the list request to the load balancer api and passes the result to a publish function.

func PublishNeutronMetrics added in v1.0.4

func PublishNeutronMetrics(neutronClient *gophercloud.ServiceClient, tenantID string) error

PublishNeutronMetrics makes the list request to the neutron api and passes the result to a publish function.

func PublishServerMetrics added in v1.0.6

func PublishServerMetrics(client *gophercloud.ServiceClient, tenantID string) error

PublishServerMetrics makes the list request to the server api and passes the result to a publish function.

func RegisterMetrics

func RegisterMetrics(prefix string)

RegisterMetrics creates and registers the metrics for the /metrics endpoint. It needs to get called before any scraping activity.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL