Documentation ¶
Index ¶
- func NewClient(reg prometheus.Registerer, gath prometheus.Gatherer, nodeExporterPort int) metrics.Client
- type Client
- func (r *Client) Flags(flags *flag.FlagSet)
- func (r *Client) GetCounter(name string, labels map[string]string) metrics.Counter
- func (r *Client) GetGauge(name string, labels map[string]string) metrics.Gauge
- func (r *Client) GetHistogram(name string, labels map[string]string) metrics.Histogram
- func (r *Client) Help() string
- func (r *Client) Init() error
- func (r *Client) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(reg prometheus.Registerer, gath prometheus.Gatherer, nodeExporterPort int) metrics.Client
NewClient returns a prometheus metrics Client that wraps the existing registry.
Types ¶
type Client ¶
type Client struct { // Namespace is given as a prefix to all prometheus metrics. Namespace string // Port is the port to serve Prometheus metrics. If zero is passed, // the metrics HTTP server isn't started. Port int // NodeExporterPort is the port to serve node_exporter metrics on the // reflowlet. If zero is passed, the node_exporter daemon isn't // enabled. NodeExporterPort int // contains filtered or unexported fields }
func (*Client) GetCounter ¶
func (*Client) GetHistogram ¶
Click to show internal directories.
Click to hide internal directories.