Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFreePort ¶
func New ¶
func New( settings receiver.CreateSettings, config *Config, nextConsumer consumer.Metrics, ) (receiver.Metrics, error)
New creates the PrometheusRemoteWrite receiver with the given parameters.
func NewFactory ¶
Types ¶
type Config ¶
type Config struct { // ListenPath is the path in which the receiver should respond to prometheus remote write requests. ListenPath string `mapstructure:"path"` // provides generic settings for connecting to HTTP servers as commonly used in opentelemetry confighttp.HTTPServerSettings `mapstructure:",squash"` // BufferSize is the degree to which metric translations may be buffered without blocking further write requests. BufferSize int `mapstructure:"buffer_size"` // CacheCapacity determines LRU capacity for how many different metrics may concurrently have persisted metadata. CacheCapacity int `mapstructure:"cache_size"` }
type MockPrwClient ¶
type MockPrwClient struct { Client remote.WriteClient Timeout time.Duration }
func NewMockPrwClient ¶
func NewMockPrwClient(addr string, path string) (MockPrwClient, error)
func (*MockPrwClient) SendWriteRequest ¶
func (prwc *MockPrwClient) SendWriteRequest(wr *prompb.WriteRequest) error
type ServerConfig ¶
type ServerConfig struct { Reporter reporter component.Host Mc chan<- pmetric.Metrics component.TelemetrySettings Path string confighttp.HTTPServerSettings }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.