Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for QueryRange (0.28 sec)

  1. istioctl/pkg/metrics/metrics_test.go

    	}
    	return canned, nil, nil
    }
    
    func (client mockPromAPI) TSDB(ctx context.Context) (promv1.TSDBResult, error) {
    	return promv1.TSDBResult{}, nil
    }
    
    func (client mockPromAPI) QueryRange(
    	ctx context.Context,
    	query string,
    	r promv1.Range,
    	opts ...promv1.Option,
    ) (prometheus_model.Value, promv1.Warnings, error) {
    	canned, ok := client.cannedResponse[query]
    	if !ok {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 02:07:44 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. tests/integration/telemetry/api/dashboard_test.go

    	"$__rate_interval", "1m",
    )
    
    func checkMetric(cl cluster.Cluster, p prometheus.Instance, query string, excluded []string) error {
    	query = replacer.Replace(query)
    	value, _, err := p.APIForCluster(cl).QueryRange(context.Background(), query, promv1.Range{
    		Start: time.Now().Add(-time.Minute),
    		End:   time.Now(),
    		Step:  time.Second,
    	})
    	if err != nil {
    		return fmt.Errorf("failure executing query (%s): %v", query, err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top