Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendLables ¶
func AppendLables(metricsNames []string, metricsBody []byte, labels []*io_prometheus_client.LabelPair) ([]byte, error)
AppendLables add the labels you give in the list to the metrics names(metricsNames) pressent in metricBody(should be a plain text metrics) and return the new metrics body with the labels. If metricsNames is empty the labels will be apply to all metrics in metricsBody
func FindMetricsNames ¶
FindMetricsNames return all the metric names
Types ¶
type DefaultFordwaderMetrics ¶
type DefaultFordwaderMetrics struct { FordwaderResponseDuration *prometheus.GaugeVec FordwaderScrapeDurationSeconds *prometheus.GaugeVec }
DefaultFordwaderMetrics default metrics for metrics fordwader
func NewDefaultFordwaderMetrics ¶
func NewDefaultFordwaderMetrics() (fordwaderMetrics *DefaultFordwaderMetrics)
NewDefaultFordwaderMetrics create a new DefaultFordwaderMetrics
func (DefaultFordwaderMetrics) MustRegister ¶
func (fordwaderMetrics DefaultFordwaderMetrics) MustRegister()
MustRegister register default metrics for metrics fordwader in prometheus
Click to show internal directories.
Click to hide internal directories.