Documentation
¶
Index ¶
- type CacheItem
- type Collector
- type Extractor
- type Ingest
- func (i *Ingest) Collect(metrics chan<- prometheus.Metric)
- func (i *Ingest) Collector() prometheus.Collector
- func (i *Ingest) ConnectionLostHandler(client mqtt.Client, err error)
- func (i *Ingest) CountStoreError(topic string)
- func (i *Ingest) CountSuccess(topic string)
- func (i *Ingest) Describe(desc chan<- *prometheus.Desc)
- func (i *Ingest) OnConnectHandler(client mqtt.Client)
- func (i *Ingest) SetupSubscriptionHandler(errChan chan<- error) mqtt.MessageHandler
- type MemoryCachedCollector
- type Metric
- type MetricCollection
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { prometheus.Collector Observe(deviceID string, collection MetricCollection) }
func NewCollector ¶
type Extractor ¶ added in v0.1.5
type Extractor func(topic string, payload []byte, deviceID string) (MetricCollection, error)
func NewJSONObjectExtractor ¶ added in v0.1.5
type Ingest ¶
type Ingest struct {
// contains filtered or unexported fields
}
func (*Ingest) Collect ¶ added in v0.1.6
func (i *Ingest) Collect(metrics chan<- prometheus.Metric)
func (*Ingest) Collector ¶ added in v0.1.6
func (i *Ingest) Collector() prometheus.Collector
func (*Ingest) ConnectionLostHandler ¶ added in v0.1.6
func (*Ingest) CountStoreError ¶ added in v0.1.5
func (i *Ingest) CountStoreError(topic string)
func (*Ingest) CountSuccess ¶ added in v0.1.5
func (i *Ingest) CountSuccess(topic string)
func (*Ingest) Describe ¶ added in v0.1.6
func (i *Ingest) Describe(desc chan<- *prometheus.Desc)
func (*Ingest) OnConnectHandler ¶ added in v0.1.6
func (*Ingest) SetupSubscriptionHandler ¶
type MemoryCachedCollector ¶
type MemoryCachedCollector struct {
// contains filtered or unexported fields
}
func (*MemoryCachedCollector) Collect ¶
func (c *MemoryCachedCollector) Collect(mc chan<- prometheus.Metric)
func (*MemoryCachedCollector) Describe ¶
func (c *MemoryCachedCollector) Describe(ch chan<- *prometheus.Desc)
func (*MemoryCachedCollector) Observe ¶
func (c *MemoryCachedCollector) Observe(deviceID string, collection MetricCollection)
type Metric ¶
type Metric struct { Description *prometheus.Desc Value float64 ValueType prometheus.ValueType IngestTime time.Time Topic string }
type MetricCollection ¶
type MetricCollection []Metric
Click to show internal directories.
Click to hide internal directories.