Documentation ¶
Index ¶
- Variables
- func Escape(s string) string
- func PutPointIntoGlobalPool(p *Point)
- func ReportLoadResult(params *LoadReportParams, totalItems int64, valueRate float64, ...) error
- func ReportQueryResult(params *QueryReportParams, queryName string, minQueryTime float64, ...) error
- func TelemetryRunAsync(c *Collector, batchSize uint64, writeToStderr bool, skipN uint64) (src chan *Point, done chan struct{})
- type Collector
- type ExtraVal
- type Field
- type LoadReportParams
- type Point
- func (p *Point) AddBoolField(k string, x bool)
- func (p *Point) AddFloat64Field(k string, x float64)
- func (p *Point) AddInt64Field(k string, x int64)
- func (p *Point) AddIntField(k string, x int)
- func (p *Point) AddTag(k, v string)
- func (p *Point) Init(m string, ts int64)
- func (p *Point) Reset()
- func (p *Point) Serialize(w io.Writer)
- type QueryReportParams
- type ReportParams
- type Tag
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func PutPointIntoGlobalPool ¶
func PutPointIntoGlobalPool(p *Point)
func ReportLoadResult ¶
func ReportLoadResult(params *LoadReportParams, totalItems int64, valueRate float64, inputSpeed float64, loadDuration time.Duration, extraVals ...ExtraVal) error
ReportLoadResult send results from bulk load to an influxdb according to the given parameters
func ReportQueryResult ¶
func ReportQueryResult(params *QueryReportParams, queryName string, minQueryTime float64, meanQueryTime float64, maxQueryTime float64, totalQueries int64, queryDuration time.Duration, extraVals ...ExtraVal) error
ReportQueryResult send result from bulk query benchmark to an influxdb according to the given parameters
func TelemetryRunAsync ¶
func TelemetryRunAsync(c *Collector, batchSize uint64, writeToStderr bool, skipN uint64) (src chan *Point, done chan struct{})
TelemetryRunAsync runs a collection loop with many defaults already set. It will abort the program if an error occurs. Assumes points are owned by the GlobalPointPool.
Types ¶
type Collector ¶
type Collector struct { Points []*Point // contains filtered or unexported fields }
func NewCollector ¶
func NewCollectorV2 ¶
func (*Collector) CreateDatabase ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field represents an InfluxDB field. Users should prefer to keep the strings as long-lived items.
Implementor's note: this type uses more memory than is ideal, but it avoids unsafe and it avoids reflection.
func (*Field) SetFloat64 ¶
type LoadReportParams ¶
type LoadReportParams struct { ReportParams IsGzip bool BatchSize int }
LoadReportParams is holder of bulk load specific parameters
type Point ¶
Point wraps an InfluxDB point data. Its primary purpose is to be serialized out to a []byte. Users should prefer to keep the strings as long-lived items.
func GetPointFromGlobalPool ¶
func GetPointFromGlobalPool() *Point
func (*Point) AddBoolField ¶
func (*Point) AddFloat64Field ¶
func (*Point) AddInt64Field ¶
func (*Point) AddIntField ¶
type QueryReportParams ¶
type QueryReportParams struct { ReportParams BurnIn int64 }
type QueryReportParams is holder of bulk query specific parameters
type ReportParams ¶
type ReportParams struct { DBType string ReportDatabaseName string ReportHost string ReportUser string ReportPassword string ReportTags [][2]string Hostname string DestinationUrl string ReportOrgId string ReportAuthToken string Workers int ItemLimit int }
ReportParams is holder for common parameters across load and query reports