-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Ingress Controller Prometheus metrics
- Loading branch information
Raul Marrero
committed
May 2, 2019
1 parent
5f3c27a
commit b8bbbdb
Showing
12 changed files
with
344 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Monitoring the Ingress Controller Using Prometheus | ||
|
||
The Ingress Controller exposes a number of metrics in the [Prometheus](https://prometheus.io/) format. Those include NGINX/NGINX Plus and the Ingress Controller metrics. | ||
|
||
## Enabling Metrics | ||
To enable Prometheus metrics, follow the [Support For Prometheus Monitoring](./installation.md#support-for-prometheus-monitoring) section of the installation doc. Once enabled, the metrics will be available via the configured endpoint. | ||
|
||
## Available Metrics | ||
The Ingress Controller exports the following metrics: | ||
|
||
* NGINX/NGINX Plus metrics. Please see this [doc](https://github.com/nginxinc/nginx-prometheus-exporter#exported-metrics) to find more information about the exported metrics. | ||
|
||
* Ingress Controller metrics | ||
* `controller_nginx_reloads_total`. Number of successful NGINX reloads. | ||
* `controller_nginx_reload_errors_total`. Number of unsuccessful NGINX reloads. | ||
* `controller_nginx_last_reload_status`. Status of the last NGINX reload, 0 meaning down and 1 up. | ||
* `controller_nginx_last_reload_milliseconds`. Duration in milliseconds of the last NGINX reload. | ||
* `controller_ingress_resources_total`. Number of handled Ingress resources. This metric includes the label type, that groups the Ingress resources by their type (regular, [minion or master](./../examples/mergeable-ingress-types)) | ||
|
||
**Note**: all metrics have the namespace nginx_ingress. For example, nginx_ingress_controller_nginx_reloads_total. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package collectors | ||
|
||
const metricsNamespace = "nginx_ingress_controller" |
Oops, something went wrong.