Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PushClient ¶
PushClient is used to send Prometheus metrics objects to any Prometheus Push Gateway. It stores the URL and the client that will be used to push to the desired gateway.
func (*PushClient) Push ¶
func (p *PushClient) Push(collectors ...prometheus.Collector) error
Push uses all the configuration settings from the client and pushes to the prometheus aggregation gateway. It takes in an additional list of collectors and pushes all of them to the previously configured url.
Click to show internal directories.
Click to hide internal directories.