Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusQuery ¶
PrometheusQuery represents parameters for querying Prometheus
func NewPrometheusQuery ¶
func NewPrometheusQuery(host string, port int, client *http.Client) PrometheusQuery
NewPrometheusQuery create a NewPrometheusQuery
func (PrometheusQuery) AddMetrics ¶
func (p PrometheusQuery) AddMetrics(inferences []types.InferenceDeployment)
func (PrometheusQuery) Fetch ¶
func (q PrometheusQuery) Fetch(query string) (*VectorQueryResponse, error)
Fetch queries aggregated stats
type PrometheusQueryFetcher ¶
type PrometheusQueryFetcher interface {
Fetch(query string) (*VectorQueryResponse, error)
}
type VectorQueryResponse ¶
Click to show internal directories.
Click to hide internal directories.