Documentation ¶
Index ¶
- Constants
- func AddPrefix(name, prefix string) string
- func PublishCinderMetrics(client *gophercloud.ServiceClient, clientset *kubernetes.Clientset, ...) error
- func PublishFirewallV1Metrics(client *gophercloud.ServiceClient, tenantID string) error
- func PublishFirewallV2Metrics(client *gophercloud.ServiceClient, tenantID string) error
- func PublishLoadBalancerMetrics(client *gophercloud.ServiceClient, tenantID string) error
- func PublishNeutronMetrics(neutronClient *gophercloud.ServiceClient, tenantID string) error
- func PublishServerMetrics(client *gophercloud.ServiceClient, tenantID string) error
- func RegisterMetrics(prefix string)
Constants ¶
const DefaultMetricsPrefix = "kos"
DefaultMetricsPrefix is the default prefix used for the exposed metrics.
Variables ¶
This section is empty.
Functions ¶
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.