Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstantSuccessFailureSeriesConfig ¶
type ConstantSuccessFailureSeriesConfig struct { // Throughput is the throughput of the success counter. ThroughputSuccess int `yaml:"throughputSuccess"` // Throughput is the throughput of the failure counter. ThroughputFailure int `yaml:"throughputFailure"` // Overrides are overriding configurations. Overrides []ConstantSuccessFailureSeriesOverridesConfig `yaml:"overrides"` }
type MetricFamilyConfig ¶
type MetricFamilyConfig struct { // Name is the name of the metric family. Name string `yaml:"name"` // Help is the help (description) of the metric family. Help string `yaml:"help"` // Series is a list of series configurations. Series []SeriesConfig `yaml:"series"` }
type SeriesConfig ¶
type SeriesConfig struct { // SuccessFailure is the configuration for SuccessFailure series. SuccessFailure *SuccessFailureSeriesConfig `yaml:"successFailure"` // Labels is a set of labels in addition to the above labels. Labels map[string]string `yaml:"labels"` }
type SeriesConfigParser ¶
func (*SeriesConfigParser) Parse ¶
func (p *SeriesConfigParser) Parse(r io.Reader) (*SeriesSetConfig, error)
type SeriesSetConfig ¶
type SuccessFailureSeriesConfig ¶
type SuccessFailureSeriesConfig struct { // Constant is the configuration for ConstantSuccessFailureSeries. Constant *ConstantSuccessFailureSeriesConfig `yaml:"constant"` // Binomial is the configuration for BinomialSuccessFailureSeries. Binomial *BinomialSuccessFailureSeriesConfig `yaml:"binomial"` // LabelNameStatus is the name of the label describing success or failure status. LabelNameStatus string `yaml:"labelNameStatus"` // LabelValueSuccess is the value of the label represending success. LabelValueSuccess string `yaml:"labelValueSuccess"` // LabelValueFailure is the value of the label represending failure. LabelValueFailure string `yaml:"labelValueFailure"` }
Click to show internal directories.
Click to hide internal directories.