mirror of https://github.com/knative/pkg.git
add comment (#761)
This commit is contained in:
parent
4b3befdaaa
commit
9a71140445
|
|
@ -63,6 +63,12 @@ const (
|
||||||
// ExporterOptions contains options for configuring the exporter.
|
// ExporterOptions contains options for configuring the exporter.
|
||||||
type ExporterOptions struct {
|
type ExporterOptions struct {
|
||||||
// Domain is the metrics domain. e.g. "knative.dev". Must be present.
|
// Domain is the metrics domain. e.g. "knative.dev". Must be present.
|
||||||
|
//
|
||||||
|
// Stackdriver uses the following format to construct full metric name:
|
||||||
|
// <domain>/<component>/<metric name from View>
|
||||||
|
// Prometheus uses the following format to construct full metric name:
|
||||||
|
// <component>_<metric name from View>
|
||||||
|
// Domain is actually not used if metrics backend is Prometheus.
|
||||||
Domain string
|
Domain string
|
||||||
|
|
||||||
// Component is the name of the component that emits the metrics. e.g.
|
// Component is the name of the component that emits the metrics. e.g.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue