beehive: Index | Files

package prometheusbee

import ""

Package prometheusbee is a bee designed to expose metrics for scraping by Prometheus.


Package Files

prometheusbee.go prometheusbeefactory.go

type PrometheusBee Uses

type PrometheusBee struct {
    // contains filtered or unexported fields

PrometheusBee is a bee designed to expose metrics for scraping by Prometheus.

func (*PrometheusBee) Action Uses

func (mod *PrometheusBee) Action(action bees.Action) []bees.Placeholder

Action triggers the action passed to it.

func (*PrometheusBee) ReloadOptions Uses

func (mod *PrometheusBee) ReloadOptions(options bees.BeeOptions)

ReloadOptions parses the config options and initializes the Bee.

func (*PrometheusBee) Run Uses

func (mod *PrometheusBee) Run(eventChan chan bees.Event)

Run executes the Bee's event loop.

type PrometheusBeeFactory Uses

type PrometheusBeeFactory struct {

PrometheusBeeFactory is a factory for PrometheusBees.

func (*PrometheusBeeFactory) Actions Uses

func (factory *PrometheusBeeFactory) Actions() []bees.ActionDescriptor

Actions describes the available actions provided by this Bee.

func (*PrometheusBeeFactory) Description Uses

func (factory *PrometheusBeeFactory) Description() string

Description returns the description of this Bee.

func (*PrometheusBeeFactory) ID Uses

func (factory *PrometheusBeeFactory) ID() string

ID returns the ID of this Bee.

func (*PrometheusBeeFactory) Image Uses

func (factory *PrometheusBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*PrometheusBeeFactory) LogoColor Uses

func (factory *PrometheusBeeFactory) LogoColor() string

LogoColor returns the preferred logo background color (used by the admin interface).

func (*PrometheusBeeFactory) Name Uses

func (factory *PrometheusBeeFactory) Name() string

Name returns the name of this Bee.

func (*PrometheusBeeFactory) New Uses

func (factory *PrometheusBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*PrometheusBeeFactory) Options Uses

func (factory *PrometheusBeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

Package prometheusbee imports 4 packages (graph) and is imported by 3 packages. Updated 2019-05-03. Refresh now. Tools for package owners.