- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for mfs (0.33 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram_test.go
func getHistogramCount(registry compbasemetrics.KubeRegistry, metricName string) (int64, error) { mfs, err := registry.Gather() if err != nil { return 0, fmt.Errorf("failed to gather metrics: %w", err) } for _, mf := range mfs { thisName := mf.GetName() if thisName != metricName { continue } metric := mf.GetMetric()[0] hist := metric.GetHistogram()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 13 16:03:06 UTC 2022 - 8.7K bytes - Viewed (0) -
cmd/metrics.go
tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt) if ok { tc.FuncName = "handler.MetricsLegacy" tc.ResponseRecorder.LogErrBody = true } mfs, err := gatherers.Gather() if err != nil { if len(mfs) == 0 { writeErrorResponseJSON(r.Context(), w, toAdminAPIErr(r.Context(), err), r.URL) return } } contentType := expfmt.Negotiate(r.Header)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 16.6K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate.go
// This allows func orderedManifests(mm name.ManifestMap) ([]string, error) { var rawOutput []string var output []string for _, mfs := range mm { rawOutput = append(rawOutput, mfs...) } objects, err := object.ParseK8sObjectsFromYAMLManifest(strings.Join(rawOutput, helm.YAMLSeparator)) if err != nil { return nil, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 01:18:49 UTC 2024 - 8.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/x509metrics/server_cert_deprecations_test.go
return tlsServer, serverURL } func getSingleCounterValueFromRegistry(t *testing.T, r metrics.Gatherer, name string) int { mfs, err := r.Gather() if err != nil { t.Logf("failed to gather local registry metrics: %v", err) return -1 } for _, mf := range mfs { if mf.Name != nil && *mf.Name == name { mfMetric := mf.GetMetric() for _, m := range mfMetric { if m.GetCounter() != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 25.5K bytes - Viewed (0) -
cmd/metrics-v2.go
} mfs, err := gatherers.Gather() if err != nil && len(mfs) == 0 { writeErrorResponseJSON(r.Context(), w, toAdminAPIErr(r.Context(), err), r.URL) return } contentType := expfmt.Negotiate(r.Header) w.Header().Set("Content-Type", string(contentType)) enc := expfmt.NewEncoder(w, contentType) for _, mf := range mfs { if err := enc.Encode(mf); err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:54 UTC 2024 - 131.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go
} } func getSingleCounterValueFromRegistry(t *testing.T, r metrics.Gatherer, name string) int { mfs, err := r.Gather() if err != nil { t.Logf("failed to gather local registry metrics: %v", err) return -1 } for _, mf := range mfs { if mf.Name != nil && *mf.Name == name { mfMetric := mf.GetMetric() for _, m := range mfMetric { if m.GetCounter() != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 25.8K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server.go
} } return FmtText } func scrapeAndWriteAgentMetrics(registry prometheus.Gatherer, w io.Writer) error { mfs, err := registry.Gather() enc := expfmt.NewEncoder(w, FmtText) if err != nil { return err } for _, mf := range mfs { if err := enc.Encode(mf); err != nil { return err } } return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 31.1K bytes - Viewed (1) -
src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 78.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 78.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 78.5K bytes - Viewed (0)