Documentation ¶
Overview ¶
Package prometheus implements a heka output plugin which provides acts as a prometheus endpoint ready for scraping
Messages that arrive via the heka router must have a carefully formatted structure, all data is conveyed in Heka Fields: http://hekad.readthedocs.org/en/v0.9.2/message/index.html
Prometheus Data types limited to: Gauge and GaugeVect /
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstHistogram ¶
type ConstHistogram struct { Count uint64 Sum float64 Buckets map[string]uint64 Name string Labels map[string]string Help string Expires int64 // contains filtered or unexported fields }
func (*ConstHistogram) MarshalJSON ¶
func (mj *ConstHistogram) MarshalJSON() ([]byte, error)
func (*ConstHistogram) MarshalJSONBuf ¶
func (mj *ConstHistogram) MarshalJSONBuf(buf fflib.EncodingBuffer) error
func (*ConstHistogram) UnmarshalJSON ¶
func (uj *ConstHistogram) UnmarshalJSON(input []byte) error
func (*ConstHistogram) UnmarshalJSONFFLexer ¶
func (uj *ConstHistogram) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
type ConstMetric ¶
type ConstMetric struct { Value float64 ValueType string Name string Labels map[string]string Help string Expires int64 // contains filtered or unexported fields }
func (*ConstMetric) MarshalJSON ¶
func (mj *ConstMetric) MarshalJSON() ([]byte, error)
func (*ConstMetric) MarshalJSONBuf ¶
func (mj *ConstMetric) MarshalJSONBuf(buf fflib.EncodingBuffer) error
func (*ConstMetric) UnmarshalJSON ¶
func (uj *ConstMetric) UnmarshalJSON(input []byte) error
func (*ConstMetric) UnmarshalJSONFFLexer ¶
func (uj *ConstMetric) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
type ConstSummary ¶
type ConstSummary struct { Count uint64 Sum float64 Quantiles map[string]float64 Name string Labels map[string]string Help string Expires int64 // contains filtered or unexported fields }
func (*ConstSummary) MarshalJSON ¶
func (mj *ConstSummary) MarshalJSON() ([]byte, error)
func (*ConstSummary) MarshalJSONBuf ¶
func (mj *ConstSummary) MarshalJSONBuf(buf fflib.EncodingBuffer) error
func (*ConstSummary) UnmarshalJSON ¶
func (uj *ConstSummary) UnmarshalJSON(input []byte) error
func (*ConstSummary) UnmarshalJSONFFLexer ¶
func (uj *ConstSummary) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
type Metrics ¶
type Metrics struct { Single []*ConstMetric Summary []*ConstSummary Histogram []*ConstHistogram }
func (*Metrics) MarshalJSON ¶
func (*Metrics) MarshalJSONBuf ¶
func (mj *Metrics) MarshalJSONBuf(buf fflib.EncodingBuffer) error
func (*Metrics) UnmarshalJSON ¶
func (*Metrics) UnmarshalJSONFFLexer ¶
type PromOut ¶
type PromOut struct {
// contains filtered or unexported fields
}
func (*PromOut) Collect ¶
func (p *PromOut) Collect(ch chan<- prometheus.Metric)
func (*PromOut) ConfigStruct ¶
func (p *PromOut) ConfigStruct() interface{}
func (*PromOut) Describe ¶
func (p *PromOut) Describe(ch chan<- *prometheus.Desc)
func (*PromOut) Run ¶
func (p *PromOut) Run(or pipeline.OutputRunner, ph pipeline.PluginHelper) (err error)
type PromOutConfig ¶
Click to show internal directories.
Click to hide internal directories.