Skip to content

Instantly share code, notes, and snippets.

@samos123
Created September 22, 2024 14:06
Show Gist options
  • Save samos123/fc7197999804dfe8e0b1471774f02d51 to your computer and use it in GitHub Desktop.
Save samos123/fc7197999804dfe8e0b1471774f02d51 to your computer and use it in GitHub Desktop.
infinity metrics
# HELP python_gc_objects_collected_total Objects collected during gc
# TYPE python_gc_objects_collected_total counter
python_gc_objects_collected_total{generation="0"} 5528.0
python_gc_objects_collected_total{generation="1"} 4430.0
python_gc_objects_collected_total{generation="2"} 1244.0
# HELP python_gc_objects_uncollectable_total Uncollectable objects found during GC
# TYPE python_gc_objects_uncollectable_total counter
python_gc_objects_uncollectable_total{generation="0"} 0.0
python_gc_objects_uncollectable_total{generation="1"} 0.0
python_gc_objects_uncollectable_total{generation="2"} 0.0
# HELP python_gc_collections_total Number of times this generation was collected
# TYPE python_gc_collections_total counter
python_gc_collections_total{generation="0"} 1078.0
python_gc_collections_total{generation="1"} 98.0
python_gc_collections_total{generation="2"} 7.0
# HELP python_info Python platform information
# TYPE python_info gauge
python_info{implementation="CPython",major="3",minor="10",patchlevel="12",version="3.10.12"} 1.0
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 6.584037376e+09
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 9.2739584e+08
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.72701275624e+09
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 122.35999999999999
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 19.0
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1.073741816e+09
# HELP http_requests_total Total number of requests by method, status and handler.
# TYPE http_requests_total counter
http_requests_total{handler="/health",method="GET",status="2xx"} 98.0
http_requests_total{handler="/metrics",method="GET",status="2xx"} 72.0
http_requests_total{handler="/",method="GET",status="3xx"} 1.0
http_requests_total{handler="/docs",method="GET",status="2xx"} 1.0
http_requests_total{handler="/openapi.json",method="GET",status="2xx"} 1.0
# HELP http_requests_created Total number of requests by method, status and handler.
# TYPE http_requests_created gauge
http_requests_created{handler="/health",method="GET",status="2xx"} 1.7270128117850776e+09
http_requests_created{handler="/metrics",method="GET",status="2xx"} 1.7270128190313795e+09
http_requests_created{handler="/",method="GET",status="3xx"} 1.727013484362096e+09
http_requests_created{handler="/docs",method="GET",status="2xx"} 1.7270134843751528e+09
http_requests_created{handler="/openapi.json",method="GET",status="2xx"} 1.7270134847949166e+09
# HELP http_request_size_bytes Content length of incoming requests by handler. Only value of header is respected. Otherwise ignored. No percentile calculated.
# TYPE http_request_size_bytes summary
http_request_size_bytes_count{handler="/health"} 98.0
http_request_size_bytes_sum{handler="/health"} 0.0
http_request_size_bytes_count{handler="/metrics"} 72.0
http_request_size_bytes_sum{handler="/metrics"} 0.0
http_request_size_bytes_count{handler="/"} 1.0
http_request_size_bytes_sum{handler="/"} 0.0
http_request_size_bytes_count{handler="/docs"} 1.0
http_request_size_bytes_sum{handler="/docs"} 0.0
http_request_size_bytes_count{handler="/openapi.json"} 1.0
http_request_size_bytes_sum{handler="/openapi.json"} 0.0
# HELP http_request_size_bytes_created Content length of incoming requests by handler. Only value of header is respected. Otherwise ignored. No percentile calculated.
# TYPE http_request_size_bytes_created gauge
http_request_size_bytes_created{handler="/health"} 1.7270128117851396e+09
http_request_size_bytes_created{handler="/metrics"} 1.7270128190314038e+09
http_request_size_bytes_created{handler="/"} 1.7270134843621242e+09
http_request_size_bytes_created{handler="/docs"} 1.7270134843751822e+09
http_request_size_bytes_created{handler="/openapi.json"} 1.7270134847949436e+09
# HELP http_response_size_bytes Content length of outgoing responses by handler. Only value of header is respected. Otherwise ignored. No percentile calculated.
# TYPE http_response_size_bytes summary
http_response_size_bytes_count{handler="/health"} 98.0
http_response_size_bytes_sum{handler="/health"} 2627.0
http_response_size_bytes_count{handler="/metrics"} 72.0
http_response_size_bytes_sum{handler="/metrics"} 553844.0
http_response_size_bytes_count{handler="/"} 1.0
http_response_size_bytes_sum{handler="/"} 0.0
http_response_size_bytes_count{handler="/docs"} 1.0
http_response_size_bytes_sum{handler="/docs"} 976.0
http_response_size_bytes_count{handler="/openapi.json"} 1.0
http_response_size_bytes_sum{handler="/openapi.json"} 10293.0
# HELP http_response_size_bytes_created Content length of outgoing responses by handler. Only value of header is respected. Otherwise ignored. No percentile calculated.
# TYPE http_response_size_bytes_created gauge
http_response_size_bytes_created{handler="/health"} 1.727012811785215e+09
http_response_size_bytes_created{handler="/metrics"} 1.72701281903144e+09
http_response_size_bytes_created{handler="/"} 1.727013484362161e+09
http_response_size_bytes_created{handler="/docs"} 1.727013484375222e+09
http_response_size_bytes_created{handler="/openapi.json"} 1.7270134847949762e+09
# HELP http_request_duration_highr_seconds Latency with many buckets but no API specific labels. Made for more accurate percentile calculations.
# TYPE http_request_duration_highr_seconds histogram
http_request_duration_highr_seconds_bucket{le="0.01"} 172.0
http_request_duration_highr_seconds_bucket{le="0.025"} 172.0
http_request_duration_highr_seconds_bucket{le="0.05"} 173.0
http_request_duration_highr_seconds_bucket{le="0.075"} 173.0
http_request_duration_highr_seconds_bucket{le="0.1"} 173.0
http_request_duration_highr_seconds_bucket{le="0.25"} 173.0
http_request_duration_highr_seconds_bucket{le="0.5"} 173.0
http_request_duration_highr_seconds_bucket{le="0.75"} 173.0
http_request_duration_highr_seconds_bucket{le="1.0"} 173.0
http_request_duration_highr_seconds_bucket{le="1.5"} 173.0
http_request_duration_highr_seconds_bucket{le="2.0"} 173.0
http_request_duration_highr_seconds_bucket{le="2.5"} 173.0
http_request_duration_highr_seconds_bucket{le="3.0"} 173.0
http_request_duration_highr_seconds_bucket{le="3.5"} 173.0
http_request_duration_highr_seconds_bucket{le="4.0"} 173.0
http_request_duration_highr_seconds_bucket{le="4.5"} 173.0
http_request_duration_highr_seconds_bucket{le="5.0"} 173.0
http_request_duration_highr_seconds_bucket{le="7.5"} 173.0
http_request_duration_highr_seconds_bucket{le="10.0"} 173.0
http_request_duration_highr_seconds_bucket{le="30.0"} 173.0
http_request_duration_highr_seconds_bucket{le="60.0"} 173.0
http_request_duration_highr_seconds_bucket{le="+Inf"} 173.0
http_request_duration_highr_seconds_count 173.0
http_request_duration_highr_seconds_sum 0.35075197857804596
# HELP http_request_duration_highr_seconds_created Latency with many buckets but no API specific labels. Made for more accurate percentile calculations.
# TYPE http_request_duration_highr_seconds_created gauge
http_request_duration_highr_seconds_created 1.7270127648983605e+09
# HELP http_request_duration_seconds Latency with only few buckets by handler. Made to be only used if aggregation by handler is important.
# TYPE http_request_duration_seconds histogram
http_request_duration_seconds_bucket{handler="/health",le="0.1",method="GET"} 98.0
http_request_duration_seconds_bucket{handler="/health",le="0.5",method="GET"} 98.0
http_request_duration_seconds_bucket{handler="/health",le="1.0",method="GET"} 98.0
http_request_duration_seconds_bucket{handler="/health",le="+Inf",method="GET"} 98.0
http_request_duration_seconds_count{handler="/health",method="GET"} 98.0
http_request_duration_seconds_sum{handler="/health",method="GET"} 0.07934919476974756
http_request_duration_seconds_bucket{handler="/metrics",le="0.1",method="GET"} 72.0
http_request_duration_seconds_bucket{handler="/metrics",le="0.5",method="GET"} 72.0
http_request_duration_seconds_bucket{handler="/metrics",le="1.0",method="GET"} 72.0
http_request_duration_seconds_bucket{handler="/metrics",le="+Inf",method="GET"} 72.0
http_request_duration_seconds_count{handler="/metrics",method="GET"} 72.0
http_request_duration_seconds_sum{handler="/metrics",method="GET"} 0.23563282878603786
http_request_duration_seconds_bucket{handler="/",le="0.1",method="GET"} 1.0
http_request_duration_seconds_bucket{handler="/",le="0.5",method="GET"} 1.0
http_request_duration_seconds_bucket{handler="/",le="1.0",method="GET"} 1.0
http_request_duration_seconds_bucket{handler="/",le="+Inf",method="GET"} 1.0
http_request_duration_seconds_count{handler="/",method="GET"} 1.0
http_request_duration_seconds_sum{handler="/",method="GET"} 0.0005907210288569331
http_request_duration_seconds_bucket{handler="/docs",le="0.1",method="GET"} 1.0
http_request_duration_seconds_bucket{handler="/docs",le="0.5",method="GET"} 1.0
http_request_duration_seconds_bucket{handler="/docs",le="1.0",method="GET"} 1.0
http_request_duration_seconds_bucket{handler="/docs",le="+Inf",method="GET"} 1.0
http_request_duration_seconds_count{handler="/docs",method="GET"} 1.0
http_request_duration_seconds_sum{handler="/docs",method="GET"} 0.0006167730316519737
http_request_duration_seconds_bucket{handler="/openapi.json",le="0.1",method="GET"} 1.0
http_request_duration_seconds_bucket{handler="/openapi.json",le="0.5",method="GET"} 1.0
http_request_duration_seconds_bucket{handler="/openapi.json",le="1.0",method="GET"} 1.0
http_request_duration_seconds_bucket{handler="/openapi.json",le="+Inf",method="GET"} 1.0
http_request_duration_seconds_count{handler="/openapi.json",method="GET"} 1.0
http_request_duration_seconds_sum{handler="/openapi.json",method="GET"} 0.03456246096175164
# HELP http_request_duration_seconds_created Latency with only few buckets by handler. Made to be only used if aggregation by handler is important.
# TYPE http_request_duration_seconds_created gauge
http_request_duration_seconds_created{handler="/health",method="GET"} 1.7270128117853029e+09
http_request_duration_seconds_created{handler="/metrics",method="GET"} 1.7270128190314705e+09
http_request_duration_seconds_created{handler="/",method="GET"} 1.7270134843622038e+09
http_request_duration_seconds_created{handler="/docs",method="GET"} 1.7270134843752773e+09
http_request_duration_seconds_created{handler="/openapi.json",method="GET"} 1.727013484795016e+09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment