Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MetricNameRegex = regexp.MustCompile(metricNameRegex)
)
Functions ¶
This section is empty.
Types ¶
type MetricBuilder ¶
func (*MetricBuilder) GetLabels ¶
func (m *MetricBuilder) GetLabels(ev *formatters.EventMsg) []prompb.Label
func (*MetricBuilder) MetricName ¶
func (m *MetricBuilder) MetricName(measName, valueName string) string
MetricName generates the prometheus metric name based on the output plugin, the measurement name and the value name. it makes sure the name matches the regex "[^a-zA-Z0-9_]+"
func (*MetricBuilder) TimeSeriesFromEvent ¶
func (m *MetricBuilder) TimeSeriesFromEvent(ev *formatters.EventMsg) []*NamedTimeSeries
type NamedTimeSeries ¶
type NamedTimeSeries struct { Name string TS *prompb.TimeSeries }
Click to show internal directories.
Click to hide internal directories.