Documentation ¶
Index ¶
- type Client
- func (p *Client) Delete() error
- func (p *Client) Push() error
- func (p *Client) SetGroupingKey(groupingKey string) *Client
- func (p *Client) SetGroupingValue(groupingValue string) *Client
- func (p *Client) SetHelp(help string) *Client
- func (p *Client) SetName(name string) *Client
- func (p *Client) SetValue(value float64) *Client
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 is a struct for push gateway operations
func New ¶
New creates a Client for pushgateway operations and returns an error if pushgateway environment variable is not Set properly.
func (*Client) SetGroupingKey ¶
SetGroupingKey Sets the prometheus grouping key
func (*Client) SetGroupingValue ¶
SetGroupingValue Sets the prometheus grouping value
Click to show internal directories.
Click to hide internal directories.