Skip to content

Instantly share code, notes, and snippets.

@l2dy
Created February 8, 2025 02:54
Show Gist options
  • Save l2dy/98fcee1d43cca8332b1e516964050c19 to your computer and use it in GitHub Desktop.
Save l2dy/98fcee1d43cca8332b1e516964050c19 to your computer and use it in GitHub Desktop.
Comparison of Prometheus metrics Angie and vozlt/nginx-module-vts provides
# Angie Prometheus template "all"
# HELP angie_connections_accepted The total number of accepted client connections.
# TYPE angie_connections_accepted counter
angie_connections_accepted 204
# HELP angie_connections_dropped The total number of dropped client connections.
# TYPE angie_connections_dropped counter
angie_connections_dropped 0
# HELP angie_connections_active The current number of active client connections.
# TYPE angie_connections_active gauge
angie_connections_active 1
# HELP angie_connections_idle The current number of idle client connections.
# TYPE angie_connections_idle gauge
angie_connections_idle 1
# HELP angie_slabs_pages_used The number of currently used memory pages in a slab zone.
# TYPE angie_slabs_pages_used gauge
angie_slabs_pages_used{zone="ngx_http_vhost_traffic_status"} 8
angie_slabs_pages_used{zone="local_zone"} 7
# HELP angie_slabs_pages_free The number of currently free memory pages in a slab zone.
# TYPE angie_slabs_pages_free gauge
angie_slabs_pages_free{zone="ngx_http_vhost_traffic_status"} 245
angie_slabs_pages_free{zone="local_zone"} 25443
# HELP angie_slabs_pages_slots_used The number of currently used memory slots of a specific size in a slab zone.
# TYPE angie_slabs_pages_slots_used gauge
angie_slabs_pages_slots_used{zone="ngx_http_vhost_traffic_status",size="32"} 1
angie_slabs_pages_slots_used{zone="ngx_http_vhost_traffic_status",size="64"} 2
angie_slabs_pages_slots_used{zone="local_zone",size="8"} 2
angie_slabs_pages_slots_used{zone="local_zone",size="16"} 3
angie_slabs_pages_slots_used{zone="local_zone",size="32"} 3
angie_slabs_pages_slots_used{zone="local_zone",size="128"} 6
angie_slabs_pages_slots_used{zone="local_zone",size="512"} 2
# HELP angie_slabs_pages_slots_free The number of currently free memory slots of a specific size in a slab zone.
# TYPE angie_slabs_pages_slots_free gauge
angie_slabs_pages_slots_free{zone="ngx_http_vhost_traffic_status",size="32"} 126
angie_slabs_pages_slots_free{zone="ngx_http_vhost_traffic_status",size="64"} 62
angie_slabs_pages_slots_free{zone="local_zone",size="8"} 502
angie_slabs_pages_slots_free{zone="local_zone",size="16"} 251
angie_slabs_pages_slots_free{zone="local_zone",size="32"} 124
angie_slabs_pages_slots_free{zone="local_zone",size="128"} 26
angie_slabs_pages_slots_free{zone="local_zone",size="512"} 6
# HELP angie_slabs_pages_slots_reqs The total number of attempts to allocate a memory slot of a specific size in a slab zone.
# TYPE angie_slabs_pages_slots_reqs counter
angie_slabs_pages_slots_reqs{zone="ngx_http_vhost_traffic_status",size="32"} 1
angie_slabs_pages_slots_reqs{zone="ngx_http_vhost_traffic_status",size="64"} 2
angie_slabs_pages_slots_reqs{zone="local_zone",size="8"} 2
angie_slabs_pages_slots_reqs{zone="local_zone",size="16"} 3
angie_slabs_pages_slots_reqs{zone="local_zone",size="32"} 3
angie_slabs_pages_slots_reqs{zone="local_zone",size="128"} 6
angie_slabs_pages_slots_reqs{zone="local_zone",size="512"} 2
# HELP angie_slabs_pages_slots_fails The number of unsuccessful attempts to allocate a memory slot of a specific size in a slab zone.
# TYPE angie_slabs_pages_slots_fails counter
angie_slabs_pages_slots_fails{zone="ngx_http_vhost_traffic_status",size="32"} 0
angie_slabs_pages_slots_fails{zone="ngx_http_vhost_traffic_status",size="64"} 0
angie_slabs_pages_slots_fails{zone="local_zone",size="8"} 0
angie_slabs_pages_slots_fails{zone="local_zone",size="16"} 0
angie_slabs_pages_slots_fails{zone="local_zone",size="32"} 0
angie_slabs_pages_slots_fails{zone="local_zone",size="128"} 0
angie_slabs_pages_slots_fails{zone="local_zone",size="512"} 0
# HELP angie_http_server_zones_requests_total The total number of client requests received in an HTTP server zone.
# TYPE angie_http_server_zones_requests_total counter
angie_http_server_zones_requests_total{zone="host_zone"} 0
angie_http_server_zones_requests_total{zone="localhost"} 115
# HELP angie_http_server_zones_requests_processing The number of client requests currently being processed in an HTTP server zone.
# TYPE angie_http_server_zones_requests_processing gauge
angie_http_server_zones_requests_processing{zone="host_zone"} 0
angie_http_server_zones_requests_processing{zone="localhost"} 1
# HELP angie_http_server_zones_requests_discarded The total number of client requests completed in an HTTP server zone without sending a response.
# TYPE angie_http_server_zones_requests_discarded counter
angie_http_server_zones_requests_discarded{zone="host_zone"} 0
angie_http_server_zones_requests_discarded{zone="localhost"} 0
# HELP angie_http_server_zones_responses The number of responses with a specific status in an HTTP server zone.
# TYPE angie_http_server_zones_responses counter
angie_http_server_zones_responses{zone="localhost",code="200"} 101
angie_http_server_zones_responses{zone="localhost",code="304"} 5
angie_http_server_zones_responses{zone="localhost",code="404"} 8
# HELP angie_http_server_zones_data_received The total number of bytes received from clients in an HTTP server zone.
# TYPE angie_http_server_zones_data_received counter
angie_http_server_zones_data_received{zone="host_zone"} 0
angie_http_server_zones_data_received{zone="localhost"} 13121
# HELP angie_http_server_zones_data_sent The total number of bytes sent to clients in an HTTP server zone.
# TYPE angie_http_server_zones_data_sent counter
angie_http_server_zones_data_sent{zone="host_zone"} 0
angie_http_server_zones_data_sent{zone="localhost"} 19503
# HELP angie_http_upstreams_peers_state The current state of an upstream peer in "HTTP": 1 - up, 2 - down, 3 - unavailable, or 4 - recovering.
# TYPE angie_http_upstreams_peers_state gauge
angie_http_upstreams_peers_state{upstream="local",peer="127.0.0.1:8080"} 1
angie_http_upstreams_peers_state{upstream="local",peer="127.0.0.1:8081"} 1
# HELP angie_http_upstreams_peers_selected_current The number of requests currently being processed by an upstream peer in "HTTP".
# TYPE angie_http_upstreams_peers_selected_current gauge
angie_http_upstreams_peers_selected_current{upstream="local",peer="127.0.0.1:8080"} 0
angie_http_upstreams_peers_selected_current{upstream="local",peer="127.0.0.1:8081"} 0
# HELP angie_http_upstreams_peers_selected_total The total number of attempts to use an upstream peer in "HTTP".
# TYPE angie_http_upstreams_peers_selected_total counter
angie_http_upstreams_peers_selected_total{upstream="local",peer="127.0.0.1:8080"} 51
angie_http_upstreams_peers_selected_total{upstream="local",peer="127.0.0.1:8081"} 50
# HELP angie_http_upstreams_peers_responses The number of responses with a specific status received from an upstream peer in "HTTP".
# TYPE angie_http_upstreams_peers_responses counter
angie_http_upstreams_peers_responses{upstream="local",peer="127.0.0.1:8080",code="200"} 51
angie_http_upstreams_peers_responses{upstream="local",peer="127.0.0.1:8081",code="200"} 50
# HELP angie_http_upstreams_peers_data_sent The total number of bytes sent to an upstream peer in "HTTP".
# TYPE angie_http_upstreams_peers_data_sent counter
angie_http_upstreams_peers_data_sent{upstream="local",peer="127.0.0.1:8080"} 4692
angie_http_upstreams_peers_data_sent{upstream="local",peer="127.0.0.1:8081"} 4600
# HELP angie_http_upstreams_peers_data_received The total number of bytes received from an upstream peer in "HTTP".
# TYPE angie_http_upstreams_peers_data_received counter
angie_http_upstreams_peers_data_received{upstream="local",peer="127.0.0.1:8080"} 7905
angie_http_upstreams_peers_data_received{upstream="local",peer="127.0.0.1:8081"} 7750
# HELP angie_http_upstreams_peers_health_fails The total number of unsuccessful attempts to communicate with an upstream peer in "HTTP".
# TYPE angie_http_upstreams_peers_health_fails counter
angie_http_upstreams_peers_health_fails{upstream="local",peer="127.0.0.1:8080"} 0
angie_http_upstreams_peers_health_fails{upstream="local",peer="127.0.0.1:8081"} 0
# HELP angie_http_upstreams_peers_health_unavailable The number of times when an upstream peer in "HTTP" became "unavailable" due to reaching the max_fails limit.
# TYPE angie_http_upstreams_peers_health_unavailable counter
angie_http_upstreams_peers_health_unavailable{upstream="local",peer="127.0.0.1:8080"} 0
angie_http_upstreams_peers_health_unavailable{upstream="local",peer="127.0.0.1:8081"} 0
# HELP angie_http_upstreams_peers_health_downtime The total time (in milliseconds) that an upstream peer in "HTTP" was "unavailable".
# TYPE angie_http_upstreams_peers_health_downtime counter
angie_http_upstreams_peers_health_downtime{upstream="local",peer="127.0.0.1:8080"} 0
angie_http_upstreams_peers_health_downtime{upstream="local",peer="127.0.0.1:8081"} 0
# HELP angie_http_upstreams_keepalive The number of currently cached keepalive connections for an HTTP upstream.
# TYPE angie_http_upstreams_keepalive gauge
angie_http_upstreams_keepalive{upstream="local"} 0
# HELP nginx_vts_info Nginx info
# TYPE nginx_vts_info gauge
nginx_vts_info{hostname="fd9c75edce58",module_version="v0.2.3",version="1.27.3"} 1
# HELP nginx_vts_start_time_seconds Nginx start time
# TYPE nginx_vts_start_time_seconds gauge
nginx_vts_start_time_seconds 1738983221.252
# HELP nginx_vts_main_connections Nginx connections
# TYPE nginx_vts_main_connections gauge
nginx_vts_main_connections{status="accepted"} 205
nginx_vts_main_connections{status="active"} 2
nginx_vts_main_connections{status="handled"} 205
nginx_vts_main_connections{status="reading"} 0
nginx_vts_main_connections{status="requests"} 217
nginx_vts_main_connections{status="waiting"} 1
nginx_vts_main_connections{status="writing"} 1
# HELP nginx_vts_main_shm_usage_bytes Shared memory [ngx_http_vhost_traffic_status] info
# TYPE nginx_vts_main_shm_usage_bytes gauge
nginx_vts_main_shm_usage_bytes{shared="max_size"} 1048575
nginx_vts_main_shm_usage_bytes{shared="used_size"} 21178
nginx_vts_main_shm_usage_bytes{shared="used_node"} 6
# HELP nginx_vts_server_bytes_total The request/response bytes
# TYPE nginx_vts_server_bytes_total counter
# HELP nginx_vts_server_requests_total The requests counter
# TYPE nginx_vts_server_requests_total counter
# HELP nginx_vts_server_request_seconds_total The request processing time in seconds
# TYPE nginx_vts_server_request_seconds_total counter
# HELP nginx_vts_server_request_seconds The average of request processing times in seconds
# TYPE nginx_vts_server_request_seconds gauge
# HELP nginx_vts_server_request_duration_seconds The histogram of request processing time
# TYPE nginx_vts_server_request_duration_seconds histogram
# HELP nginx_vts_server_cache_total The requests cache counter
# TYPE nginx_vts_server_cache_total counter
nginx_vts_server_bytes_total{host="localhost",direction="in"} 22489
nginx_vts_server_bytes_total{host="localhost",direction="out"} 44226
nginx_vts_server_requests_total{host="localhost",code="1xx"} 0
nginx_vts_server_requests_total{host="localhost",code="2xx"} 203
nginx_vts_server_requests_total{host="localhost",code="3xx"} 5
nginx_vts_server_requests_total{host="localhost",code="4xx"} 8
nginx_vts_server_requests_total{host="localhost",code="5xx"} 0
nginx_vts_server_request_seconds_total{host="localhost"} 0.004
nginx_vts_server_request_seconds{host="localhost"} 0.000
nginx_vts_server_cache_total{host="localhost",status="miss"} 0
nginx_vts_server_cache_total{host="localhost",status="bypass"} 0
nginx_vts_server_cache_total{host="localhost",status="expired"} 0
nginx_vts_server_cache_total{host="localhost",status="stale"} 0
nginx_vts_server_cache_total{host="localhost",status="updating"} 0
nginx_vts_server_cache_total{host="localhost",status="revalidated"} 0
nginx_vts_server_cache_total{host="localhost",status="hit"} 0
nginx_vts_server_cache_total{host="localhost",status="scarce"} 0
nginx_vts_server_bytes_total{host="*",direction="in"} 22489
nginx_vts_server_bytes_total{host="*",direction="out"} 44226
nginx_vts_server_requests_total{host="*",code="1xx"} 0
nginx_vts_server_requests_total{host="*",code="2xx"} 203
nginx_vts_server_requests_total{host="*",code="3xx"} 5
nginx_vts_server_requests_total{host="*",code="4xx"} 8
nginx_vts_server_requests_total{host="*",code="5xx"} 0
nginx_vts_server_request_seconds_total{host="*"} 0.004
nginx_vts_server_request_seconds{host="*"} 0.000
nginx_vts_server_cache_total{host="*",status="miss"} 0
nginx_vts_server_cache_total{host="*",status="bypass"} 0
nginx_vts_server_cache_total{host="*",status="expired"} 0
nginx_vts_server_cache_total{host="*",status="stale"} 0
nginx_vts_server_cache_total{host="*",status="updating"} 0
nginx_vts_server_cache_total{host="*",status="revalidated"} 0
nginx_vts_server_cache_total{host="*",status="hit"} 0
nginx_vts_server_cache_total{host="*",status="scarce"} 0
# HELP nginx_vts_filter_bytes_total The request/response bytes
# TYPE nginx_vts_filter_bytes_total counter
# HELP nginx_vts_filter_requests_total The requests counter
# TYPE nginx_vts_filter_requests_total counter
# HELP nginx_vts_filter_request_seconds_total The request processing time in seconds counter
# TYPE nginx_vts_filter_request_seconds_total counter
# HELP nginx_vts_filter_request_seconds The average of request processing times in seconds
# TYPE nginx_vts_filter_request_seconds gauge
# HELP nginx_vts_filter_request_duration_seconds The histogram of request processing time
# TYPE nginx_vts_filter_request_duration_seconds histogram
# HELP nginx_vts_filter_cache_total The requests cache counter
# TYPE nginx_vts_filter_cache_total counter
nginx_vts_filter_bytes_total{filter="localhost",filter_name="200",direction="in"} 8257
nginx_vts_filter_bytes_total{filter="localhost",filter_name="200",direction="out"} 25228
nginx_vts_filter_requests_total{filter="localhost",filter_name="200",code="1xx"} 0
nginx_vts_filter_requests_total{filter="localhost",filter_name="200",code="2xx"} 102
nginx_vts_filter_requests_total{filter="localhost",filter_name="200",code="3xx"} 0
nginx_vts_filter_requests_total{filter="localhost",filter_name="200",code="4xx"} 0
nginx_vts_filter_requests_total{filter="localhost",filter_name="200",code="5xx"} 0
nginx_vts_filter_request_seconds_total{filter="localhost",filter_name="200"} 0.004
nginx_vts_filter_request_seconds{filter="localhost",filter_name="200"} 0.000
nginx_vts_filter_cache_total{filter="localhost",filter_name="200",status="miss"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="200",status="bypass"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="200",status="expired"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="200",status="stale"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="200",status="updating"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="200",status="revalidated"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="200",status="hit"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="200",status="scarce"} 0
nginx_vts_filter_bytes_total{filter="localhost",filter_name="404",direction="in"} 2800
nginx_vts_filter_bytes_total{filter="localhost",filter_name="404",direction="out"} 2448
nginx_vts_filter_requests_total{filter="localhost",filter_name="404",code="1xx"} 0
nginx_vts_filter_requests_total{filter="localhost",filter_name="404",code="2xx"} 0
nginx_vts_filter_requests_total{filter="localhost",filter_name="404",code="3xx"} 0
nginx_vts_filter_requests_total{filter="localhost",filter_name="404",code="4xx"} 8
nginx_vts_filter_requests_total{filter="localhost",filter_name="404",code="5xx"} 0
nginx_vts_filter_request_seconds_total{filter="localhost",filter_name="404"} 0.000
nginx_vts_filter_request_seconds{filter="localhost",filter_name="404"} 0.000
nginx_vts_filter_cache_total{filter="localhost",filter_name="404",status="miss"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="404",status="bypass"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="404",status="expired"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="404",status="stale"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="404",status="updating"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="404",status="revalidated"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="404",status="hit"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="404",status="scarce"} 0
nginx_vts_filter_bytes_total{filter="localhost",filter_name="304",direction="in"} 2140
nginx_vts_filter_bytes_total{filter="localhost",filter_name="304",direction="out"} 895
nginx_vts_filter_requests_total{filter="localhost",filter_name="304",code="1xx"} 0
nginx_vts_filter_requests_total{filter="localhost",filter_name="304",code="2xx"} 0
nginx_vts_filter_requests_total{filter="localhost",filter_name="304",code="3xx"} 5
nginx_vts_filter_requests_total{filter="localhost",filter_name="304",code="4xx"} 0
nginx_vts_filter_requests_total{filter="localhost",filter_name="304",code="5xx"} 0
nginx_vts_filter_request_seconds_total{filter="localhost",filter_name="304"} 0.000
nginx_vts_filter_request_seconds{filter="localhost",filter_name="304"} 0.000
nginx_vts_filter_cache_total{filter="localhost",filter_name="304",status="miss"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="304",status="bypass"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="304",status="expired"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="304",status="stale"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="304",status="updating"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="304",status="revalidated"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="304",status="hit"} 0
nginx_vts_filter_cache_total{filter="localhost",filter_name="304",status="scarce"} 0
# HELP nginx_vts_upstream_bytes_total The request/response bytes
# TYPE nginx_vts_upstream_bytes_total counter
# HELP nginx_vts_upstream_requests_total The upstream requests counter
# TYPE nginx_vts_upstream_requests_total counter
# HELP nginx_vts_upstream_request_seconds_total The request Processing time including upstream in seconds
# TYPE nginx_vts_upstream_request_seconds_total counter
# HELP nginx_vts_upstream_request_seconds The average of request processing times including upstream in seconds
# TYPE nginx_vts_upstream_request_seconds gauge
# HELP nginx_vts_upstream_response_seconds_total The only upstream response processing time in seconds
# TYPE nginx_vts_upstream_response_seconds_total counter
# HELP nginx_vts_upstream_response_seconds The average of only upstream response processing times in seconds
# TYPE nginx_vts_upstream_response_seconds gauge
# HELP nginx_vts_upstream_request_duration_seconds The histogram of request processing time including upstream
# TYPE nginx_vts_upstream_request_duration_seconds histogram
# HELP nginx_vts_upstream_response_duration_seconds The histogram of only upstream response processing time
# TYPE nginx_vts_upstream_response_duration_seconds histogram
nginx_vts_upstream_bytes_total{upstream="local",backend="127.0.0.1:8080",direction="in"} 4131
nginx_vts_upstream_bytes_total{upstream="local",backend="127.0.0.1:8080",direction="out"} 8160
nginx_vts_upstream_requests_total{upstream="local",backend="127.0.0.1:8080",code="1xx"} 0
nginx_vts_upstream_requests_total{upstream="local",backend="127.0.0.1:8080",code="2xx"} 51
nginx_vts_upstream_requests_total{upstream="local",backend="127.0.0.1:8080",code="3xx"} 0
nginx_vts_upstream_requests_total{upstream="local",backend="127.0.0.1:8080",code="4xx"} 0
nginx_vts_upstream_requests_total{upstream="local",backend="127.0.0.1:8080",code="5xx"} 0
nginx_vts_upstream_request_seconds_total{upstream="local",backend="127.0.0.1:8080"} 0.001
nginx_vts_upstream_request_seconds{upstream="local",backend="127.0.0.1:8080"} 0.000
nginx_vts_upstream_response_seconds_total{upstream="local",backend="127.0.0.1:8080"} 0.000
nginx_vts_upstream_response_seconds{upstream="local",backend="127.0.0.1:8080"} 0.000
nginx_vts_upstream_bytes_total{upstream="local",backend="127.0.0.1:8081",direction="in"} 4050
nginx_vts_upstream_bytes_total{upstream="local",backend="127.0.0.1:8081",direction="out"} 8000
nginx_vts_upstream_requests_total{upstream="local",backend="127.0.0.1:8081",code="1xx"} 0
nginx_vts_upstream_requests_total{upstream="local",backend="127.0.0.1:8081",code="2xx"} 50
nginx_vts_upstream_requests_total{upstream="local",backend="127.0.0.1:8081",code="3xx"} 0
nginx_vts_upstream_requests_total{upstream="local",backend="127.0.0.1:8081",code="4xx"} 0
nginx_vts_upstream_requests_total{upstream="local",backend="127.0.0.1:8081",code="5xx"} 0
nginx_vts_upstream_request_seconds_total{upstream="local",backend="127.0.0.1:8081"} 0.003
nginx_vts_upstream_request_seconds{upstream="local",backend="127.0.0.1:8081"} 0.000
nginx_vts_upstream_response_seconds_total{upstream="local",backend="127.0.0.1:8081"} 0.003
nginx_vts_upstream_response_seconds{upstream="local",backend="127.0.0.1:8081"} 0.000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment