// MetricsConfig is configuration relevant to metrics capturing and output.
typeMetricsConfigstruct{
ReportingFreqSecint`yaml:"reporting_freq_sec" json:"reporting_freq_sec" usage:"Frequency of metrics exports. Default is 10 seconds."`
ReportingFreqSecint`yaml:"reporting_freq_sec" json:"reporting_freq_sec" usage:"Frequency of metrics exports. Default is 60 seconds."`
StackdriverProjectIDstring`yaml:"stackdriver_projectid" json:"stackdriver_projectid" usage:"This is the identifier of the Stackdriver project the server is uploading the stats data to. Setting this enables metrics to be exported to Stackdriver."`
Namespacestring`yaml:"namespace" json:"namespace" usage:"Namespace for Prometheus or prefix for Stackdriver metrics. It will always prepend node name."`
PrometheusPortint`yaml:"prometheus_port" json:"prometheus_port" usage:"Port to expose Prometheus. If '0' Prometheus exports are disabled."`
@@ -326,7 +326,7 @@ type MetricsConfig struct {
// NewMetricsConfig creates a new MatricsConfig struct.