MCPcopy
hub / github.com/openfaas/faas / PrometheusFunctionNotifier

Struct PrometheusFunctionNotifier

gateway/handlers/notifiers.go:31–35  ·  view source on GitHub ↗

PrometheusFunctionNotifier records metrics to Prometheus

Source from the content-addressed store, hash-verified

29
30// PrometheusFunctionNotifier records metrics to Prometheus
31type PrometheusFunctionNotifier struct {
32 Metrics *metrics.MetricOptions
33 //FunctionNamespace default namespace of the function
34 FunctionNamespace string
35}
36
37// Notify records metrics in Prometheus
38func (p PrometheusFunctionNotifier) Notify(method string, URL string, originalURL string, statusCode int, event string, duration time.Duration) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected