metrics

package
v1.16.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Names = map[schema.GroupVersionKind]string{
	gwv1.GatewayGVK:         "validation.gateway.solo.io/gateway_config_status",
	gwv1.RouteTableGVK:      "validation.gateway.solo.io/route_table_config_status",
	gwv1.VirtualServiceGVK:  "validation.gateway.solo.io/virtual_service_config_status",
	gloov1.ProxyGVK:         "validation.gateway.solo.io/proxy_config_status",
	gloov1.SecretGVK:        "validation.gateway.solo.io/secret_config_status",
	gloov1.UpstreamGVK:      "validation.gateway.solo.io/upstream_config_status",
	gloov1.UpstreamGroupGVK: "validation.gateway.solo.io/upsteam_group_config_status",
}

Functions

func GetDefaultConfigStatusOptions

func GetDefaultConfigStatusOptions() map[string]*MetricLabels

Types

type ConfigStatusMetrics

type ConfigStatusMetrics struct {
	// contains filtered or unexported fields
}

ConfigStatusMetrics is a collection of metrics, each of which records if the configuration for a particular resource type is valid

func NewConfigStatusMetrics

func NewConfigStatusMetrics(opts map[string]*MetricLabels) (ConfigStatusMetrics, error)

NewConfigStatusMetrics creates and returns a ConfigStatusMetrics from the specified options. If the options are invalid, an error is returned.

func (*ConfigStatusMetrics) SetResourceInvalid

func (m *ConfigStatusMetrics) SetResourceInvalid(ctx context.Context, resource resources.Resource)

func (*ConfigStatusMetrics) SetResourceStatus

func (m *ConfigStatusMetrics) SetResourceStatus(ctx context.Context, resource resources.Resource, status *core.Status)

func (*ConfigStatusMetrics) SetResourceValid

func (m *ConfigStatusMetrics) SetResourceValid(ctx context.Context, resource resources.Resource)

type MetricLabels added in v1.14.0

Jump to

Keyboard shortcuts

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