Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPrometheusCollector ¶
func NewPrometheusCollector(namespace string, labels map[string]string) func(string) hystrix_metric.MetricCollector
NewPrometheusCollector returns wrapper function returning an implemented struct from MetricCollector.
Types ¶
type Options ¶
Options represents health options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
Prometheus represents a Prometheus plugin for hystrix.
func NewPrometheus ¶
func NewPrometheus() *Prometheus
NewPrometheus returns a new Prometheus plugin with default options.
func NewPrometheusWithConfigPath ¶
func NewPrometheusWithConfigPath(path string) (*Prometheus, error)
NewPrometheusWithConfigPath returns a new Prometheus plugin with options from config path.
func NewPrometheusWithOptions ¶
func NewPrometheusWithOptions(options *Options) *Prometheus
NewPrometheusWithOptions returns a new Prometheus plugin with options.
type PrometheusCollector ¶
PrometheusCollector is collecting information that is made from hystrix-go.
func (*PrometheusCollector) Reset ¶
func (c *PrometheusCollector) Reset()
Reset is to reset information (not call method).
func (*PrometheusCollector) Update ¶
func (c *PrometheusCollector) Update(r hystrix_metric.MetricResult)
Update is to update information from hystrix-go at this time.