v1alpha1

package
v0.25.1 Latest Latest
Warning

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

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

Documentation

Overview

+k8s:deepcopy-gen=package +k8s:conversion-gen=kmodules.xyz/monitoring-agent-api/api/v1 +k8s:openapi-gen=true +gencrdrefdocs:force=true

Index

Constants

View Source
const (
	KeyAgent   = "monitoring.appscode.com/agent"
	KeyService = "monitoring.appscode.com/service"

	VendorPrometheus                 = "prometheus.io"
	AgentPrometheusBuiltin AgentType = VendorPrometheus + "/builtin"
	AgentCoreOSPrometheus  AgentType = VendorPrometheus + "/coreos-operator"
	// Deprecated
	DeprecatedAgentCoreOSPrometheus AgentType = "coreos-prometheus-operator"
)

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder
)

Functions

func Convert_v1_AgentSpec_To_v1alpha1_AgentSpec

func Convert_v1_AgentSpec_To_v1alpha1_AgentSpec(in *v1.AgentSpec, out *AgentSpec, s conversion.Scope) error

Convert_v1_AgentSpec_To_v1alpha1_AgentSpec is an autogenerated conversion function.

func Convert_v1_PrometheusSpec_To_v1alpha1_PrometheusSpec

func Convert_v1_PrometheusSpec_To_v1alpha1_PrometheusSpec(in *v1.PrometheusSpec, out *PrometheusSpec, s conversion.Scope) error

func Convert_v1alpha1_AgentSpec_To_v1_AgentSpec

func Convert_v1alpha1_AgentSpec_To_v1_AgentSpec(in *AgentSpec, out *v1.AgentSpec, s conversion.Scope) error

func Convert_v1alpha1_PrometheusSpec_To_v1_PrometheusSpec

func Convert_v1alpha1_PrometheusSpec_To_v1_PrometheusSpec(in *PrometheusSpec, out *v1.PrometheusSpec, s conversion.Scope) error

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

Types

type AgentSpec

type AgentSpec struct {
	Agent      AgentType       `json:"agent,omitempty" protobuf:"bytes,1,opt,name=agent,casttype=AgentType"`
	Prometheus *PrometheusSpec `json:"prometheus,omitempty" protobuf:"bytes,2,opt,name=prometheus"`
	// Arguments to the entrypoint.
	// The docker image's CMD is used if this is not provided.
	// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
	// cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
	// can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
	// regardless of whether the variable exists or not.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
	// +optional
	Args []string `json:"args,omitempty" protobuf:"bytes,3,rep,name=args"`
	// List of environment variables to set in the container.
	// Cannot be updated.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	Env []core.EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,4,rep,name=env"`
	// Compute Resources required by exporter container.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
	// +optional
	Resources core.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,5,opt,name=resources"`
	// Security options the pod should run with.
	// More info: https://kubernetes.io/docs/concepts/policy/security-context/
	// More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
	// +optional
	SecurityContext *core.SecurityContext `json:"securityContext,omitempty" protobuf:"bytes,6,opt,name=securityContext"`
}

func (*AgentSpec) DeepCopy

func (in *AgentSpec) DeepCopy() *AgentSpec

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

func (*AgentSpec) DeepCopyInto

func (in *AgentSpec) DeepCopyInto(out *AgentSpec)

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

func (*AgentSpec) Descriptor

func (*AgentSpec) Descriptor() ([]byte, []int)

func (*AgentSpec) Marshal

func (m *AgentSpec) Marshal() (dAtA []byte, err error)

func (*AgentSpec) MarshalTo

func (m *AgentSpec) MarshalTo(dAtA []byte) (int, error)

func (*AgentSpec) MarshalToSizedBuffer

func (m *AgentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AgentSpec) ProtoMessage

func (*AgentSpec) ProtoMessage()

func (*AgentSpec) Reset

func (m *AgentSpec) Reset()

func (*AgentSpec) Size

func (m *AgentSpec) Size() (n int)

func (*AgentSpec) String

func (this *AgentSpec) String() string

func (*AgentSpec) Unmarshal

func (m *AgentSpec) Unmarshal(dAtA []byte) error

func (*AgentSpec) XXX_DiscardUnknown

func (m *AgentSpec) XXX_DiscardUnknown()

func (*AgentSpec) XXX_Marshal

func (m *AgentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AgentSpec) XXX_Merge

func (m *AgentSpec) XXX_Merge(src proto.Message)

func (*AgentSpec) XXX_Size

func (m *AgentSpec) XXX_Size() int

func (*AgentSpec) XXX_Unmarshal

func (m *AgentSpec) XXX_Unmarshal(b []byte) error

type AgentType

type AgentType string

func (AgentType) Vendor

func (at AgentType) Vendor() string

type PrometheusSpec

type PrometheusSpec struct {
	// Port number for the exporter side car.
	Port int32 `json:"port,omitempty" protobuf:"varint,1,opt,name=port"`

	// Namespace of Prometheus. Service monitors will be created in this namespace.
	Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"`
	// Labels are key value pairs that is used to select Prometheus instance via ServiceMonitor labels.
	// +optional
	Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,3,rep,name=labels"`

	// Interval at which metrics should be scraped
	Interval string `json:"interval,omitempty" protobuf:"bytes,4,opt,name=interval"`
}

func (*PrometheusSpec) DeepCopy

func (in *PrometheusSpec) DeepCopy() *PrometheusSpec

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

func (*PrometheusSpec) DeepCopyInto

func (in *PrometheusSpec) DeepCopyInto(out *PrometheusSpec)

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

func (*PrometheusSpec) Descriptor

func (*PrometheusSpec) Descriptor() ([]byte, []int)

func (*PrometheusSpec) Marshal

func (m *PrometheusSpec) Marshal() (dAtA []byte, err error)

func (*PrometheusSpec) MarshalTo

func (m *PrometheusSpec) MarshalTo(dAtA []byte) (int, error)

func (*PrometheusSpec) MarshalToSizedBuffer

func (m *PrometheusSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PrometheusSpec) ProtoMessage

func (*PrometheusSpec) ProtoMessage()

func (*PrometheusSpec) Reset

func (m *PrometheusSpec) Reset()

func (*PrometheusSpec) Size

func (m *PrometheusSpec) Size() (n int)

func (*PrometheusSpec) String

func (this *PrometheusSpec) String() string

func (*PrometheusSpec) Unmarshal

func (m *PrometheusSpec) Unmarshal(dAtA []byte) error

func (*PrometheusSpec) XXX_DiscardUnknown

func (m *PrometheusSpec) XXX_DiscardUnknown()

func (*PrometheusSpec) XXX_Marshal

func (m *PrometheusSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PrometheusSpec) XXX_Merge

func (m *PrometheusSpec) XXX_Merge(src proto.Message)

func (*PrometheusSpec) XXX_Size

func (m *PrometheusSpec) XXX_Size() int

func (*PrometheusSpec) XXX_Unmarshal

func (m *PrometheusSpec) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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