Documentation ¶
Index ¶
- type Client
- func (c *Client) Close()
- func (c *Client) Collect(ch chan<- prometheus.Metric)
- func (c *Client) Describe(ch chan<- *prometheus.Desc)
- func (c *Client) HealthCheck() error
- func (c Client) Name() string
- func (c *Client) Read(req *prompb.ReadRequest) (*prompb.ReadResponse, error)
- func (c *Client) ReadOnly() bool
- func (c *Client) Write(samples model.Samples) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client sends Prometheus samples to PostgreSQL
func (*Client) Collect ¶
func (c *Client) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*Client) Describe ¶
func (c *Client) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
func (*Client) HealthCheck ¶
HealthCheck implements the healtcheck interface
func (*Client) Read ¶
func (c *Client) Read(req *prompb.ReadRequest) (*prompb.ReadResponse, error)
Read implements the Reader interface and reads metrics samples from the database
Click to show internal directories.
Click to hide internal directories.