mirror of
https://github.com/fluxcd/flagger.git
synced 2026-02-28 16:50:31 +00:00
- add observer interface with builtin metrics functions - add metrics observer factory - add prometheus client - implement the observer interface for istio, envoy and nginx - remove deprecated istio and app mesh metric aliases (istio_requests_total, istio_request_duration_seconds_bucket, envoy_cluster_upstream_rq, envoy_cluster_upstream_rq_time_bucket)
11 lines
245 B
Go
11 lines
245 B
Go
package metrics
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Interface interface {
|
|
GetRequestSuccessRate(name string, namespace string, interval string) (float64, error)
|
|
GetRequestDuration(name string, namespace string, interval string) (time.Duration, error)
|
|
}
|