- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for prometheusApi (0.23 sec)
-
pkg/test/framework/components/prometheus/kube.go
scopes.Framework.Debugf("initialized Prometheus port forwarder: %v", forwarder.Address()) address := fmt.Sprintf("http://%s", forwarder.Address()) var client prometheusApi.Client client, err = prometheusApi.NewClient(prometheusApi.Config{Address: address}) if err != nil { return nil, err } c.api[cls.Name()] = prometheusApiV1.NewAPI(client) } return c, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 6.3K bytes - Viewed (0) -
istioctl/pkg/metrics/metrics.go
defer fw.Close() dashboard.ClosePortForwarderOnInterrupt(fw) log.Debugf("port-forward to prometheus pod ready") promAPI, err := prometheusAPI(fmt.Sprintf("http://%s", fw.Address())) if err != nil { return fmt.Errorf("failure running port forward process: %v", err) } printHeader(c.OutOrStdout()) workloads := args
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 8.4K bytes - Viewed (0) -
istioctl/pkg/metrics/metrics_test.go
for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, strings.Join(c.Args, " ")), func(t *testing.T) { testutil.VerifyOutput(t, metricCmd, c) }) } } func TestAPI(t *testing.T) { _, _ = prometheusAPI(fmt.Sprintf("http://localhost:%d", 1234)) } var _ promv1.API = mockPromAPI{} func TestPrintMetrics(t *testing.T) { mockProm := mockPromAPI{ cannedResponse: map[string]prometheus_model.Value{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 25 02:07:44 UTC 2023 - 7.9K bytes - Viewed (0)