Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MetricNameRegex = regexp.MustCompile(metricNameRegex)
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string TargetStore storebackend.Storer[*target.Context] }
type PromMetric ¶
type PromMetric struct { Name string Time *time.Time // AddedAt is used to expire metrics if the time field is not initialized // this happens when ExportTimestamp == false AddedAt time.Time // contains filtered or unexported fields }
func NewPromMetric ¶
TODO get user input
func (*PromMetric) Desc ¶
func (p *PromMetric) Desc() *prometheus.Desc
Desc implements prometheus.Metric
func (*PromMetric) String ¶
func (p *PromMetric) String() string
type PrometheusServer ¶
type PrometheusServer struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(c *Config) *PrometheusServer
func (*PrometheusServer) Collect ¶
func (r *PrometheusServer) Collect(ch chan<- prometheus.Metric)
func (*PrometheusServer) Describe ¶
func (r *PrometheusServer) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector
func (*PrometheusServer) Stop ¶
func (r *PrometheusServer) Stop()
Click to show internal directories.
Click to hide internal directories.