Versions in this module Expand all Collapse all v0 v0.0.44 Dec 12, 2024 Changes in this version + var MetricNameRegex = regexp.MustCompile(metricNameRegex) + type Config struct + Address string + TargetStore storebackend.Storer[*target.Context] + type PromMetric struct + AddedAt time.Time + Name string + Time *time.Time + func NewPromMetric(subName string, tctx *target.Context, update *gnmi.Update) (*PromMetric, error) + func (p *PromMetric) CalculateKey() uint64 + func (p *PromMetric) Desc() *prometheus.Desc + func (p *PromMetric) String() string + func (p *PromMetric) Write(out *dto.Metric) error + type PrometheusServer struct + func NewServer(c *Config) *PrometheusServer + func (r *PrometheusServer) Collect(ch chan<- prometheus.Metric) + func (r *PrometheusServer) Describe(ch chan<- *prometheus.Desc) + func (r *PrometheusServer) Start(ctx context.Context) error + func (r *PrometheusServer) Stop()