Documentation ¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
alerts.proto base.proto demo.proto scrape_configs.proto
It has these top-level messages:
AlertRule AlertsListRequest AlertsListResponse AlertsGetRequest AlertsGetResponse BaseVersionRequest BaseVersionResponse DemoErrorRequest DemoErrorResponse LabelPair StaticConfig BasicAuth TLSConfig ScrapeConfig ScrapeConfigsListRequest ScrapeConfigsListResponse ScrapeConfigsGetRequest ScrapeConfigsGetResponse ScrapeConfigsCreateRequest ScrapeConfigsCreateResponse ScrapeConfigsDeleteRequest ScrapeConfigsDeleteResponse ScrapeConfigsAddStaticTargetsRequest ScrapeConfigsAddStaticTargetsResponse ScrapeConfigsRemoveStaticTargetsRequest ScrapeConfigsRemoveStaticTargetsResponse
Package api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterAlertsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAlertsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AlertsClient) error
- func RegisterAlertsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAlertsServer(s *grpc.Server, srv AlertsServer)
- func RegisterBaseHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBaseHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BaseClient) error
- func RegisterBaseHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBaseServer(s *grpc.Server, srv BaseServer)
- func RegisterDemoHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDemoHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DemoClient) error
- func RegisterDemoHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDemoServer(s *grpc.Server, srv DemoServer)
- func RegisterScrapeConfigsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterScrapeConfigsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ScrapeConfigsClient) error
- func RegisterScrapeConfigsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterScrapeConfigsServer(s *grpc.Server, srv ScrapeConfigsServer)
- type AlertRule
- type AlertsClient
- type AlertsGetRequest
- type AlertsGetResponse
- type AlertsListRequest
- type AlertsListResponse
- type AlertsServer
- type BaseClient
- type BaseServer
- type BaseVersionRequest
- type BaseVersionResponse
- type BasicAuth
- type Client
- type DemoClient
- type DemoErrorRequest
- func (*DemoErrorRequest) Descriptor() ([]byte, []int)
- func (m *DemoErrorRequest) GetCode() uint32
- func (m *DemoErrorRequest) GetKey() string
- func (m *DemoErrorRequest) GetValue() string
- func (*DemoErrorRequest) ProtoMessage()
- func (m *DemoErrorRequest) Reset()
- func (m *DemoErrorRequest) String() string
- type DemoErrorResponse
- type DemoServer
- type LabelPair
- type ScrapeConfig
- func (*ScrapeConfig) Descriptor() ([]byte, []int)
- func (m *ScrapeConfig) GetBasicAuth() *BasicAuth
- func (m *ScrapeConfig) GetJobName() string
- func (m *ScrapeConfig) GetMetricsPath() string
- func (m *ScrapeConfig) GetScheme() string
- func (m *ScrapeConfig) GetScrapeInterval() string
- func (m *ScrapeConfig) GetScrapeTimeout() string
- func (m *ScrapeConfig) GetStaticConfigs() []*StaticConfig
- func (m *ScrapeConfig) GetTlsConfig() *TLSConfig
- func (*ScrapeConfig) ProtoMessage()
- func (m *ScrapeConfig) Reset()
- func (m *ScrapeConfig) String() string
- type ScrapeConfigsAddStaticTargetsRequest
- func (*ScrapeConfigsAddStaticTargetsRequest) Descriptor() ([]byte, []int)
- func (m *ScrapeConfigsAddStaticTargetsRequest) GetJobName() string
- func (m *ScrapeConfigsAddStaticTargetsRequest) GetTargets() []string
- func (*ScrapeConfigsAddStaticTargetsRequest) ProtoMessage()
- func (m *ScrapeConfigsAddStaticTargetsRequest) Reset()
- func (m *ScrapeConfigsAddStaticTargetsRequest) String() string
- type ScrapeConfigsAddStaticTargetsResponse
- type ScrapeConfigsClient
- type ScrapeConfigsCreateRequest
- type ScrapeConfigsCreateResponse
- type ScrapeConfigsDeleteRequest
- type ScrapeConfigsDeleteResponse
- type ScrapeConfigsGetRequest
- type ScrapeConfigsGetResponse
- type ScrapeConfigsListRequest
- type ScrapeConfigsListResponse
- type ScrapeConfigsRemoveStaticTargetsRequest
- func (*ScrapeConfigsRemoveStaticTargetsRequest) Descriptor() ([]byte, []int)
- func (m *ScrapeConfigsRemoveStaticTargetsRequest) GetJobName() string
- func (m *ScrapeConfigsRemoveStaticTargetsRequest) GetTargets() []string
- func (*ScrapeConfigsRemoveStaticTargetsRequest) ProtoMessage()
- func (m *ScrapeConfigsRemoveStaticTargetsRequest) Reset()
- func (m *ScrapeConfigsRemoveStaticTargetsRequest) String() string
- type ScrapeConfigsRemoveStaticTargetsResponse
- type ScrapeConfigsServer
- type StaticConfig
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAlertsHandler ¶
RegisterAlertsHandler registers the http handlers for service Alerts to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAlertsHandlerClient ¶
func RegisterAlertsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AlertsClient) error
RegisterAlertsHandler registers the http handlers for service Alerts to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AlertsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AlertsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AlertsClient" to call the correct interceptors.
func RegisterAlertsHandlerFromEndpoint ¶
func RegisterAlertsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAlertsHandlerFromEndpoint is same as RegisterAlertsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAlertsServer ¶
func RegisterAlertsServer(s *grpc.Server, srv AlertsServer)
func RegisterBaseHandler ¶
RegisterBaseHandler registers the http handlers for service Base to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBaseHandlerClient ¶
RegisterBaseHandler registers the http handlers for service Base to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BaseClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BaseClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BaseClient" to call the correct interceptors.
func RegisterBaseHandlerFromEndpoint ¶
func RegisterBaseHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBaseHandlerFromEndpoint is same as RegisterBaseHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBaseServer ¶
func RegisterBaseServer(s *grpc.Server, srv BaseServer)
func RegisterDemoHandler ¶
RegisterDemoHandler registers the http handlers for service Demo to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDemoHandlerClient ¶
RegisterDemoHandler registers the http handlers for service Demo to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DemoClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DemoClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DemoClient" to call the correct interceptors.
func RegisterDemoHandlerFromEndpoint ¶
func RegisterDemoHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDemoHandlerFromEndpoint is same as RegisterDemoHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDemoServer ¶
func RegisterDemoServer(s *grpc.Server, srv DemoServer)
func RegisterScrapeConfigsHandler ¶
func RegisterScrapeConfigsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterScrapeConfigsHandler registers the http handlers for service ScrapeConfigs to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterScrapeConfigsHandlerClient ¶
func RegisterScrapeConfigsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ScrapeConfigsClient) error
RegisterScrapeConfigsHandler registers the http handlers for service ScrapeConfigs to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ScrapeConfigsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ScrapeConfigsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ScrapeConfigsClient" to call the correct interceptors.
func RegisterScrapeConfigsHandlerFromEndpoint ¶
func RegisterScrapeConfigsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterScrapeConfigsHandlerFromEndpoint is same as RegisterScrapeConfigsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterScrapeConfigsServer ¶
func RegisterScrapeConfigsServer(s *grpc.Server, srv ScrapeConfigsServer)
Types ¶
type AlertRule ¶
type AlertRule struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"` Disabled bool `protobuf:"varint,3,opt,name=disabled" json:"disabled,omitempty"` }
func (*AlertRule) Descriptor ¶
func (*AlertRule) GetDisabled ¶
func (*AlertRule) ProtoMessage ¶
func (*AlertRule) ProtoMessage()
type AlertsClient ¶
type AlertsClient interface { // List returns all alert rules. List(ctx context.Context, in *AlertsListRequest, opts ...grpc.CallOption) (*AlertsListResponse, error) // Get returns an alert rule by name. Get(ctx context.Context, in *AlertsGetRequest, opts ...grpc.CallOption) (*AlertsGetResponse, error) }
func NewAlertsClient ¶
func NewAlertsClient(cc *grpc.ClientConn) AlertsClient
type AlertsGetRequest ¶
type AlertsGetRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*AlertsGetRequest) Descriptor ¶
func (*AlertsGetRequest) Descriptor() ([]byte, []int)
func (*AlertsGetRequest) GetName ¶
func (m *AlertsGetRequest) GetName() string
func (*AlertsGetRequest) ProtoMessage ¶
func (*AlertsGetRequest) ProtoMessage()
func (*AlertsGetRequest) Reset ¶
func (m *AlertsGetRequest) Reset()
func (*AlertsGetRequest) String ¶
func (m *AlertsGetRequest) String() string
type AlertsGetResponse ¶
type AlertsGetResponse struct {
AlertRule *AlertRule `protobuf:"bytes,1,opt,name=alert_rule,json=alertRule" json:"alert_rule,omitempty"`
}
func (*AlertsGetResponse) Descriptor ¶
func (*AlertsGetResponse) Descriptor() ([]byte, []int)
func (*AlertsGetResponse) GetAlertRule ¶
func (m *AlertsGetResponse) GetAlertRule() *AlertRule
func (*AlertsGetResponse) ProtoMessage ¶
func (*AlertsGetResponse) ProtoMessage()
func (*AlertsGetResponse) Reset ¶
func (m *AlertsGetResponse) Reset()
func (*AlertsGetResponse) String ¶
func (m *AlertsGetResponse) String() string
type AlertsListRequest ¶
type AlertsListRequest struct { }
func (*AlertsListRequest) Descriptor ¶
func (*AlertsListRequest) Descriptor() ([]byte, []int)
func (*AlertsListRequest) ProtoMessage ¶
func (*AlertsListRequest) ProtoMessage()
func (*AlertsListRequest) Reset ¶
func (m *AlertsListRequest) Reset()
func (*AlertsListRequest) String ¶
func (m *AlertsListRequest) String() string
type AlertsListResponse ¶
type AlertsListResponse struct {
AlertRules []*AlertRule `protobuf:"bytes,1,rep,name=alert_rules,json=alertRules" json:"alert_rules,omitempty"`
}
func (*AlertsListResponse) Descriptor ¶
func (*AlertsListResponse) Descriptor() ([]byte, []int)
func (*AlertsListResponse) GetAlertRules ¶
func (m *AlertsListResponse) GetAlertRules() []*AlertRule
func (*AlertsListResponse) ProtoMessage ¶
func (*AlertsListResponse) ProtoMessage()
func (*AlertsListResponse) Reset ¶
func (m *AlertsListResponse) Reset()
func (*AlertsListResponse) String ¶
func (m *AlertsListResponse) String() string
type AlertsServer ¶
type AlertsServer interface { // List returns all alert rules. List(context.Context, *AlertsListRequest) (*AlertsListResponse, error) // Get returns an alert rule by name. Get(context.Context, *AlertsGetRequest) (*AlertsGetResponse, error) }
type BaseClient ¶
type BaseClient interface {
Version(ctx context.Context, in *BaseVersionRequest, opts ...grpc.CallOption) (*BaseVersionResponse, error)
}
func NewBaseClient ¶
func NewBaseClient(cc *grpc.ClientConn) BaseClient
type BaseServer ¶
type BaseServer interface {
Version(context.Context, *BaseVersionRequest) (*BaseVersionResponse, error)
}
type BaseVersionRequest ¶
type BaseVersionRequest struct { }
func (*BaseVersionRequest) Descriptor ¶
func (*BaseVersionRequest) Descriptor() ([]byte, []int)
func (*BaseVersionRequest) ProtoMessage ¶
func (*BaseVersionRequest) ProtoMessage()
func (*BaseVersionRequest) Reset ¶
func (m *BaseVersionRequest) Reset()
func (*BaseVersionRequest) String ¶
func (m *BaseVersionRequest) String() string
type BaseVersionResponse ¶
type BaseVersionResponse struct {
Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
}
func (*BaseVersionResponse) Descriptor ¶
func (*BaseVersionResponse) Descriptor() ([]byte, []int)
func (*BaseVersionResponse) GetVersion ¶
func (m *BaseVersionResponse) GetVersion() string
func (*BaseVersionResponse) ProtoMessage ¶
func (*BaseVersionResponse) ProtoMessage()
func (*BaseVersionResponse) Reset ¶
func (m *BaseVersionResponse) Reset()
func (*BaseVersionResponse) String ¶
func (m *BaseVersionResponse) String() string
type BasicAuth ¶
type BasicAuth struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` }
func (*BasicAuth) Descriptor ¶
func (*BasicAuth) GetPassword ¶
func (*BasicAuth) GetUsername ¶
func (*BasicAuth) ProtoMessage ¶
func (*BasicAuth) ProtoMessage()
type Client ¶
type Client struct { BaseClient // TODO AlertsClient ScrapeConfigsClient }
Client is a client for pmm-managed APIs.
func NewClient ¶
func NewClient(cc *grpc.ClientConn) *Client
NewClient creates new Client for a given connection.
type DemoClient ¶
type DemoClient interface {
Error(ctx context.Context, in *DemoErrorRequest, opts ...grpc.CallOption) (*DemoErrorResponse, error)
}
func NewDemoClient ¶
func NewDemoClient(cc *grpc.ClientConn) DemoClient
type DemoErrorRequest ¶
type DemoErrorRequest struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` Value string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` }
func (*DemoErrorRequest) Descriptor ¶
func (*DemoErrorRequest) Descriptor() ([]byte, []int)
func (*DemoErrorRequest) GetCode ¶
func (m *DemoErrorRequest) GetCode() uint32
func (*DemoErrorRequest) GetKey ¶
func (m *DemoErrorRequest) GetKey() string
func (*DemoErrorRequest) GetValue ¶
func (m *DemoErrorRequest) GetValue() string
func (*DemoErrorRequest) ProtoMessage ¶
func (*DemoErrorRequest) ProtoMessage()
func (*DemoErrorRequest) Reset ¶
func (m *DemoErrorRequest) Reset()
func (*DemoErrorRequest) String ¶
func (m *DemoErrorRequest) String() string
type DemoErrorResponse ¶
type DemoErrorResponse struct { }
func (*DemoErrorResponse) Descriptor ¶
func (*DemoErrorResponse) Descriptor() ([]byte, []int)
func (*DemoErrorResponse) ProtoMessage ¶
func (*DemoErrorResponse) ProtoMessage()
func (*DemoErrorResponse) Reset ¶
func (m *DemoErrorResponse) Reset()
func (*DemoErrorResponse) String ¶
func (m *DemoErrorResponse) String() string
type DemoServer ¶
type DemoServer interface {
Error(context.Context, *DemoErrorRequest) (*DemoErrorResponse, error)
}
type LabelPair ¶
type LabelPair struct { // Label name Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Label value Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
func (*LabelPair) Descriptor ¶
func (*LabelPair) ProtoMessage ¶
func (*LabelPair) ProtoMessage()
type ScrapeConfig ¶
type ScrapeConfig struct { // The job name assigned to scraped metrics by default: "example-job" (required) JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName" json:"job_name,omitempty"` // How frequently to scrape targets from this job: "10s" ScrapeInterval string `protobuf:"bytes,2,opt,name=scrape_interval,json=scrapeInterval" json:"scrape_interval,omitempty"` // Per-scrape timeout when scraping this job: "5s" ScrapeTimeout string `protobuf:"bytes,3,opt,name=scrape_timeout,json=scrapeTimeout" json:"scrape_timeout,omitempty"` // The HTTP resource path on which to fetch metrics from targets: "/metrics" MetricsPath string `protobuf:"bytes,4,opt,name=metrics_path,json=metricsPath" json:"metrics_path,omitempty"` // Configures the protocol scheme used for requests: "http" or "https" Scheme string `protobuf:"bytes,5,opt,name=scheme" json:"scheme,omitempty"` // Sets the `Authorization` header on every scrape request with the configured username and password BasicAuth *BasicAuth `protobuf:"bytes,6,opt,name=basic_auth,json=basicAuth" json:"basic_auth,omitempty"` // Configures the scrape request's TLS settings TlsConfig *TLSConfig `protobuf:"bytes,7,opt,name=tls_config,json=tlsConfig" json:"tls_config,omitempty"` // List of labeled statically configured targets for this job StaticConfigs []*StaticConfig `protobuf:"bytes,8,rep,name=static_configs,json=staticConfigs" json:"static_configs,omitempty"` }
func (*ScrapeConfig) Descriptor ¶
func (*ScrapeConfig) Descriptor() ([]byte, []int)
func (*ScrapeConfig) GetBasicAuth ¶
func (m *ScrapeConfig) GetBasicAuth() *BasicAuth
func (*ScrapeConfig) GetJobName ¶
func (m *ScrapeConfig) GetJobName() string
func (*ScrapeConfig) GetMetricsPath ¶
func (m *ScrapeConfig) GetMetricsPath() string
func (*ScrapeConfig) GetScheme ¶
func (m *ScrapeConfig) GetScheme() string
func (*ScrapeConfig) GetScrapeInterval ¶
func (m *ScrapeConfig) GetScrapeInterval() string
func (*ScrapeConfig) GetScrapeTimeout ¶
func (m *ScrapeConfig) GetScrapeTimeout() string
func (*ScrapeConfig) GetStaticConfigs ¶
func (m *ScrapeConfig) GetStaticConfigs() []*StaticConfig
func (*ScrapeConfig) GetTlsConfig ¶
func (m *ScrapeConfig) GetTlsConfig() *TLSConfig
func (*ScrapeConfig) ProtoMessage ¶
func (*ScrapeConfig) ProtoMessage()
func (*ScrapeConfig) Reset ¶
func (m *ScrapeConfig) Reset()
func (*ScrapeConfig) String ¶
func (m *ScrapeConfig) String() string
type ScrapeConfigsAddStaticTargetsRequest ¶
type ScrapeConfigsAddStaticTargetsRequest struct { JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName" json:"job_name,omitempty"` // Hostnames or IPs followed by an optional port number: "1.2.3.4:9090" Targets []string `protobuf:"bytes,2,rep,name=targets" json:"targets,omitempty"` }
func (*ScrapeConfigsAddStaticTargetsRequest) Descriptor ¶
func (*ScrapeConfigsAddStaticTargetsRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsAddStaticTargetsRequest) GetJobName ¶
func (m *ScrapeConfigsAddStaticTargetsRequest) GetJobName() string
func (*ScrapeConfigsAddStaticTargetsRequest) GetTargets ¶
func (m *ScrapeConfigsAddStaticTargetsRequest) GetTargets() []string
func (*ScrapeConfigsAddStaticTargetsRequest) ProtoMessage ¶
func (*ScrapeConfigsAddStaticTargetsRequest) ProtoMessage()
func (*ScrapeConfigsAddStaticTargetsRequest) Reset ¶
func (m *ScrapeConfigsAddStaticTargetsRequest) Reset()
func (*ScrapeConfigsAddStaticTargetsRequest) String ¶
func (m *ScrapeConfigsAddStaticTargetsRequest) String() string
type ScrapeConfigsAddStaticTargetsResponse ¶
type ScrapeConfigsAddStaticTargetsResponse struct { }
func (*ScrapeConfigsAddStaticTargetsResponse) Descriptor ¶
func (*ScrapeConfigsAddStaticTargetsResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsAddStaticTargetsResponse) ProtoMessage ¶
func (*ScrapeConfigsAddStaticTargetsResponse) ProtoMessage()
func (*ScrapeConfigsAddStaticTargetsResponse) Reset ¶
func (m *ScrapeConfigsAddStaticTargetsResponse) Reset()
func (*ScrapeConfigsAddStaticTargetsResponse) String ¶
func (m *ScrapeConfigsAddStaticTargetsResponse) String() string
type ScrapeConfigsClient ¶
type ScrapeConfigsClient interface { // List returns all scrape configs. List(ctx context.Context, in *ScrapeConfigsListRequest, opts ...grpc.CallOption) (*ScrapeConfigsListResponse, error) // Get returns a scrape config by job name. // Errors: NotFound(5) if no such scrape config is present. Get(ctx context.Context, in *ScrapeConfigsGetRequest, opts ...grpc.CallOption) (*ScrapeConfigsGetResponse, error) // Create creates a new scrape config. // Errors: InvalidArgument(3) if some argument is not valid, // AlreadyExists(6) if scrape config with that job name is already present. Create(ctx context.Context, in *ScrapeConfigsCreateRequest, opts ...grpc.CallOption) (*ScrapeConfigsCreateResponse, error) // Delete removes existing scrape config by job name. // Errors: NotFound(5) if no such scrape config is present. Delete(ctx context.Context, in *ScrapeConfigsDeleteRequest, opts ...grpc.CallOption) (*ScrapeConfigsDeleteResponse, error) AddStaticTargets(ctx context.Context, in *ScrapeConfigsAddStaticTargetsRequest, opts ...grpc.CallOption) (*ScrapeConfigsAddStaticTargetsResponse, error) RemoveStaticTargets(ctx context.Context, in *ScrapeConfigsRemoveStaticTargetsRequest, opts ...grpc.CallOption) (*ScrapeConfigsRemoveStaticTargetsResponse, error) }
func NewScrapeConfigsClient ¶
func NewScrapeConfigsClient(cc *grpc.ClientConn) ScrapeConfigsClient
type ScrapeConfigsCreateRequest ¶
type ScrapeConfigsCreateRequest struct {
ScrapeConfig *ScrapeConfig `protobuf:"bytes,1,opt,name=scrape_config,json=scrapeConfig" json:"scrape_config,omitempty"`
}
func (*ScrapeConfigsCreateRequest) Descriptor ¶
func (*ScrapeConfigsCreateRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsCreateRequest) GetScrapeConfig ¶
func (m *ScrapeConfigsCreateRequest) GetScrapeConfig() *ScrapeConfig
func (*ScrapeConfigsCreateRequest) ProtoMessage ¶
func (*ScrapeConfigsCreateRequest) ProtoMessage()
func (*ScrapeConfigsCreateRequest) Reset ¶
func (m *ScrapeConfigsCreateRequest) Reset()
func (*ScrapeConfigsCreateRequest) String ¶
func (m *ScrapeConfigsCreateRequest) String() string
type ScrapeConfigsCreateResponse ¶
type ScrapeConfigsCreateResponse struct { }
func (*ScrapeConfigsCreateResponse) Descriptor ¶
func (*ScrapeConfigsCreateResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsCreateResponse) ProtoMessage ¶
func (*ScrapeConfigsCreateResponse) ProtoMessage()
func (*ScrapeConfigsCreateResponse) Reset ¶
func (m *ScrapeConfigsCreateResponse) Reset()
func (*ScrapeConfigsCreateResponse) String ¶
func (m *ScrapeConfigsCreateResponse) String() string
type ScrapeConfigsDeleteRequest ¶
type ScrapeConfigsDeleteRequest struct {
JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName" json:"job_name,omitempty"`
}
func (*ScrapeConfigsDeleteRequest) Descriptor ¶
func (*ScrapeConfigsDeleteRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsDeleteRequest) GetJobName ¶
func (m *ScrapeConfigsDeleteRequest) GetJobName() string
func (*ScrapeConfigsDeleteRequest) ProtoMessage ¶
func (*ScrapeConfigsDeleteRequest) ProtoMessage()
func (*ScrapeConfigsDeleteRequest) Reset ¶
func (m *ScrapeConfigsDeleteRequest) Reset()
func (*ScrapeConfigsDeleteRequest) String ¶
func (m *ScrapeConfigsDeleteRequest) String() string
type ScrapeConfigsDeleteResponse ¶
type ScrapeConfigsDeleteResponse struct { }
func (*ScrapeConfigsDeleteResponse) Descriptor ¶
func (*ScrapeConfigsDeleteResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsDeleteResponse) ProtoMessage ¶
func (*ScrapeConfigsDeleteResponse) ProtoMessage()
func (*ScrapeConfigsDeleteResponse) Reset ¶
func (m *ScrapeConfigsDeleteResponse) Reset()
func (*ScrapeConfigsDeleteResponse) String ¶
func (m *ScrapeConfigsDeleteResponse) String() string
type ScrapeConfigsGetRequest ¶
type ScrapeConfigsGetRequest struct {
JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName" json:"job_name,omitempty"`
}
func (*ScrapeConfigsGetRequest) Descriptor ¶
func (*ScrapeConfigsGetRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsGetRequest) GetJobName ¶
func (m *ScrapeConfigsGetRequest) GetJobName() string
func (*ScrapeConfigsGetRequest) ProtoMessage ¶
func (*ScrapeConfigsGetRequest) ProtoMessage()
func (*ScrapeConfigsGetRequest) Reset ¶
func (m *ScrapeConfigsGetRequest) Reset()
func (*ScrapeConfigsGetRequest) String ¶
func (m *ScrapeConfigsGetRequest) String() string
type ScrapeConfigsGetResponse ¶
type ScrapeConfigsGetResponse struct {
ScrapeConfig *ScrapeConfig `protobuf:"bytes,1,opt,name=scrape_config,json=scrapeConfig" json:"scrape_config,omitempty"`
}
func (*ScrapeConfigsGetResponse) Descriptor ¶
func (*ScrapeConfigsGetResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsGetResponse) GetScrapeConfig ¶
func (m *ScrapeConfigsGetResponse) GetScrapeConfig() *ScrapeConfig
func (*ScrapeConfigsGetResponse) ProtoMessage ¶
func (*ScrapeConfigsGetResponse) ProtoMessage()
func (*ScrapeConfigsGetResponse) Reset ¶
func (m *ScrapeConfigsGetResponse) Reset()
func (*ScrapeConfigsGetResponse) String ¶
func (m *ScrapeConfigsGetResponse) String() string
type ScrapeConfigsListRequest ¶
type ScrapeConfigsListRequest struct { }
func (*ScrapeConfigsListRequest) Descriptor ¶
func (*ScrapeConfigsListRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsListRequest) ProtoMessage ¶
func (*ScrapeConfigsListRequest) ProtoMessage()
func (*ScrapeConfigsListRequest) Reset ¶
func (m *ScrapeConfigsListRequest) Reset()
func (*ScrapeConfigsListRequest) String ¶
func (m *ScrapeConfigsListRequest) String() string
type ScrapeConfigsListResponse ¶
type ScrapeConfigsListResponse struct {
ScrapeConfigs []*ScrapeConfig `protobuf:"bytes,1,rep,name=scrape_configs,json=scrapeConfigs" json:"scrape_configs,omitempty"`
}
func (*ScrapeConfigsListResponse) Descriptor ¶
func (*ScrapeConfigsListResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsListResponse) GetScrapeConfigs ¶
func (m *ScrapeConfigsListResponse) GetScrapeConfigs() []*ScrapeConfig
func (*ScrapeConfigsListResponse) ProtoMessage ¶
func (*ScrapeConfigsListResponse) ProtoMessage()
func (*ScrapeConfigsListResponse) Reset ¶
func (m *ScrapeConfigsListResponse) Reset()
func (*ScrapeConfigsListResponse) String ¶
func (m *ScrapeConfigsListResponse) String() string
type ScrapeConfigsRemoveStaticTargetsRequest ¶
type ScrapeConfigsRemoveStaticTargetsRequest struct { JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName" json:"job_name,omitempty"` // Hostnames or IPs followed by an optional port number: "1.2.3.4:9090" Targets []string `protobuf:"bytes,2,rep,name=targets" json:"targets,omitempty"` }
func (*ScrapeConfigsRemoveStaticTargetsRequest) Descriptor ¶
func (*ScrapeConfigsRemoveStaticTargetsRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsRemoveStaticTargetsRequest) GetJobName ¶
func (m *ScrapeConfigsRemoveStaticTargetsRequest) GetJobName() string
func (*ScrapeConfigsRemoveStaticTargetsRequest) GetTargets ¶
func (m *ScrapeConfigsRemoveStaticTargetsRequest) GetTargets() []string
func (*ScrapeConfigsRemoveStaticTargetsRequest) ProtoMessage ¶
func (*ScrapeConfigsRemoveStaticTargetsRequest) ProtoMessage()
func (*ScrapeConfigsRemoveStaticTargetsRequest) Reset ¶
func (m *ScrapeConfigsRemoveStaticTargetsRequest) Reset()
func (*ScrapeConfigsRemoveStaticTargetsRequest) String ¶
func (m *ScrapeConfigsRemoveStaticTargetsRequest) String() string
type ScrapeConfigsRemoveStaticTargetsResponse ¶
type ScrapeConfigsRemoveStaticTargetsResponse struct { }
func (*ScrapeConfigsRemoveStaticTargetsResponse) Descriptor ¶
func (*ScrapeConfigsRemoveStaticTargetsResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsRemoveStaticTargetsResponse) ProtoMessage ¶
func (*ScrapeConfigsRemoveStaticTargetsResponse) ProtoMessage()
func (*ScrapeConfigsRemoveStaticTargetsResponse) Reset ¶
func (m *ScrapeConfigsRemoveStaticTargetsResponse) Reset()
func (*ScrapeConfigsRemoveStaticTargetsResponse) String ¶
func (m *ScrapeConfigsRemoveStaticTargetsResponse) String() string
type ScrapeConfigsServer ¶
type ScrapeConfigsServer interface { // List returns all scrape configs. List(context.Context, *ScrapeConfigsListRequest) (*ScrapeConfigsListResponse, error) // Get returns a scrape config by job name. // Errors: NotFound(5) if no such scrape config is present. Get(context.Context, *ScrapeConfigsGetRequest) (*ScrapeConfigsGetResponse, error) // Create creates a new scrape config. // Errors: InvalidArgument(3) if some argument is not valid, // AlreadyExists(6) if scrape config with that job name is already present. Create(context.Context, *ScrapeConfigsCreateRequest) (*ScrapeConfigsCreateResponse, error) // Delete removes existing scrape config by job name. // Errors: NotFound(5) if no such scrape config is present. Delete(context.Context, *ScrapeConfigsDeleteRequest) (*ScrapeConfigsDeleteResponse, error) AddStaticTargets(context.Context, *ScrapeConfigsAddStaticTargetsRequest) (*ScrapeConfigsAddStaticTargetsResponse, error) RemoveStaticTargets(context.Context, *ScrapeConfigsRemoveStaticTargetsRequest) (*ScrapeConfigsRemoveStaticTargetsResponse, error) }
type StaticConfig ¶
type StaticConfig struct { // Hostnames or IPs followed by an optional port number: "1.2.3.4:9090" Targets []string `protobuf:"bytes,1,rep,name=targets" json:"targets,omitempty"` // Labels assigned to all metrics scraped from the targets Labels []*LabelPair `protobuf:"bytes,2,rep,name=labels" json:"labels,omitempty"` }
func (*StaticConfig) Descriptor ¶
func (*StaticConfig) Descriptor() ([]byte, []int)
func (*StaticConfig) GetLabels ¶
func (m *StaticConfig) GetLabels() []*LabelPair
func (*StaticConfig) GetTargets ¶
func (m *StaticConfig) GetTargets() []string
func (*StaticConfig) ProtoMessage ¶
func (*StaticConfig) ProtoMessage()
func (*StaticConfig) Reset ¶
func (m *StaticConfig) Reset()
func (*StaticConfig) String ¶
func (m *StaticConfig) String() string
type TLSConfig ¶
type TLSConfig struct {
InsecureSkipVerify bool `protobuf:"varint,5,opt,name=insecure_skip_verify,json=insecureSkipVerify" json:"insecure_skip_verify,omitempty"`
}
func (*TLSConfig) Descriptor ¶
func (*TLSConfig) GetInsecureSkipVerify ¶
func (*TLSConfig) ProtoMessage ¶
func (*TLSConfig) ProtoMessage()