Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricToProm ¶
MetricToProm changes a map into a string.
Types ¶
type Icarus ¶
type Icarus struct { *sync.Mutex Store *IcarusStore Ticker *time.Ticker Chan chan util.Metric // contains filtered or unexported fields }
Icarus is like a prometheus store except it's easy to hurt yourself with.
func (*Icarus) HandleFunc ¶
func (i *Icarus) HandleFunc(w http.ResponseWriter, r *http.Request)
HandleFunc is an http handlefunc function. Apes a prometheus endpoint.
type IcarusStore ¶
IcarusStore holds sets of metrics and retires them as necessary.
func NewRollingStore ¶
func NewRollingStore(lookback int) *IcarusStore
Get back a new implementation of the rolling store
func (*IcarusStore) Dump ¶
func (r *IcarusStore) Dump() []util.Metric
Dump all the []Metrics in the rolling store.
func (*IcarusStore) Insert ¶
func (r *IcarusStore) Insert(met util.Metric)
Insert something into the current store in the rolling store
type ServePage ¶
ServePage holds a linked list of pages to serve over http.
func NewServePage ¶
func NewServePage() *ServePage
NewServePage generates a linked list of pages to serve.
Click to show internal directories.
Click to hide internal directories.