proto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_prometheus_proto protoreflect.FileDescriptor
View Source
var Prometheus_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "plugins.prometheus.Prometheus",
	HandlerType: (*PrometheusServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetVariables",
			Handler:    _Prometheus_GetVariables_Handler,
		},
		{
			MethodName: "GetMetrics",
			Handler:    _Prometheus_GetMetrics_Handler,
		},
		{
			MethodName: "MetricLookup",
			Handler:    _Prometheus_MetricLookup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "prometheus.proto",
}

Prometheus_ServiceDesc is the grpc.ServiceDesc for Prometheus service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPrometheusServer

func RegisterPrometheusServer(s grpc.ServiceRegistrar, srv PrometheusServer)

Types

type Chart

type Chart struct {
	Title   string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Type    string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Unit    string   `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
	Stacked bool     `protobuf:"varint,4,opt,name=stacked,proto3" json:"stacked,omitempty"`
	Size    int64    `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	Queries []*Query `protobuf:"bytes,6,rep,name=queries,proto3" json:"queries,omitempty"`
	// contains filtered or unexported fields
}

Chart represents a chart for the metrics view. A chart must contain a title, a type (line, area, bar chart, etc.). It can also contain a unit for the y axis. If the stacked option is set to true all series for the chart will be stacked. The size parameter can be used to define the width of a chart for large screens. We are using a 12 column grid to display the charts, so the number must be between 1 and 12. The last option is a list of queries, which are executed against the datasource (e.g. For Prometheus this will be a list of PromQL queries).

func (*Chart) DeepCopy

func (in *Chart) DeepCopy() *Chart

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Chart. Required by controller-gen.

func (*Chart) DeepCopyInterface

func (in *Chart) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Chart. Required by controller-gen.

func (*Chart) DeepCopyInto

func (in *Chart) DeepCopyInto(out *Chart)

DeepCopyInto supports using Chart within kubernetes types, where deepcopy-gen is used.

func (*Chart) Descriptor deprecated

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

Deprecated: Use Chart.ProtoReflect.Descriptor instead.

func (*Chart) GetQueries

func (x *Chart) GetQueries() []*Query

func (*Chart) GetSize

func (x *Chart) GetSize() int64

func (*Chart) GetStacked

func (x *Chart) GetStacked() bool

func (*Chart) GetTitle

func (x *Chart) GetTitle() string

func (*Chart) GetType

func (x *Chart) GetType() string

func (*Chart) GetUnit

func (x *Chart) GetUnit() string

func (*Chart) ProtoMessage

func (*Chart) ProtoMessage()

func (*Chart) ProtoReflect

func (x *Chart) ProtoReflect() protoreflect.Message

func (*Chart) Reset

func (x *Chart) Reset()

func (*Chart) String

func (x *Chart) String() string

type Data

type Data struct {
	X int64   `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

Data is one data point for a metric. Each data point contains a timestamp and a value, where x is the timestamp and y is the value.

func (*Data) DeepCopy

func (in *Data) DeepCopy() *Data

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Data. Required by controller-gen.

func (*Data) DeepCopyInterface

func (in *Data) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Data. Required by controller-gen.

func (*Data) DeepCopyInto

func (in *Data) DeepCopyInto(out *Data)

DeepCopyInto supports using Data within kubernetes types, where deepcopy-gen is used.

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetX

func (x *Data) GetX() int64

func (*Data) GetY

func (x *Data) GetY() float64

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type GetMetricsRequest

type GetMetricsRequest struct {
	Name       string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	TimeStart  int64       `protobuf:"varint,2,opt,name=timeStart,proto3" json:"timeStart,omitempty"`
	TimeEnd    int64       `protobuf:"varint,3,opt,name=timeEnd,proto3" json:"timeEnd,omitempty"`
	Resolution string      `protobuf:"bytes,4,opt,name=resolution,proto3" json:"resolution,omitempty"`
	Variables  []*Variable `protobuf:"bytes,5,rep,name=variables,proto3" json:"variables,omitempty"`
	Queries    []*Query    `protobuf:"bytes,6,rep,name=queries,proto3" json:"queries,omitempty"`
	// contains filtered or unexported fields
}

GetMetricsRequest is the structure of a call to get a time series for a chart. It must contain the name of the datasource, options like the start/end time and the user defined queries for the chart.

func (*GetMetricsRequest) DeepCopy

func (in *GetMetricsRequest) DeepCopy() *GetMetricsRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetMetricsRequest. Required by controller-gen.

func (*GetMetricsRequest) DeepCopyInterface

func (in *GetMetricsRequest) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetMetricsRequest. Required by controller-gen.

func (*GetMetricsRequest) DeepCopyInto

func (in *GetMetricsRequest) DeepCopyInto(out *GetMetricsRequest)

DeepCopyInto supports using GetMetricsRequest within kubernetes types, where deepcopy-gen is used.

func (*GetMetricsRequest) Descriptor deprecated

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

Deprecated: Use GetMetricsRequest.ProtoReflect.Descriptor instead.

func (*GetMetricsRequest) GetName

func (x *GetMetricsRequest) GetName() string

func (*GetMetricsRequest) GetQueries

func (x *GetMetricsRequest) GetQueries() []*Query

func (*GetMetricsRequest) GetResolution

func (x *GetMetricsRequest) GetResolution() string

func (*GetMetricsRequest) GetTimeEnd

func (x *GetMetricsRequest) GetTimeEnd() int64

func (*GetMetricsRequest) GetTimeStart

func (x *GetMetricsRequest) GetTimeStart() int64

func (*GetMetricsRequest) GetVariables

func (x *GetMetricsRequest) GetVariables() []*Variable

func (*GetMetricsRequest) ProtoMessage

func (*GetMetricsRequest) ProtoMessage()

func (*GetMetricsRequest) ProtoReflect

func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message

func (*GetMetricsRequest) Reset

func (x *GetMetricsRequest) Reset()

func (*GetMetricsRequest) String

func (x *GetMetricsRequest) String() string

type GetMetricsResponse

type GetMetricsResponse struct {
	Metrics             []*Metrics `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	InterpolatedQueries []string   `protobuf:"bytes,2,rep,name=interpolatedQueries,proto3" json:"interpolatedQueries,omitempty"`
	// contains filtered or unexported fields
}

GetMetricsResponse is the response for a GetMetrics request. It contains the data needed to render the chart in the React UI.

func (*GetMetricsResponse) DeepCopy

func (in *GetMetricsResponse) DeepCopy() *GetMetricsResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetMetricsResponse. Required by controller-gen.

func (*GetMetricsResponse) DeepCopyInterface

func (in *GetMetricsResponse) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetMetricsResponse. Required by controller-gen.

func (*GetMetricsResponse) DeepCopyInto

func (in *GetMetricsResponse) DeepCopyInto(out *GetMetricsResponse)

DeepCopyInto supports using GetMetricsResponse within kubernetes types, where deepcopy-gen is used.

func (*GetMetricsResponse) Descriptor deprecated

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

Deprecated: Use GetMetricsResponse.ProtoReflect.Descriptor instead.

func (*GetMetricsResponse) GetInterpolatedQueries

func (x *GetMetricsResponse) GetInterpolatedQueries() []string

func (*GetMetricsResponse) GetMetrics

func (x *GetMetricsResponse) GetMetrics() []*Metrics

func (*GetMetricsResponse) ProtoMessage

func (*GetMetricsResponse) ProtoMessage()

func (*GetMetricsResponse) ProtoReflect

func (x *GetMetricsResponse) ProtoReflect() protoreflect.Message

func (*GetMetricsResponse) Reset

func (x *GetMetricsResponse) Reset()

func (*GetMetricsResponse) String

func (x *GetMetricsResponse) String() string

type GetVariablesRequest

type GetVariablesRequest struct {
	Name       string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	TimeStart  int64       `protobuf:"varint,2,opt,name=timeStart,proto3" json:"timeStart,omitempty"`
	TimeEnd    int64       `protobuf:"varint,3,opt,name=timeEnd,proto3" json:"timeEnd,omitempty"`
	Resolution string      `protobuf:"bytes,4,opt,name=resolution,proto3" json:"resolution,omitempty"`
	Variables  []*Variable `protobuf:"bytes,5,rep,name=variables,proto3" json:"variables,omitempty"`
	// contains filtered or unexported fields
}

GetVariablesRequest is the request data needed to get all variables for the metrics view of an application. The request contains various options for the datasource (like start/end time) and the variables of an application. It also contains the name of the datasource, which should be used.

func (*GetVariablesRequest) DeepCopy

func (in *GetVariablesRequest) DeepCopy() *GetVariablesRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetVariablesRequest. Required by controller-gen.

func (*GetVariablesRequest) DeepCopyInterface

func (in *GetVariablesRequest) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetVariablesRequest. Required by controller-gen.

func (*GetVariablesRequest) DeepCopyInto

func (in *GetVariablesRequest) DeepCopyInto(out *GetVariablesRequest)

DeepCopyInto supports using GetVariablesRequest within kubernetes types, where deepcopy-gen is used.

func (*GetVariablesRequest) Descriptor deprecated

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

Deprecated: Use GetVariablesRequest.ProtoReflect.Descriptor instead.

func (*GetVariablesRequest) GetName

func (x *GetVariablesRequest) GetName() string

func (*GetVariablesRequest) GetResolution

func (x *GetVariablesRequest) GetResolution() string

func (*GetVariablesRequest) GetTimeEnd

func (x *GetVariablesRequest) GetTimeEnd() int64

func (*GetVariablesRequest) GetTimeStart

func (x *GetVariablesRequest) GetTimeStart() int64

func (*GetVariablesRequest) GetVariables

func (x *GetVariablesRequest) GetVariables() []*Variable

func (*GetVariablesRequest) ProtoMessage

func (*GetVariablesRequest) ProtoMessage()

func (*GetVariablesRequest) ProtoReflect

func (x *GetVariablesRequest) ProtoReflect() protoreflect.Message

func (*GetVariablesRequest) Reset

func (x *GetVariablesRequest) Reset()

func (*GetVariablesRequest) String

func (x *GetVariablesRequest) String() string

type GetVariablesResponse

type GetVariablesResponse struct {
	Variables []*Variable `protobuf:"bytes,1,rep,name=variables,proto3" json:"variables,omitempty"`
	// contains filtered or unexported fields
}

GetVariablesResponse is the response for a GetVariables request, it contains the variables of the application, with the values and value field.

func (*GetVariablesResponse) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetVariablesResponse. Required by controller-gen.

func (*GetVariablesResponse) DeepCopyInterface

func (in *GetVariablesResponse) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetVariablesResponse. Required by controller-gen.

func (*GetVariablesResponse) DeepCopyInto

func (in *GetVariablesResponse) DeepCopyInto(out *GetVariablesResponse)

DeepCopyInto supports using GetVariablesResponse within kubernetes types, where deepcopy-gen is used.

func (*GetVariablesResponse) Descriptor deprecated

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

Deprecated: Use GetVariablesResponse.ProtoReflect.Descriptor instead.

func (*GetVariablesResponse) GetVariables

func (x *GetVariablesResponse) GetVariables() []*Variable

func (*GetVariablesResponse) ProtoMessage

func (*GetVariablesResponse) ProtoMessage()

func (*GetVariablesResponse) ProtoReflect

func (x *GetVariablesResponse) ProtoReflect() protoreflect.Message

func (*GetVariablesResponse) Reset

func (x *GetVariablesResponse) Reset()

func (*GetVariablesResponse) String

func (x *GetVariablesResponse) String() string

type MetricLookupRequest added in v0.2.0

type MetricLookupRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Matcher string `protobuf:"bytes,2,opt,name=matcher,proto3" json:"matcher,omitempty"`
	// contains filtered or unexported fields
}

MetricLookupRequest

func (*MetricLookupRequest) DeepCopy added in v0.2.0

func (in *MetricLookupRequest) DeepCopy() *MetricLookupRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricLookupRequest. Required by controller-gen.

func (*MetricLookupRequest) DeepCopyInterface added in v0.2.0

func (in *MetricLookupRequest) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new MetricLookupRequest. Required by controller-gen.

func (*MetricLookupRequest) DeepCopyInto added in v0.2.0

func (in *MetricLookupRequest) DeepCopyInto(out *MetricLookupRequest)

DeepCopyInto supports using MetricLookupRequest within kubernetes types, where deepcopy-gen is used.

func (*MetricLookupRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use MetricLookupRequest.ProtoReflect.Descriptor instead.

func (*MetricLookupRequest) GetMatcher added in v0.2.0

func (x *MetricLookupRequest) GetMatcher() string

func (*MetricLookupRequest) GetName added in v0.2.0

func (x *MetricLookupRequest) GetName() string

func (*MetricLookupRequest) ProtoMessage added in v0.2.0

func (*MetricLookupRequest) ProtoMessage()

func (*MetricLookupRequest) ProtoReflect added in v0.2.0

func (x *MetricLookupRequest) ProtoReflect() protoreflect.Message

func (*MetricLookupRequest) Reset added in v0.2.0

func (x *MetricLookupRequest) Reset()

func (*MetricLookupRequest) String added in v0.2.0

func (x *MetricLookupRequest) String() string

type MetricLookupResponse added in v0.2.0

type MetricLookupResponse struct {
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

MetricLookupResponse

func (*MetricLookupResponse) DeepCopy added in v0.2.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricLookupResponse. Required by controller-gen.

func (*MetricLookupResponse) DeepCopyInterface added in v0.2.0

func (in *MetricLookupResponse) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new MetricLookupResponse. Required by controller-gen.

func (*MetricLookupResponse) DeepCopyInto added in v0.2.0

func (in *MetricLookupResponse) DeepCopyInto(out *MetricLookupResponse)

DeepCopyInto supports using MetricLookupResponse within kubernetes types, where deepcopy-gen is used.

func (*MetricLookupResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use MetricLookupResponse.ProtoReflect.Descriptor instead.

func (*MetricLookupResponse) GetNames added in v0.2.0

func (x *MetricLookupResponse) GetNames() []string

func (*MetricLookupResponse) ProtoMessage added in v0.2.0

func (*MetricLookupResponse) ProtoMessage()

func (*MetricLookupResponse) ProtoReflect added in v0.2.0

func (x *MetricLookupResponse) ProtoReflect() protoreflect.Message

func (*MetricLookupResponse) Reset added in v0.2.0

func (x *MetricLookupResponse) Reset()

func (*MetricLookupResponse) String added in v0.2.0

func (x *MetricLookupResponse) String() string

type Metrics

type Metrics struct {
	Label string  `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Min   float64 `protobuf:"fixed64,2,opt,name=min,proto3" json:"min,omitempty"`
	Max   float64 `protobuf:"fixed64,3,opt,name=max,proto3" json:"max,omitempty"`
	Data  []*Data `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Metrics contains the label and all data points for a metric. It also contains the minimum and maximum value of all data points.

func (*Metrics) DeepCopy

func (in *Metrics) DeepCopy() *Metrics

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metrics. Required by controller-gen.

func (*Metrics) DeepCopyInterface

func (in *Metrics) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Metrics. Required by controller-gen.

func (*Metrics) DeepCopyInto

func (in *Metrics) DeepCopyInto(out *Metrics)

DeepCopyInto supports using Metrics within kubernetes types, where deepcopy-gen is used.

func (*Metrics) Descriptor deprecated

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

Deprecated: Use Metrics.ProtoReflect.Descriptor instead.

func (*Metrics) GetData

func (x *Metrics) GetData() []*Data

func (*Metrics) GetLabel

func (x *Metrics) GetLabel() string

func (*Metrics) GetMax

func (x *Metrics) GetMax() float64

func (*Metrics) GetMin

func (x *Metrics) GetMin() float64

func (*Metrics) ProtoMessage

func (*Metrics) ProtoMessage()

func (*Metrics) ProtoReflect

func (x *Metrics) ProtoReflect() protoreflect.Message

func (*Metrics) Reset

func (x *Metrics) Reset()

func (*Metrics) String

func (x *Metrics) String() string

type PrometheusClient

type PrometheusClient interface {
	GetVariables(ctx context.Context, in *GetVariablesRequest, opts ...grpc.CallOption) (*GetVariablesResponse, error)
	GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error)
	MetricLookup(ctx context.Context, in *MetricLookupRequest, opts ...grpc.CallOption) (*MetricLookupResponse, error)
}

PrometheusClient is the client API for Prometheus service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewPrometheusClient

func NewPrometheusClient(cc grpc.ClientConnInterface) PrometheusClient

type PrometheusServer

type PrometheusServer interface {
	GetVariables(context.Context, *GetVariablesRequest) (*GetVariablesResponse, error)
	GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error)
	MetricLookup(context.Context, *MetricLookupRequest) (*MetricLookupResponse, error)
	// contains filtered or unexported methods
}

PrometheusServer is the server API for Prometheus service. All implementations must embed UnimplementedPrometheusServer for forward compatibility

type Query

type Query struct {
	Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

Query presents a single query to get the data, which should be shown in the chart for the metrics section. A query consists of a query string (e.g. PromQL) and a lable. The query and the label can contain variables via Go templating syntax. For Prometheus the label can also contain a label from the returned series with the same syntax.

func (*Query) DeepCopy

func (in *Query) DeepCopy() *Query

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Query. Required by controller-gen.

func (*Query) DeepCopyInterface

func (in *Query) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Query. Required by controller-gen.

func (*Query) DeepCopyInto

func (in *Query) DeepCopyInto(out *Query)

DeepCopyInto supports using Query within kubernetes types, where deepcopy-gen is used.

func (*Query) Descriptor deprecated

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

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetLabel

func (x *Query) GetLabel() string

func (*Query) GetQuery

func (x *Query) GetQuery() string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

func (x *Query) ProtoReflect() protoreflect.Message

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

type Spec

type Spec struct {
	Variables []*Variable `protobuf:"bytes,1,rep,name=variables,proto3" json:"variables,omitempty"`
	Charts    []*Chart    `protobuf:"bytes,2,rep,name=charts,proto3" json:"charts,omitempty"`
	// contains filtered or unexported fields
}

Spec implements the specification for an application. This field is then used in the Application CR and contains, all possible fields, which can be used by a user to work with variables and charts for their data in Prometheus.

func (*Spec) DeepCopy

func (in *Spec) DeepCopy() *Spec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec. Required by controller-gen.

func (*Spec) DeepCopyInterface

func (in *Spec) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Spec. Required by controller-gen.

func (*Spec) DeepCopyInto

func (in *Spec) DeepCopyInto(out *Spec)

DeepCopyInto supports using Spec within kubernetes types, where deepcopy-gen is used.

func (*Spec) Descriptor deprecated

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

Deprecated: Use Spec.ProtoReflect.Descriptor instead.

func (*Spec) GetCharts

func (x *Spec) GetCharts() []*Chart

func (*Spec) GetVariables

func (x *Spec) GetVariables() []*Variable

func (*Spec) ProtoMessage

func (*Spec) ProtoMessage()

func (*Spec) ProtoReflect

func (x *Spec) ProtoReflect() protoreflect.Message

func (*Spec) Reset

func (x *Spec) Reset()

func (*Spec) String

func (x *Spec) String() string

type UnimplementedPrometheusServer

type UnimplementedPrometheusServer struct {
}

UnimplementedPrometheusServer must be embedded to have forward compatible implementations.

func (UnimplementedPrometheusServer) GetMetrics

func (UnimplementedPrometheusServer) GetVariables

func (UnimplementedPrometheusServer) MetricLookup added in v0.2.0

type UnsafePrometheusServer

type UnsafePrometheusServer interface {
	// contains filtered or unexported methods
}

UnsafePrometheusServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PrometheusServer will result in compilation errors.

type Variable

type Variable struct {
	Name     string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Label    string   `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Query    string   `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
	AllowAll bool     `protobuf:"varint,4,opt,name=allowAll,proto3" json:"allowAll,omitempty"`
	Values   []string `protobuf:"bytes,5,rep,name=values,proto3" json:"values,omitempty"`
	Value    string   `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Variable specifies a variable, which can be used within the charts. A variable must contain a name, a label and a query. It also can set the allowAll field to true, which will include an "All" option in the variables values. The values and value field must not be provided by the user. These fields will be set by the GetVariables call. If a user provide a "value", we will try to use it as the selected value.

func (*Variable) DeepCopy

func (in *Variable) DeepCopy() *Variable

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable. Required by controller-gen.

func (*Variable) DeepCopyInterface

func (in *Variable) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Variable. Required by controller-gen.

func (*Variable) DeepCopyInto

func (in *Variable) DeepCopyInto(out *Variable)

DeepCopyInto supports using Variable within kubernetes types, where deepcopy-gen is used.

func (*Variable) Descriptor deprecated

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

Deprecated: Use Variable.ProtoReflect.Descriptor instead.

func (*Variable) GetAllowAll

func (x *Variable) GetAllowAll() bool

func (*Variable) GetLabel

func (x *Variable) GetLabel() string

func (*Variable) GetName

func (x *Variable) GetName() string

func (*Variable) GetQuery

func (x *Variable) GetQuery() string

func (*Variable) GetValue

func (x *Variable) GetValue() string

func (*Variable) GetValues

func (x *Variable) GetValues() []string

func (*Variable) ProtoMessage

func (*Variable) ProtoMessage()

func (*Variable) ProtoReflect

func (x *Variable) ProtoReflect() protoreflect.Message

func (*Variable) Reset

func (x *Variable) Reset()

func (*Variable) String

func (x *Variable) String() string

Jump to

Keyboard shortcuts

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