Skip to content

Instantly share code, notes, and snippets.

@freeseacher
Last active July 24, 2017 23:28
Show Gist options
  • Save freeseacher/e8647e49591f21b348accd8201bb6173 to your computer and use it in GitHub Desktop.
Save freeseacher/e8647e49591f21b348accd8201bb6173 to your computer and use it in GitHub Desktop.
prom_client output
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0.000129192
go_gc_duration_seconds{quantile="0.25"} 0.000190183
go_gc_duration_seconds{quantile="0.5"} 0.000248812
go_gc_duration_seconds{quantile="0.75"} 0.000615913
go_gc_duration_seconds{quantile="1"} 0.000747136
go_gc_duration_seconds_sum 0.002823651
go_gc_duration_seconds_count 8
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 17
# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes 4.77524e+06
# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
# TYPE go_memstats_alloc_bytes_total counter
go_memstats_alloc_bytes_total 3.0175888e+07
# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
# TYPE go_memstats_buck_hash_sys_bytes gauge
go_memstats_buck_hash_sys_bytes 1.450109e+06
# HELP go_memstats_frees_total Total number of frees.
# TYPE go_memstats_frees_total counter
go_memstats_frees_total 58505
# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
# TYPE go_memstats_gc_sys_bytes gauge
go_memstats_gc_sys_bytes 661504
# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.
# TYPE go_memstats_heap_alloc_bytes gauge
go_memstats_heap_alloc_bytes 4.77524e+06
# HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used.
# TYPE go_memstats_heap_idle_bytes gauge
go_memstats_heap_idle_bytes 5.177344e+06
# HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use.
# TYPE go_memstats_heap_inuse_bytes gauge
go_memstats_heap_inuse_bytes 6.094848e+06
# HELP go_memstats_heap_objects Number of allocated objects.
# TYPE go_memstats_heap_objects gauge
go_memstats_heap_objects 11533
# HELP go_memstats_heap_released_bytes Number of heap bytes released to OS.
# TYPE go_memstats_heap_released_bytes gauge
go_memstats_heap_released_bytes 0
# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.
# TYPE go_memstats_heap_sys_bytes gauge
go_memstats_heap_sys_bytes 1.1272192e+07
# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.
# TYPE go_memstats_last_gc_time_seconds gauge
go_memstats_last_gc_time_seconds 1.5009383227049308e+09
# HELP go_memstats_lookups_total Total number of pointer lookups.
# TYPE go_memstats_lookups_total counter
go_memstats_lookups_total 387
# HELP go_memstats_mallocs_total Total number of mallocs.
# TYPE go_memstats_mallocs_total counter
go_memstats_mallocs_total 70038
# HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures.
# TYPE go_memstats_mcache_inuse_bytes gauge
go_memstats_mcache_inuse_bytes 26400
# HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system.
# TYPE go_memstats_mcache_sys_bytes gauge
go_memstats_mcache_sys_bytes 32768
# HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures.
# TYPE go_memstats_mspan_inuse_bytes gauge
go_memstats_mspan_inuse_bytes 58368
# HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system.
# TYPE go_memstats_mspan_sys_bytes gauge
go_memstats_mspan_sys_bytes 65536
# HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place.
# TYPE go_memstats_next_gc_bytes gauge
go_memstats_next_gc_bytes 9.427904e+06
# HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations.
# TYPE go_memstats_other_sys_bytes gauge
go_memstats_other_sys_bytes 2.781307e+06
# HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator.
# TYPE go_memstats_stack_inuse_bytes gauge
go_memstats_stack_inuse_bytes 1.31072e+06
# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.
# TYPE go_memstats_stack_sys_bytes gauge
go_memstats_stack_sys_bytes 1.31072e+06
# HELP go_memstats_sys_bytes Number of bytes obtained from system.
# TYPE go_memstats_sys_bytes gauge
go_memstats_sys_bytes 1.7574136e+07
# HELP http_request_duration_microseconds The HTTP request latencies in microseconds.
# TYPE http_request_duration_microseconds summary
http_request_duration_microseconds{handler="prometheus",quantile="0.5"} 1247.735
http_request_duration_microseconds{handler="prometheus",quantile="0.9"} 2988.334
http_request_duration_microseconds{handler="prometheus",quantile="0.99"} 3273.09
http_request_duration_microseconds_sum{handler="prometheus"} 40438.243
http_request_duration_microseconds_count{handler="prometheus"} 26
# HELP http_request_size_bytes The HTTP request sizes in bytes.
# TYPE http_request_size_bytes summary
http_request_size_bytes{handler="prometheus",quantile="0.5"} 285
http_request_size_bytes{handler="prometheus",quantile="0.9"} 285
http_request_size_bytes{handler="prometheus",quantile="0.99"} 285
http_request_size_bytes_sum{handler="prometheus"} 6290
http_request_size_bytes_count{handler="prometheus"} 26
# HELP http_requests_total Total number of HTTP requests made.
# TYPE http_requests_total counter
http_requests_total{code="200",handler="prometheus",method="get"} 26
# HELP http_response_size_bytes The HTTP response sizes in bytes.
# TYPE http_response_size_bytes summary
http_response_size_bytes{handler="prometheus",quantile="0.5"} 1373
http_response_size_bytes{handler="prometheus",quantile="0.9"} 6599
http_response_size_bytes{handler="prometheus",quantile="0.99"} 8009
http_response_size_bytes_sum{handler="prometheus"} 63271
http_response_size_bytes_count{handler="prometheus"} 26
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 0.15
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1024
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 8
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 2.7594752e+07
# 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.50093812067e+09
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 9.63903488e+08
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0.000195037
go_gc_duration_seconds{quantile="0.25"} 0.000195037
go_gc_duration_seconds{quantile="0.5"} 0.00023052
go_gc_duration_seconds{quantile="0.75"} 0.000307917
go_gc_duration_seconds{quantile="1"} 0.000307917
go_gc_duration_seconds_sum 0.000733474
go_gc_duration_seconds_count 3
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 19
# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes 4.748592e+06
# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
# TYPE go_memstats_alloc_bytes_total counter
go_memstats_alloc_bytes_total 9.77292e+06
# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
# TYPE go_memstats_buck_hash_sys_bytes gauge
go_memstats_buck_hash_sys_bytes 1.449533e+06
# HELP go_memstats_frees_total Total number of frees.
# TYPE go_memstats_frees_total counter
go_memstats_frees_total 25854
# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
# TYPE go_memstats_gc_sys_bytes gauge
go_memstats_gc_sys_bytes 595968
# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.
# TYPE go_memstats_heap_alloc_bytes gauge
go_memstats_heap_alloc_bytes 4.748592e+06
# HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used.
# TYPE go_memstats_heap_idle_bytes gauge
go_memstats_heap_idle_bytes 3.23584e+06
# HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use.
# TYPE go_memstats_heap_inuse_bytes gauge
go_memstats_heap_inuse_bytes 6.168576e+06
# HELP go_memstats_heap_objects Number of allocated objects.
# TYPE go_memstats_heap_objects gauge
go_memstats_heap_objects 11630
# HELP go_memstats_heap_released_bytes Number of heap bytes released to OS.
# TYPE go_memstats_heap_released_bytes gauge
go_memstats_heap_released_bytes 0
# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.
# TYPE go_memstats_heap_sys_bytes gauge
go_memstats_heap_sys_bytes 9.404416e+06
# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.
# TYPE go_memstats_last_gc_time_seconds gauge
go_memstats_last_gc_time_seconds 1.5009383927058372e+09
# HELP go_memstats_lookups_total Total number of pointer lookups.
# TYPE go_memstats_lookups_total counter
go_memstats_lookups_total 148
# HELP go_memstats_mallocs_total Total number of mallocs.
# TYPE go_memstats_mallocs_total counter
go_memstats_mallocs_total 37484
# HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures.
# TYPE go_memstats_mcache_inuse_bytes gauge
go_memstats_mcache_inuse_bytes 26400
# HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system.
# TYPE go_memstats_mcache_sys_bytes gauge
go_memstats_mcache_sys_bytes 32768
# HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures.
# TYPE go_memstats_mspan_inuse_bytes gauge
go_memstats_mspan_inuse_bytes 57912
# HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system.
# TYPE go_memstats_mspan_sys_bytes gauge
go_memstats_mspan_sys_bytes 81920
# HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place.
# TYPE go_memstats_next_gc_bytes gauge
go_memstats_next_gc_bytes 9.29216e+06
# HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations.
# TYPE go_memstats_other_sys_bytes gauge
go_memstats_other_sys_bytes 2.241211e+06
# HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator.
# TYPE go_memstats_stack_inuse_bytes gauge
go_memstats_stack_inuse_bytes 1.081344e+06
# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.
# TYPE go_memstats_stack_sys_bytes gauge
go_memstats_stack_sys_bytes 1.081344e+06
# HELP go_memstats_sys_bytes Number of bytes obtained from system.
# TYPE go_memstats_sys_bytes gauge
go_memstats_sys_bytes 1.488716e+07
# HELP http_request_duration_microseconds The HTTP request latencies in microseconds.
# TYPE http_request_duration_microseconds summary
http_request_duration_microseconds{handler="prometheus",quantile="0.5"} 1159.325
http_request_duration_microseconds{handler="prometheus",quantile="0.9"} 3680.797
http_request_duration_microseconds{handler="prometheus",quantile="0.99"} 3680.797
http_request_duration_microseconds_sum{handler="prometheus"} 10344.008
http_request_duration_microseconds_count{handler="prometheus"} 6
# HELP http_request_size_bytes The HTTP request sizes in bytes.
# TYPE http_request_size_bytes summary
http_request_size_bytes{handler="prometheus",quantile="0.5"} 61
http_request_size_bytes{handler="prometheus",quantile="0.9"} 285
http_request_size_bytes{handler="prometheus",quantile="0.99"} 285
http_request_size_bytes_sum{handler="prometheus"} 814
http_request_size_bytes_count{handler="prometheus"} 6
# HELP http_requests_total Total number of HTTP requests made.
# TYPE http_requests_total counter
http_requests_total{code="200",handler="prometheus",method="get"} 6
# HELP http_response_size_bytes The HTTP response sizes in bytes.
# TYPE http_response_size_bytes summary
http_response_size_bytes{handler="prometheus",quantile="0.5"} 6385
http_response_size_bytes{handler="prometheus",quantile="0.9"} 6589
http_response_size_bytes{handler="prometheus",quantile="0.99"} 6589
http_response_size_bytes_sum{handler="prometheus"} 29013
http_response_size_bytes_count{handler="prometheus"} 6
# HELP mem_active Telegraf collected metric
# TYPE mem_active counter
mem_active{dc="DC",env="prod",host="ddiscovery02"} 6.458277888e+09
# HELP mem_available Telegraf collected metric
# TYPE mem_available counter
mem_available{dc="DC",env="prod",host="ddiscovery02"} 4.6967144448e+10
# HELP mem_available_percent Telegraf collected metric
# TYPE mem_available_percent counter
mem_available_percent{dc="DC",env="prod",host="ddiscovery02"} 87.54913697209894
# HELP mem_buffered Telegraf collected metric
# TYPE mem_buffered counter
mem_buffered{dc="DC",env="prod",host="ddiscovery02"} 2.011136e+06
# HELP mem_cached Telegraf collected metric
# TYPE mem_cached counter
mem_cached{dc="DC",env="prod",host="ddiscovery02"} 4.900950016e+09
# HELP mem_free Telegraf collected metric
# TYPE mem_free counter
mem_free{dc="DC",env="prod",host="ddiscovery02"} 4.4766011392e+10
# HELP mem_inactive Telegraf collected metric
# TYPE mem_inactive counter
mem_inactive{dc="DC",env="prod",host="ddiscovery02"} 1.447923712e+09
# HELP mem_total Telegraf collected metric
# TYPE mem_total counter
mem_total{dc="DC",env="prod",host="ddiscovery02"} 5.3646610432e+10
# HELP mem_used Telegraf collected metric
# TYPE mem_used counter
mem_used{dc="DC",env="prod",host="ddiscovery02"} 6.679465984e+09
# HELP mem_used_percent Telegraf collected metric
# TYPE mem_used_percent counter
mem_used_percent{dc="DC",env="prod",host="ddiscovery02"} 12.450863027901057
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 0.07
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1024
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 8
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 2.3404544e+07
# 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.50093837373e+09
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 6.92748288e+08
root@ubuntu01:/etc/telegraf/telegraf.d# curl http://0.0.0.0:9126/metrics|wc -l
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6575 100 6575 0 0 1017k 0 --:--:-- --:--:-- --:--:-- 1284k
123
root@ubuntu01:/etc/telegraf/telegraf.d# curl http://0.0.0.0:9126/metrics|wc -l
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6574 100 6574 0 0 1194k 0 --:--:-- --:--:-- --:--:-- 1283k
123
root@ubuntu01:/etc/telegraf/telegraf.d# curl http://0.0.0.0:9126/metrics|wc -l
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6566 100 6566 0 0 1173k 0 --:--:-- --:--:-- --:--:-- 2137k
123
root@ubuntu01:/etc/telegraf/telegraf.d# curl http://0.0.0.0:9126/metrics|wc -l
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45902 100 45902 0 0 2987k 0 --:--:-- --:--:-- --:--:-- 3201k
771
root@ubuntu01:/etc/telegraf/telegraf.d# curl http://0.0.0.0:9126/metrics|wc -l
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45897 100 45897 0 0 3246k 0 --:--:-- --:--:-- --:--:-- 3447k
771
root@ubuntu01:/etc/telegraf/telegraf.d# systemctl reload telegraf
root@ubuntu01:/etc/telegraf/telegraf.d# curl http://0.0.0.0:9126/metrics|wc -l
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45908 100 45908 0 0 3916k 0 --:--:-- --:--:-- --:--:-- 4483k
771
root@ubuntu01:/etc/telegraf/telegraf.d# curl http://0.0.0.0:9126/metrics|wc -l
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45907 100 45907 0 0 3932k 0 --:--:-- --:--:-- --:--:-- 4075k
771
root@ubuntu01:/etc/telegraf/telegraf.d# curl http://0.0.0.0:9126/metrics|wc -l
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45903 100 45903 0 0 3784k 0 --:--:-- --:--:-- --:--:-- 4075k
771
root@ubuntu01:/etc/telegraf/telegraf.d# curl http://0.0.0.0:9126/metrics|wc -l
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6582 100 6582 0 0 803k 0 --:--:-- --:--:-- --:--:-- 918k
!!!!!!!!!!123!!!!!!!!!!!!!!!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment