Documentation ¶
Index ¶
- Variables
- type PrometheusAdapter
- func (a *PrometheusAdapter) ConfigureContainer(uuid uuid.UUID) error
- func (a *PrometheusAdapter) Dec(metricID string, labels ...string)
- func (a *PrometheusAdapter) Inc(metricID string, labels ...string)
- func (a *PrometheusAdapter) RegisterMetrics(metrics []metricstypes.Metric)
- func (a *PrometheusAdapter) Set(metricID string, value interface{}, labels ...string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMetricNotFound = errors.New("metric not found")
Functions ¶
This section is empty.
Types ¶
type PrometheusAdapter ¶
type PrometheusAdapter struct {
// contains filtered or unexported fields
}
func NewMetricsPrometheusAdapter ¶
func NewMetricsPrometheusAdapter() *PrometheusAdapter
func (*PrometheusAdapter) ConfigureContainer ¶
func (a *PrometheusAdapter) ConfigureContainer(uuid uuid.UUID) error
func (*PrometheusAdapter) Dec ¶
func (a *PrometheusAdapter) Dec(metricID string, labels ...string)
func (*PrometheusAdapter) Inc ¶
func (a *PrometheusAdapter) Inc(metricID string, labels ...string)
func (*PrometheusAdapter) RegisterMetrics ¶
func (a *PrometheusAdapter) RegisterMetrics(metrics []metricstypes.Metric)
func (*PrometheusAdapter) Set ¶
func (a *PrometheusAdapter) Set(metricID string, value interface{}, labels ...string)
Click to show internal directories.
Click to hide internal directories.