Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultFlushDuration = "10s" DefaultUserAgent = "cypress/1" DefaultInfluxUsername = "cypress" )
Variables ¶
View Source
var ErrInvalidMetric = errors.New("invalid metric")
Functions ¶
This section is empty.
Types ¶
type InfluxConfig ¶
type InfluxConfig struct {
Flush cypress.Duration
URL string
Username string
Password string
Database string
UserAgent string
}
func DefaultInfluxConfig ¶
func DefaultInfluxConfig() *InfluxConfig
func (*InfluxConfig) Export ¶
func (cfg *InfluxConfig) Export() *influxdb.Config
type MetricSink ¶
func NewMetricSink ¶
func NewMetricSink() *MetricSink
func (*MetricSink) Close ¶
func (ms *MetricSink) Close() error
func (*MetricSink) EnableInflux ¶
func (ms *MetricSink) EnableInflux(cfg *InfluxConfig) error
func (*MetricSink) FlushInflux ¶
func (ms *MetricSink) FlushInflux(cfg *InfluxConfig) error
func (*MetricSink) RunHTTP ¶
func (ms *MetricSink) RunHTTP(addr string) error
type Metrics ¶
type MetricsConfig ¶
type MetricsConfig struct {
HTTP string
Influx *InfluxConfig
}
Click to show internal directories.
Click to hide internal directories.