metrics

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 20 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

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

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

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

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

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

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