Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NginxCollector ¶
type NginxCollector struct {
// contains filtered or unexported fields
}
NginxCollector collects NGINX metrics. It implements prometheus.Collector interface.
func NewNginxCollector ¶
func NewNginxCollector(nginxClient *client.NginxClient, namespace string) *NginxCollector
NewNginxCollector creates an NginxCollector.
func (*NginxCollector) Collect ¶
func (c *NginxCollector) Collect(ch chan<- prometheus.Metric)
Collect fetches metrics from NGINX and sends them to the provided channel.
func (*NginxCollector) Describe ¶
func (c *NginxCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of NGINX metrics to the provided channel.
type NginxPlusCollector ¶
type NginxPlusCollector struct {
// contains filtered or unexported fields
}
NginxPlusCollector collects NGINX Plus metrics. It implements prometheus.Collector interface.
func NewNginxPlusCollector ¶
func NewNginxPlusCollector(nginxClient *plusclient.NginxClient, namespace string) *NginxPlusCollector
NewNginxPlusCollector creates an NginxPlusCollector.
func (*NginxPlusCollector) Collect ¶
func (c *NginxPlusCollector) Collect(ch chan<- prometheus.Metric)
Collect fetches metrics from NGINX Plus and sends them to the provided channel.
func (*NginxPlusCollector) Describe ¶
func (c *NginxPlusCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of NGINX Plus metrics to the provided channel.