Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusCollectorFunc ¶
type PrometheusCollectorFunc func(ctx context.Context) (string, prometheus.Metric)
func GetInfo ¶
func GetInfo(dir string) PrometheusCollectorFunc
type PrometheusMetricsService ¶
type PrometheusMetricsService struct {
// contains filtered or unexported fields
}
func NewPrometheusMetricsService ¶
func NewPrometheusMetricsService(url, token string) (*PrometheusMetricsService, error)
func (*PrometheusMetricsService) AddMetrics ¶
func (p *PrometheusMetricsService) AddMetrics(fns ...PrometheusCollectorFunc)
func (*PrometheusMetricsService) Send ¶
func (p *PrometheusMetricsService) Send(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.