Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PushMetrics ¶
func PushMetrics(pusMetricHost string, metrics []MetricConfig, metriJobName string)
func StartMetricsServer ¶
Types ¶
type MetricConfig ¶
type MetricType ¶
type MetricType string
const ( MetricUnkown MetricType = "unavailable" MetricGuage MetricType = "guage" MetricCounter MetricType = "counter" MetricHistogram MetricType = "histogram" MetricSummary MetricType = "summary" )
func MetricTypeFromString ¶
func MetricTypeFromString(s string) MetricType
type Metrics ¶
type Metrics struct { Name string Type MetricType Labels prometheus.Labels // contains filtered or unexported fields }
func NewMetrics ¶
func (*Metrics) InitializeMetric ¶
func (m *Metrics) InitializeMetric(name string, config MetricConfig, customLables []string) error
Click to show internal directories.
Click to hide internal directories.