|  | 
| 35 | 35 |  "# TYPE nginx_vts_server_bytes_total counter\n" \ | 
| 36 | 36 |  "# HELP nginx_vts_server_requests_total requests counter\n" \ | 
| 37 | 37 |  "# TYPE nginx_vts_server_requests_total counter\n" \ | 
| 38 |  | - "# HELP nginx_vts_server_request_msecs_total request processing "  \ | 
| 39 |  | - "time in milliseconds counter\n" \ | 
| 40 |  | - "# TYPE nginx_vts_server_request_msecs_total counter\n"  \ | 
| 41 |  | - "# HELP nginx_vts_server_request_msecs average of request "  \ | 
| 42 |  | - "processing times in milliseconds\n" \ | 
| 43 |  | - "# TYPE nginx_vts_server_request_msecs gauge\n" | 
|  | 38 | + "# HELP nginx_vts_server_request_seconds_total request processing " \ | 
|  | 39 | + "time in seconds\n"  \ | 
|  | 40 | + "# TYPE nginx_vts_server_request_seconds_total counter\n" \ | 
|  | 41 | + "# HELP nginx_vts_server_request_seconds average of request " \ | 
|  | 42 | + "processing times in seconds\n"  \ | 
|  | 43 | + "# TYPE nginx_vts_server_request_seconds gauge\n" | 
| 44 | 44 | 
 | 
| 45 | 45 | #define NGX_HTTP_VHOST_TRAFFIC_STATUS_PROMETHEUS_FMT_SERVER \ | 
| 46 | 46 |  "nginx_vts_server_bytes_total{host=\"%V\",direction=\"in\"} %uA\n" \ | 
|  | 
| 51 | 51 |  "nginx_vts_server_requests_total{host=\"%V\",code=\"4xx\"} %uA\n" \ | 
| 52 | 52 |  "nginx_vts_server_requests_total{host=\"%V\",code=\"5xx\"} %uA\n" \ | 
| 53 | 53 |  "nginx_vts_server_requests_total{host=\"%V\",code=\"total\"} %uA\n" \ | 
| 54 |  | - "nginx_vts_server_request_msecs_total{host=\"%V\"} %uA\n"  \ | 
| 55 |  | - "nginx_vts_server_request_msecs{host=\"%V\"} %M\n" | 
|  | 54 | + "nginx_vts_server_request_seconds_total{host=\"%V\"} %.3f\n" \ | 
|  | 55 | + "nginx_vts_server_request_seconds{host=\"%V\"} %.3f\n" | 
| 56 | 56 | 
 | 
| 57 | 57 | #if (NGX_HTTP_CACHE) | 
| 58 | 58 | #define NGX_HTTP_VHOST_TRAFFIC_STATUS_PROMETHEUS_FMT_SERVER_CACHE_S \ | 
|  | 
| 75 | 75 |  "# TYPE nginx_vts_filter_bytes_total counter\n" \ | 
| 76 | 76 |  "# HELP nginx_vts_filter_requests_total requests counter\n" \ | 
| 77 | 77 |  "# TYPE nginx_vts_filter_requests_total counter\n" \ | 
| 78 |  | - "# HELP nginx_vts_filter_request_msecs_total request processing "  \ | 
| 79 |  | - "time in milliseconds counter\n" \ | 
| 80 |  | - "# TYPE nginx_vts_filter_request_msecs_total counter\n"  \ | 
| 81 |  | - "# HELP nginx_vts_filter_request_msecs average of request processing "  \ | 
| 82 |  | - "times in milliseconds\n" \ | 
| 83 |  | - "# TYPE nginx_vts_filter_request_msecs gauge\n" | 
|  | 78 | + "# HELP nginx_vts_filter_request_seconds_total request processing " \ | 
|  | 79 | + "time in seconds counter\n"  \ | 
|  | 80 | + "# TYPE nginx_vts_filter_request_seconds_total counter\n" \ | 
|  | 81 | + "# HELP nginx_vts_filter_request_seconds average of request processing " \ | 
|  | 82 | + "times in seconds\n"  \ | 
|  | 83 | + "# TYPE nginx_vts_filter_request_seconds gauge\n" | 
| 84 | 84 | 
 | 
| 85 | 85 | #define NGX_HTTP_VHOST_TRAFFIC_STATUS_PROMETHEUS_FMT_FILTER \ | 
| 86 | 86 |  "nginx_vts_filter_bytes_total{filter=\"%V\",filter_name=\"%V\"," \ | 
|  | 
| 99 | 99 |  "direction=\"5xx\"} %uA\n" \ | 
| 100 | 100 |  "nginx_vts_filter_requests_total{filter=\"%V\",filter_name=\"%V\"," \ | 
| 101 | 101 |  "direction=\"total\"} %uA\n" \ | 
| 102 |  | - "nginx_vts_filter_request_msecs_total{filter=\"%V\","  \ | 
| 103 |  | - "filter_name=\"%V\"} %uA\n"  \ | 
| 104 |  | - "nginx_vts_filter_request_msecs{filter=\"%V\",filter_name=\"%V\"} %M\n" | 
|  | 102 | + "nginx_vts_filter_request_seconds_total{filter=\"%V\"," \ | 
|  | 103 | + "filter_name=\"%V\"} %.3f\n" \ | 
|  | 104 | + "nginx_vts_filter_request_seconds{filter=\"%V\",filter_name=\"%V\"} %.3f\n" | 
| 105 | 105 | 
 | 
| 106 | 106 | #if (NGX_HTTP_CACHE) | 
| 107 | 107 | #define NGX_HTTP_VHOST_TRAFFIC_STATUS_PROMETHEUS_FMT_FILTER_CACHE_S \ | 
|  | 
| 132 | 132 |  "# TYPE nginx_vts_upstream_bytes_total counter\n" \ | 
| 133 | 133 |  "# HELP nginx_vts_upstream_requests_total upstream requests counter\n" \ | 
| 134 | 134 |  "# TYPE nginx_vts_upstream_requests_total counter\n" \ | 
| 135 |  | - "# HELP nginx_vts_upstream_request_msecs_total request "  \ | 
| 136 |  | - "processing time including upstream in milliseconds counter\n" \ | 
| 137 |  | - "# TYPE nginx_vts_upstream_request_msecs_total counter\n"  \ | 
| 138 |  | - "# HELP nginx_vts_upstream_request_msecs average of request "  \ | 
| 139 |  | - "processing times including upstream in milliseconds\n" \ | 
| 140 |  | - "# TYPE nginx_vts_upstream_request_msecs gauge\n"  \ | 
| 141 |  | - "# HELP nginx_vts_upstream_response_msecs_total only upstream "  \ | 
| 142 |  | - "response processing time in milliseconds counter\n" \ | 
| 143 |  | - "# TYPE nginx_vts_upstream_response_msecs_total counter\n"  \ | 
| 144 |  | - "# HELP nginx_vts_upstream_response_msecs average of only "  \ | 
| 145 |  | - "upstream response processing times in milliseconds\n" \ | 
| 146 |  | - "# TYPE nginx_vts_upstream_response_msecs gauge\n" | 
|  | 135 | + "# HELP nginx_vts_upstream_request_seconds_total request " \ | 
|  | 136 | + "processing time including upstream in seconds counter\n"  \ | 
|  | 137 | + "# TYPE nginx_vts_upstream_request_seconds_total counter\n" \ | 
|  | 138 | + "# HELP nginx_vts_upstream_request_seconds average of request " \ | 
|  | 139 | + "processing times including upstream in seconds\n"  \ | 
|  | 140 | + "# TYPE nginx_vts_upstream_request_seconds gauge\n" \ | 
|  | 141 | + "# HELP nginx_vts_upstream_response_seconds_total only upstream " \ | 
|  | 142 | + "response processing time in seconds counter\n"  \ | 
|  | 143 | + "# TYPE nginx_vts_upstream_response_seconds_total counter\n" \ | 
|  | 144 | + "# HELP nginx_vts_upstream_response_seconds average of only " \ | 
|  | 145 | + "upstream response processing times in seconds\n"  \ | 
|  | 146 | + "# TYPE nginx_vts_upstream_response_seconds gauge\n" | 
| 147 | 147 | 
 | 
| 148 | 148 | #define NGX_HTTP_VHOST_TRAFFIC_STATUS_PROMETHEUS_FMT_UPSTREAM \ | 
| 149 | 149 |  "nginx_vts_upstream_bytes_total{upstream=\"%V\",backend=\"%V\"," \ | 
|  | 
| 162 | 162 |  "code=\"5xx\"} %uA\n" \ | 
| 163 | 163 |  "nginx_vts_upstream_requests_total{upstream=\"%V\",backend=\"%V\"," \ | 
| 164 | 164 |  "code=\"total\"} %uA\n" \ | 
| 165 |  | - "nginx_vts_upstream_request_msecs_total{upstream=\"%V\","  \ | 
| 166 |  | - "backend=\"%V\"} %uA\n"  \ | 
| 167 |  | - "nginx_vts_upstream_request_msecs{upstream=\"%V\","  \ | 
| 168 |  | - "backend=\"%V\"} %M\n"  \ | 
| 169 |  | - "nginx_vts_upstream_response_msecs_total{upstream=\"%V\","  \ | 
| 170 |  | - "backend=\"%V\"} %uA\n"  \ | 
| 171 |  | - "nginx_vts_upstream_response_msecs{upstream=\"%V\",backend=\"%V\"} %M\n" | 
|  | 165 | + "nginx_vts_upstream_request_seconds_total{upstream=\"%V\"," \ | 
|  | 166 | + "backend=\"%V\"} %.3f\n" \ | 
|  | 167 | + "nginx_vts_upstream_request_seconds{upstream=\"%V\"," \ | 
|  | 168 | + "backend=\"%V\"} %.3f\n" \ | 
|  | 169 | + "nginx_vts_upstream_response_seconds_total{upstream=\"%V\"," \ | 
|  | 170 | + "backend=\"%V\"} %.3f\n" \ | 
|  | 171 | + "nginx_vts_upstream_response_seconds{upstream=\"%V\",backend=\"%V\"} %.3f\n" | 
| 172 | 172 | 
 | 
| 173 | 173 | #if (NGX_HTTP_CACHE) | 
| 174 | 174 | #define NGX_HTTP_VHOST_TRAFFIC_STATUS_PROMETHEUS_FMT_CACHE_S \ | 
|  | 
0 commit comments