generated from nginx/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 101
Closed
Labels
enhancementNew feature or requestNew feature or requestproduct/nginx-oneNGINX One ConsoleNGINX One Console
Description
Is your feature request related to a problem? Please describe
Users need info on how to get response codes.
It starts with metrics, as defined https://docs.nginx.com/nginx-one/nginx-configs/metrics/enable-metrics/
Keep it on the metrics page. Do not include in Get started doc
server {
listen 8080;
# - add response header
add_header "x-datapath-instance" "<datapath_id>" always;
default_type text/plain;
location / {
status_zone systest_loc_200;
return 200 "hello from datapath <datapath_id>\n";
}
location /4xx {
status_zone systest_loc_4xx;
return 400 "fake 400 from datapath <datapath_id>\n";
}
location /5xx {
status_zone systest_loc_5xx;
return 500 "fake 500 from datapath <datapath_id>\n";
}
}
Describe the solution you'd like
Set up a section on response codes at the end of the noted doc page, https://docs.nginx.com/nginx-one/nginx-configs/metrics/enable-metrics/
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestproduct/nginx-oneNGINX One ConsoleNGINX One Console