Documentation ¶
Index ¶
- Constants
- type Reporter
- func (r *Reporter) ReportRequestConcurrency(ns, service, config, rev string, v int64) error
- func (r *Reporter) ReportRequestCount(ns, service, config, rev string, responseCode, numTries int) error
- func (r *Reporter) ReportResponseTime(ns, service, config, rev string, responseCode int, d time.Duration) error
- type StatsReporter
Constants ¶
View Source
const ( // Name is the name of the component. Name = "activator" // RevisionHeaderName is the header key for revision name. RevisionHeaderName = "Knative-Serving-Revision" // RevisionHeaderNamespace is the header key for revision's namespace. RevisionHeaderNamespace = "Knative-Serving-Namespace" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶ added in v0.2.0
type Reporter struct {
// contains filtered or unexported fields
}
Reporter holds cached metric objects to report autoscaler metrics
func NewStatsReporter ¶ added in v0.2.0
NewStatsReporter creates a reporter that collects and reports activator metrics
func (*Reporter) ReportRequestConcurrency ¶ added in v0.8.0
ReportRequestConcurrency captures request concurrency metric with value v.
type StatsReporter ¶ added in v0.2.0
type StatsReporter interface { ReportRequestConcurrency(ns, service, config, rev string, v int64) error ReportRequestCount(ns, service, config, rev string, responseCode, numTries int) error ReportResponseTime(ns, service, config, rev string, responseCode int, d time.Duration) error }
StatsReporter defines the interface for sending activator metrics
Click to show internal directories.
Click to hide internal directories.