config

package
v2.21.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

+kubebuilder:validation:Optional

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusConfig

type PrometheusConfig struct {
	// A list of labels to be attached to every query
	Labels []PrometheusLabel `json:"labels,omitempty"`
	// Address of the Prometheus server
	Address string `json:"address,omitempty" validate:"omitempty,hostname_port|url|fqdn,omitempty"`
}

PrometheusConfig holds configuration for Prometheus Server. swagger:model +kubebuilder:object:generate=true

func (*PrometheusConfig) DeepCopy

func (in *PrometheusConfig) DeepCopy() *PrometheusConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusConfig.

func (*PrometheusConfig) DeepCopyInto

func (in *PrometheusConfig) DeepCopyInto(out *PrometheusConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PrometheusLabel added in v2.8.0

type PrometheusLabel struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

PrometheusLabel holds Name->Value mapping for the label that will be attached to every PromQL query executed by the controller.

Jump to

Keyboard shortcuts

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