Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultArguments = func() Arguments { return Arguments{} } DefaultEndpointOptions = func() EndpointOptions { return EndpointOptions{ RemoteTimeout: 30 * time.Second, } } )
Functions ¶
func WithUserAgent ¶
func WithUserAgent(agent string) connect.ClientOption
WithUserAgent returns a `connect.ClientOption` that sets the User-Agent header on.
Types ¶
type Arguments ¶
type Arguments struct { ExternalLabels map[string]string `river:"external_labels,attr,optional"` Endpoints []*EndpointOptions `river:"endpoint,block,optional"` }
Arguments represents the input state of the phlare.write component.
func (*Arguments) UnmarshalRiver ¶
UnmarshalRiver implements river.Unmarshaler.
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component is the phlare.write component.
func NewComponent ¶
NewComponent creates a new phlare.write component.
type EndpointOptions ¶
type EndpointOptions struct { Name string `river:"name,attr,optional"` URL string `river:"url,attr"` RemoteTimeout time.Duration `river:"remote_timeout,attr,optional"` Headers map[string]string `river:"headers,attr,optional"` HTTPClientConfig *config.HTTPClientConfig `river:"http_client_config,block,optional"` }
EndpointOptions describes an individual location for where profiles should be delivered to using the Phlare push API.
func (*EndpointOptions) UnmarshalRiver ¶
func (r *EndpointOptions) UnmarshalRiver(f func(v interface{}) error) error
UnmarshalRiver implements river.Unmarshaler.
type Exports ¶
type Exports struct {
Receiver phlare.Appendable `river:"receiver,attr"`
}
Exports are the set of fields exposed by the phlare.write component.
Click to show internal directories.
Click to hide internal directories.