Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// AgentID is the workspace agent ID to which to connect.
AgentID uuid.UUID `json:"agent_id"`
// BytesPerTick is the number of bytes to send to the agent per tick.
BytesPerTick int64 `json:"bytes_per_tick"`
// Duration is the total duration for which to send traffic to the agent.
Duration time.Duration `json:"duration"`
// TickInterval specifies the interval between ticks (that is, attempts to
// send data to workspace agents).
TickInterval time.Duration `json:"tick_interval"`
ReadMetrics ConnMetrics `json:"-"`
WriteMetrics ConnMetrics `json:"-"`
SSH bool `json:"ssh"`
}
type ConnMetrics ¶ added in v0.26.2
type Metrics ¶ added in v0.24.0
type Metrics struct {
BytesReadTotal prometheus.CounterVec
BytesWrittenTotal prometheus.CounterVec
ReadErrorsTotal prometheus.CounterVec
WriteErrorsTotal prometheus.CounterVec
ReadLatencySeconds prometheus.HistogramVec
WriteLatencySeconds prometheus.HistogramVec
LabelNames []string
}
func NewMetrics ¶ added in v0.24.0
func NewMetrics(reg prometheus.Registerer, labelNames ...string) *Metrics
func (*Metrics) ReadMetrics ¶ added in v0.26.2
func (m *Metrics) ReadMetrics(lvs ...string) ConnMetrics
func (*Metrics) WriteMetrics ¶ added in v0.26.2
func (m *Metrics) WriteMetrics(lvs ...string) ConnMetrics
Click to show internal directories.
Click to hide internal directories.