Documentation ¶
Index ¶
- Variables
- func RegisterPrometheusServer(s grpc.ServiceRegistrar, srv PrometheusServer)
- type Chart
- func (in *Chart) DeepCopy() *Chart
- func (in *Chart) DeepCopyInterface() interface{}
- func (in *Chart) DeepCopyInto(out *Chart)
- func (*Chart) Descriptor() ([]byte, []int)deprecated
- func (x *Chart) GetQueries() []*Query
- func (x *Chart) GetSize() int64
- func (x *Chart) GetStacked() bool
- func (x *Chart) GetTitle() string
- func (x *Chart) GetType() string
- func (x *Chart) GetUnit() string
- func (*Chart) ProtoMessage()
- func (x *Chart) ProtoReflect() protoreflect.Message
- func (x *Chart) Reset()
- func (x *Chart) String() string
- type Data
- func (in *Data) DeepCopy() *Data
- func (in *Data) DeepCopyInterface() interface{}
- func (in *Data) DeepCopyInto(out *Data)
- func (*Data) Descriptor() ([]byte, []int)deprecated
- func (x *Data) GetX() int64
- func (x *Data) GetY() float64
- func (*Data) ProtoMessage()
- func (x *Data) ProtoReflect() protoreflect.Message
- func (x *Data) Reset()
- func (x *Data) String() string
- type GetMetricsRequest
- func (in *GetMetricsRequest) DeepCopy() *GetMetricsRequest
- func (in *GetMetricsRequest) DeepCopyInterface() interface{}
- func (in *GetMetricsRequest) DeepCopyInto(out *GetMetricsRequest)
- func (*GetMetricsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMetricsRequest) GetName() string
- func (x *GetMetricsRequest) GetQueries() []*Query
- func (x *GetMetricsRequest) GetResolution() string
- func (x *GetMetricsRequest) GetTimeEnd() int64
- func (x *GetMetricsRequest) GetTimeStart() int64
- func (x *GetMetricsRequest) GetVariables() []*Variable
- func (*GetMetricsRequest) ProtoMessage()
- func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message
- func (x *GetMetricsRequest) Reset()
- func (x *GetMetricsRequest) String() string
- type GetMetricsResponse
- func (in *GetMetricsResponse) DeepCopy() *GetMetricsResponse
- func (in *GetMetricsResponse) DeepCopyInterface() interface{}
- func (in *GetMetricsResponse) DeepCopyInto(out *GetMetricsResponse)
- func (*GetMetricsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMetricsResponse) GetInterpolatedQueries() []string
- func (x *GetMetricsResponse) GetMetrics() []*Metrics
- func (*GetMetricsResponse) ProtoMessage()
- func (x *GetMetricsResponse) ProtoReflect() protoreflect.Message
- func (x *GetMetricsResponse) Reset()
- func (x *GetMetricsResponse) String() string
- type GetVariablesRequest
- func (in *GetVariablesRequest) DeepCopy() *GetVariablesRequest
- func (in *GetVariablesRequest) DeepCopyInterface() interface{}
- func (in *GetVariablesRequest) DeepCopyInto(out *GetVariablesRequest)
- func (*GetVariablesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetVariablesRequest) GetName() string
- func (x *GetVariablesRequest) GetResolution() string
- func (x *GetVariablesRequest) GetTimeEnd() int64
- func (x *GetVariablesRequest) GetTimeStart() int64
- func (x *GetVariablesRequest) GetVariables() []*Variable
- func (*GetVariablesRequest) ProtoMessage()
- func (x *GetVariablesRequest) ProtoReflect() protoreflect.Message
- func (x *GetVariablesRequest) Reset()
- func (x *GetVariablesRequest) String() string
- type GetVariablesResponse
- func (in *GetVariablesResponse) DeepCopy() *GetVariablesResponse
- func (in *GetVariablesResponse) DeepCopyInterface() interface{}
- func (in *GetVariablesResponse) DeepCopyInto(out *GetVariablesResponse)
- func (*GetVariablesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetVariablesResponse) GetVariables() []*Variable
- func (*GetVariablesResponse) ProtoMessage()
- func (x *GetVariablesResponse) ProtoReflect() protoreflect.Message
- func (x *GetVariablesResponse) Reset()
- func (x *GetVariablesResponse) String() string
- type MetricLookupRequest
- func (in *MetricLookupRequest) DeepCopy() *MetricLookupRequest
- func (in *MetricLookupRequest) DeepCopyInterface() interface{}
- func (in *MetricLookupRequest) DeepCopyInto(out *MetricLookupRequest)
- func (*MetricLookupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MetricLookupRequest) GetMatcher() string
- func (x *MetricLookupRequest) GetName() string
- func (*MetricLookupRequest) ProtoMessage()
- func (x *MetricLookupRequest) ProtoReflect() protoreflect.Message
- func (x *MetricLookupRequest) Reset()
- func (x *MetricLookupRequest) String() string
- type MetricLookupResponse
- func (in *MetricLookupResponse) DeepCopy() *MetricLookupResponse
- func (in *MetricLookupResponse) DeepCopyInterface() interface{}
- func (in *MetricLookupResponse) DeepCopyInto(out *MetricLookupResponse)
- func (*MetricLookupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MetricLookupResponse) GetNames() []string
- func (*MetricLookupResponse) ProtoMessage()
- func (x *MetricLookupResponse) ProtoReflect() protoreflect.Message
- func (x *MetricLookupResponse) Reset()
- func (x *MetricLookupResponse) String() string
- type Metrics
- func (in *Metrics) DeepCopy() *Metrics
- func (in *Metrics) DeepCopyInterface() interface{}
- func (in *Metrics) DeepCopyInto(out *Metrics)
- func (*Metrics) Descriptor() ([]byte, []int)deprecated
- func (x *Metrics) GetData() []*Data
- func (x *Metrics) GetLabel() string
- func (x *Metrics) GetMax() float64
- func (x *Metrics) GetMin() float64
- func (*Metrics) ProtoMessage()
- func (x *Metrics) ProtoReflect() protoreflect.Message
- func (x *Metrics) Reset()
- func (x *Metrics) String() string
- type PrometheusClient
- type PrometheusServer
- type Query
- func (in *Query) DeepCopy() *Query
- func (in *Query) DeepCopyInterface() interface{}
- func (in *Query) DeepCopyInto(out *Query)
- func (*Query) Descriptor() ([]byte, []int)deprecated
- func (x *Query) GetLabel() string
- func (x *Query) GetQuery() string
- func (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
- type Spec
- func (in *Spec) DeepCopy() *Spec
- func (in *Spec) DeepCopyInterface() interface{}
- func (in *Spec) DeepCopyInto(out *Spec)
- func (*Spec) Descriptor() ([]byte, []int)deprecated
- func (x *Spec) GetCharts() []*Chart
- func (x *Spec) GetVariables() []*Variable
- func (*Spec) ProtoMessage()
- func (x *Spec) ProtoReflect() protoreflect.Message
- func (x *Spec) Reset()
- func (x *Spec) String() string
- type UnimplementedPrometheusServer
- func (UnimplementedPrometheusServer) GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error)
- func (UnimplementedPrometheusServer) GetVariables(context.Context, *GetVariablesRequest) (*GetVariablesResponse, error)
- func (UnimplementedPrometheusServer) MetricLookup(context.Context, *MetricLookupRequest) (*MetricLookupResponse, error)
- type UnsafePrometheusServer
- type Variable
- func (in *Variable) DeepCopy() *Variable
- func (in *Variable) DeepCopyInterface() interface{}
- func (in *Variable) DeepCopyInto(out *Variable)
- func (*Variable) Descriptor() ([]byte, []int)deprecated
- func (x *Variable) GetAllowAll() bool
- func (x *Variable) GetLabel() string
- func (x *Variable) GetName() string
- func (x *Variable) GetQuery() string
- func (x *Variable) GetValue() string
- func (x *Variable) GetValues() []string
- func (*Variable) ProtoMessage()
- func (x *Variable) ProtoReflect() protoreflect.Message
- func (x *Variable) Reset()
- func (x *Variable) String() string
Constants ¶
This section is empty.
Variables ¶
var File_prometheus_proto protoreflect.FileDescriptor
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 ¶
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 ¶
DeepCopyInto supports using Chart within kubernetes types, where deepcopy-gen is used.
func (*Chart) Descriptor
deprecated
func (*Chart) GetQueries ¶
func (*Chart) GetStacked ¶
func (*Chart) ProtoMessage ¶
func (*Chart) ProtoMessage()
func (*Chart) ProtoReflect ¶
func (x *Chart) ProtoReflect() protoreflect.Message
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 ¶
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 ¶
DeepCopyInto supports using Data within kubernetes types, where deepcopy-gen is used.
func (*Data) Descriptor
deprecated
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
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 ¶
func (in *GetVariablesResponse) DeepCopy() *GetVariablesResponse
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
func (in *MetricLookupResponse) DeepCopy() *MetricLookupResponse
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 ¶
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 ¶
DeepCopyInto supports using Metrics within kubernetes types, where deepcopy-gen is used.
func (*Metrics) Descriptor
deprecated
func (*Metrics) ProtoMessage ¶
func (*Metrics) ProtoMessage()
func (*Metrics) ProtoReflect ¶
func (x *Metrics) ProtoReflect() protoreflect.Message
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 ¶
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 ¶
DeepCopyInto supports using Query within kubernetes types, where deepcopy-gen is used.
func (*Query) Descriptor
deprecated
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
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 ¶
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 ¶
DeepCopyInto supports using Spec within kubernetes types, where deepcopy-gen is used.
func (*Spec) Descriptor
deprecated
func (*Spec) GetVariables ¶
func (*Spec) ProtoMessage ¶
func (*Spec) ProtoMessage()
func (*Spec) ProtoReflect ¶
func (x *Spec) ProtoReflect() protoreflect.Message
type UnimplementedPrometheusServer ¶
type UnimplementedPrometheusServer struct { }
UnimplementedPrometheusServer must be embedded to have forward compatible implementations.
func (UnimplementedPrometheusServer) GetMetrics ¶
func (UnimplementedPrometheusServer) GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error)
func (UnimplementedPrometheusServer) GetVariables ¶
func (UnimplementedPrometheusServer) GetVariables(context.Context, *GetVariablesRequest) (*GetVariablesResponse, error)
func (UnimplementedPrometheusServer) MetricLookup ¶ added in v0.2.0
func (UnimplementedPrometheusServer) MetricLookup(context.Context, *MetricLookupRequest) (*MetricLookupResponse, error)
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 ¶
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 ¶
DeepCopyInto supports using Variable within kubernetes types, where deepcopy-gen is used.
func (*Variable) Descriptor
deprecated
func (*Variable) GetAllowAll ¶
func (*Variable) ProtoMessage ¶
func (*Variable) ProtoMessage()
func (*Variable) ProtoReflect ¶
func (x *Variable) ProtoReflect() protoreflect.Message