Filip Petkovski
4da96ea26a
Implement reporting status classes in metrics ( #8548 )
...
This commit introduces a backwards compatible command line option
--report-status-classes which will enable reporting response status classes
(2xx, 3xx..) instead of status codes in exported metrics.
2022-05-21 11:18:00 -07:00
Ricardo Katz
3def835a6a
Jail/chroot nginx process inside controller container ( #8337 )
...
* Initial work on chrooting nginx process
* More improvements in chroot
* Fix charts and some file locations
* Fix symlink on non chrooted container
* fix psp test
* Add e2e tests to chroot image
* Fix logger
* Add internal logger in controller
* Fix overlay for chrooted tests
* Fix tests
* fix boilerplates
* Fix unittest to point to the right pid
* Fix PR review
2022-04-08 21:48:04 -07:00
Endre Kovács
86964b15a8
fix inconsistent-label-cardinality for prometheus metrics: nginx_ingress_controller_requests ( #8225 )
...
* fix inconsistent-label-cardinality
for prometheus metrics: nginx_ingress_controller_requests
* add host to collectorLabels only if metricsPerHost is true
2022-02-13 10:33:47 -08:00
naseemkullah
fbdfc6505b
feat(metrics): add path and method labels to requests counter ( #8201 )
2022-01-30 03:52:23 -08:00
serge-r
c0098f305c
Add ability to use custom prometheus buckets ( #7171 )
2022-01-14 17:27:41 -08:00
Léopold Jacquot
ddbb0be0a0
add canary backend name for requests metrics ( #7696 )
2021-09-26 10:54:22 -07:00
Ricardo Katz
d226d831bd
Update go version, modules and remove ioutil
2021-08-06 14:15:21 -03:00
Manuel Alejandro de Brito Fontes
d781d99797
Fixes for gosec
2020-12-04 20:29:07 -03:00
Manuel Alejandro de Brito Fontes
108637bb1c
Migrate to structured logging (klog)
2020-09-27 18:59:57 -03:00
Manuel Alejandro de Brito Fontes
cb86c5698c
Migrate to klog v2
2020-08-08 21:01:03 -04:00
Christian Hoffmeister
19770f5b41
Merge remote-tracking branch 'base/master' into fix/collect-metrics-if-metrics-per-host-false
2020-03-13 07:17:49 +01:00
Manuel Alejandro de Brito Fontes
9278f0cad2
Update metric dependencies ( #5023 )
2020-02-06 09:50:13 -03:00
Manuel Alejandro de Brito Fontes
a8a827a806
Remove prometheus socket before listen ( #4961 )
2020-01-25 14:52:51 -03:00
Christian Hoffmeister
3ee5161cca
Always collect metrics when --metrics-per-host=false
2019-05-31 12:31:10 +02:00
Sergio Morales
c38c66e00a
feature(collectors): Added services to collectorLabels and requests Countervec to capture the name of the kubernetes service used to serve the client request.
2019-05-27 11:19:42 -04:00
Bryan Boreham
f33a2090dd
Add a flag to make per-host metrics optional
...
When serving many hosts from one nginx, the metrics may become too
numerous for Prometheus. Add a flag to disable the host label, so
that metrics are totalled across all hosts.
2018-12-21 17:31:54 +00:00
Manuel Alejandro de Brito Fontes
68f344233b
Fix lint issues
2018-12-05 13:28:28 -03:00
Manuel Alejandro de Brito Fontes
2fa55eabf6
Replace glog with klog
2018-12-05 13:27:55 -03:00
Elvin Efendi
d8b928f501
remove already unused endpoint metric
2018-11-21 20:05:44 +04:00
Elvin Efendi
068d633e81
fix Status key conflic, fixes https://github.com/kubernetes/ingress-nginx/issues/3451
2018-11-21 20:03:15 +04:00
SataQiu
76aae20b64
fix the typos
2018-11-07 17:53:17 +08:00
mooncake
4b518ec03c
Fix some typos
...
Signed-off-by: mooncake <xcoder@tenxcloud.com>
2018-11-05 22:10:11 +08:00
xichengliudui
ed107a489a
Delete some extra words
2018-10-29 02:48:56 -04:00
Manuel de Brito Fontes
9766ad8f4b
Filter hostnames before creation of metrics
2018-09-22 14:25:57 -03:00
Elvin Efendi
2207d7694d
batch metrics and flush periodically
2018-08-18 13:17:21 -04:00
Manuel de Brito Fontes
b148f113ae
Use authbind to bind privileged ports
2018-08-05 11:18:50 -04:00
Manuel de Brito Fontes
010342aa58
Do not allow invalid latency values in metrics
2018-07-24 10:53:46 -04:00
Manuel de Brito Fontes
4c1e501074
Update prometheus labels
2018-07-16 15:52:17 -04:00
Manuel de Brito Fontes
1542a12764
Refactor controller metrics interface
2018-07-12 12:46:34 -04:00