mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-05 13:02:54 +00:00
refactor: omit logging 200 OK on metrics route
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
|
map $status $omitOKs {
|
||||||
|
default 1;
|
||||||
|
~^[2][0][0] 0;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
|
access_log /dev/stdout combined if=$omitOKs;
|
||||||
location /metrics {
|
location /metrics {
|
||||||
vhost_traffic_status_display;
|
vhost_traffic_status_display;
|
||||||
vhost_traffic_status_display_format prometheus;
|
vhost_traffic_status_display_format prometheus;
|
||||||
|
|||||||
Reference in New Issue
Block a user