Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory return a new receiver.Factory for receiver.
Types ¶
type Config ¶
type Config struct { // Protocols is the configuration for the supported protocols, currently gRPC and HTTP (Proto and JSON). Protocols `mapstructure:"protocols"` TimeThreshold int64 `mapstructure:"time_threshold"` }
Config defines configuration for the receiver.
type PrometheusRemoteWriteReceiver ¶
type PrometheusRemoteWriteReceiver struct {
// contains filtered or unexported fields
}
PrometheusRemoteWriteReceiver - remote write
func NewReceiver ¶
func NewReceiver(settings receiver.CreateSettings, config *Config, consumer consumer.Metrics) (*PrometheusRemoteWriteReceiver, error)
NewReceiver - remote write
func (*PrometheusRemoteWriteReceiver) ServeHTTP ¶
func (rec *PrometheusRemoteWriteReceiver) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Protocols ¶
type Protocols struct { GRPC *configgrpc.GRPCServerSettings `mapstructure:"grpc"` HTTP *confighttp.HTTPServerSettings `mapstructure:"http"` }
Protocols is the configuration for the supported protocols.
Click to show internal directories.
Click to hide internal directories.