Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client allows sending batches of Prometheus samples to Graphite.
func (*Client) Read ¶
func (c *Client) Read(req *prompb.ReadRequest, r *http.Request) (*prompb.ReadResponse, error)
Read implements the client.Reader interface.
type Datapoint ¶
Datapoint pairs a timestamp to a value.
func (*Datapoint) UnmarshalJSON ¶
UnmarshalJSON unmarshals a Datapoint from json
type ExpandResponse ¶
type ExpandResponse struct {
Results []string `yaml:"results,omitempty" json:"results,omitempty"`
}
ExpandResponse is a parsed response of graphite expand endpoint.
type RenderResponse ¶
type RenderResponse struct { Target string `yaml:"target,omitempty" json:"target,omitempty"` Datapoints []*Datapoint `yaml:"datapoints,omitempty" json:"datapoints,omitempty"` Tags Tags `yaml:"tags,omitempty" json:"tags,omitempty"` }
RenderResponse is a single parsed element of graphite render endpoint.
Click to show internal directories.
Click to hide internal directories.