Documentation ¶
Index ¶
- func NewNginxMetricsClient(httpClient *http.Client) (*prometheusClient.NginxClient, error)
- func RunPrometheusListenerForNginx(port int, client *prometheusClient.NginxClient, registry *prometheus.Registry)
- func RunPrometheusListenerForNginxPlus(port int, plusClient *sdkClient.NginxClient, registry *prometheus.Registry)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNginxMetricsClient ¶
func NewNginxMetricsClient(httpClient *http.Client) (*prometheusClient.NginxClient, error)
NewNginxMetricsClient creates an NginxClient to fetch stats from NGINX over an unix socket
func RunPrometheusListenerForNginx ¶
func RunPrometheusListenerForNginx(port int, client *prometheusClient.NginxClient, registry *prometheus.Registry)
RunPrometheusListenerForNginx runs an http server to expose Prometheus metrics for NGINX
func RunPrometheusListenerForNginxPlus ¶
func RunPrometheusListenerForNginxPlus(port int, plusClient *sdkClient.NginxClient, registry *prometheus.Registry)
RunPrometheusListenerForNginxPlus runs an http server to expose Prometheus metrics for NGINX Plus
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.