Skip to content

Instantly share code, notes, and snippets.

@bluecmd
Created August 26, 2016 13:27
Show Gist options
  • Save bluecmd/106eebfdce0fd4c864543a734ccc89ed to your computer and use it in GitHub Desktop.
Save bluecmd/106eebfdce0fd4c864543a734ccc89ed to your computer and use it in GitHub Desktop.
sudo nohup /lib/ld-linux-x86-64.so.2 ./ovsdb_exporter -ovsdb.protocol=unix -ovsdb.address=/var/run/openvswitch/db.sock
wget http://localhost:9201/metrics
kek-core:~$ grep -v " 0" out
# HELP Interface_collisions OVSDB proxied metric
# TYPE Interface_collisions counter
# HELP Interface_ipv4_mc_rx_bytes OVSDB proxied metric
# TYPE Interface_ipv4_mc_rx_bytes counter
# HELP Interface_ipv4_mc_rx_packets OVSDB proxied metric
# TYPE Interface_ipv4_mc_rx_packets counter
# HELP Interface_ipv4_mc_tx_bytes OVSDB proxied metric
# TYPE Interface_ipv4_mc_tx_bytes counter
# HELP Interface_ipv4_mc_tx_packets OVSDB proxied metric
# TYPE Interface_ipv4_mc_tx_packets counter
# HELP Interface_ipv4_uc_rx_bytes OVSDB proxied metric
# TYPE Interface_ipv4_uc_rx_bytes counter
# HELP Interface_ipv4_uc_rx_packets OVSDB proxied metric
# TYPE Interface_ipv4_uc_rx_packets counter
# HELP Interface_ipv4_uc_tx_bytes OVSDB proxied metric
# TYPE Interface_ipv4_uc_tx_bytes counter
# HELP Interface_ipv4_uc_tx_packets OVSDB proxied metric
# TYPE Interface_ipv4_uc_tx_packets counter
# HELP Interface_ipv6_mc_rx_bytes OVSDB proxied metric
# TYPE Interface_ipv6_mc_rx_bytes counter
# HELP Interface_ipv6_mc_rx_packets OVSDB proxied metric
# TYPE Interface_ipv6_mc_rx_packets counter
# HELP Interface_ipv6_mc_tx_bytes OVSDB proxied metric
# TYPE Interface_ipv6_mc_tx_bytes counter
# HELP Interface_ipv6_mc_tx_packets OVSDB proxied metric
# TYPE Interface_ipv6_mc_tx_packets counter
# HELP Interface_ipv6_uc_rx_bytes OVSDB proxied metric
# TYPE Interface_ipv6_uc_rx_bytes counter
# HELP Interface_ipv6_uc_rx_packets OVSDB proxied metric
# TYPE Interface_ipv6_uc_rx_packets counter
# HELP Interface_ipv6_uc_tx_bytes OVSDB proxied metric
# TYPE Interface_ipv6_uc_tx_bytes counter
# HELP Interface_ipv6_uc_tx_packets OVSDB proxied metric
# TYPE Interface_ipv6_uc_tx_packets counter
# HELP Interface_l3_mc_rx_bytes OVSDB proxied metric
# TYPE Interface_l3_mc_rx_bytes counter
# HELP Interface_l3_mc_rx_packets OVSDB proxied metric
# TYPE Interface_l3_mc_rx_packets counter
# HELP Interface_l3_mc_tx_bytes OVSDB proxied metric
# TYPE Interface_l3_mc_tx_bytes counter
# HELP Interface_l3_mc_tx_packets OVSDB proxied metric
# TYPE Interface_l3_mc_tx_packets counter
# HELP Interface_l3_uc_rx_bytes OVSDB proxied metric
# TYPE Interface_l3_uc_rx_bytes counter
# HELP Interface_l3_uc_rx_packets OVSDB proxied metric
# TYPE Interface_l3_uc_rx_packets counter
# HELP Interface_l3_uc_tx_bytes OVSDB proxied metric
# TYPE Interface_l3_uc_tx_bytes counter
# HELP Interface_l3_uc_tx_packets OVSDB proxied metric
# TYPE Interface_l3_uc_tx_packets counter
# HELP Interface_rx_bytes OVSDB proxied metric
# TYPE Interface_rx_bytes counter
Interface_rx_bytes{name="1"} 1.365816063e+09
Interface_rx_bytes{name="33"} 9.30861718e+09
Interface_rx_bytes{name="34"} 3.75604895e+09
Interface_rx_bytes{name="35"} 1.2075972199e+10
# HELP Interface_rx_crc_err OVSDB proxied metric
# TYPE Interface_rx_crc_err counter
# HELP Interface_rx_dropped OVSDB proxied metric
# TYPE Interface_rx_dropped counter
Interface_rx_dropped{name="1"} 190631
Interface_rx_dropped{name="33"} 588
Interface_rx_dropped{name="34"} 1142
Interface_rx_dropped{name="35"} 1157
# HELP Interface_rx_errors OVSDB proxied metric
# TYPE Interface_rx_errors counter
# HELP Interface_rx_frame_err OVSDB proxied metric
# TYPE Interface_rx_frame_err counter
# HELP Interface_rx_over_err OVSDB proxied metric
# TYPE Interface_rx_over_err counter
# HELP Interface_rx_packets OVSDB proxied metric
# TYPE Interface_rx_packets counter
Interface_rx_packets{name="1"} 3.202036e+06
Interface_rx_packets{name="33"} 8.995779e+06
Interface_rx_packets{name="34"} 5.667228e+06
Interface_rx_packets{name="35"} 1.2116461e+07
# HELP Interface_sflow_egress_bytes OVSDB proxied metric
# TYPE Interface_sflow_egress_bytes counter
# HELP Interface_sflow_egress_packets OVSDB proxied metric
# TYPE Interface_sflow_egress_packets counter
# HELP Interface_sflow_ingress_bytes OVSDB proxied metric
# TYPE Interface_sflow_ingress_bytes counter
# HELP Interface_sflow_ingress_packets OVSDB proxied metric
# TYPE Interface_sflow_ingress_packets counter
# HELP Interface_tx_bytes OVSDB proxied metric
# TYPE Interface_tx_bytes counter
Interface_tx_bytes{name="1"} 3.143136096e+09
Interface_tx_bytes{name="33"} 9.621929704e+09
Interface_tx_bytes{name="34"} 1.4896149133e+10
Interface_tx_bytes{name="35"} 4.130551065e+09
# HELP Interface_tx_dropped OVSDB proxied metric
# TYPE Interface_tx_dropped counter
Interface_tx_dropped{name="1"} 2
Interface_tx_dropped{name="11"} 1
Interface_tx_dropped{name="33"} 2
Interface_tx_dropped{name="34"} 9
Interface_tx_dropped{name="35"} 2
Interface_tx_dropped{name="49"} 1
Interface_tx_dropped{name="49-1"} 1
Interface_tx_dropped{name="49-4"} 1
Interface_tx_dropped{name="5"} 1
Interface_tx_dropped{name="50-2"} 1
# HELP Interface_tx_errors OVSDB proxied metric
# TYPE Interface_tx_errors counter
# HELP Interface_tx_packets OVSDB proxied metric
# TYPE Interface_tx_packets counter
Interface_tx_packets{name="1"} 4.377504e+06
Interface_tx_packets{name="33"} 1.1103202e+07
Interface_tx_packets{name="34"} 1.413009e+07
Interface_tx_packets{name="35"} 6.455937e+06
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds_count 10
# 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 1.7073488e+07
# 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.6037432e+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.470169e+06
# HELP go_memstats_frees_total Total number of frees.
# TYPE go_memstats_frees_total counter
go_memstats_frees_total 1.92383e+06
# 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 1.165312e+06
# 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 1.7073488e+07
# 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 1.691648e+07
# 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 1.78176e+07
# HELP go_memstats_heap_objects Number of allocated objects.
# TYPE go_memstats_heap_objects gauge
go_memstats_heap_objects 242370
# HELP go_memstats_heap_released_bytes_total Total number of heap bytes released to OS.
# TYPE go_memstats_heap_released_bytes_total counter
# 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 3.473408e+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.4722178676125865e+09
# HELP go_memstats_lookups_total Total number of pointer lookups.
# TYPE go_memstats_lookups_total counter
go_memstats_lookups_total 38
# HELP go_memstats_mallocs_total Total number of mallocs.
# TYPE go_memstats_mallocs_total counter
go_memstats_mallocs_total 2.1662e+06
# 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 4832
# 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 16384
# 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 144704
# 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 360448
# 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 1.9214738e+07
# 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 938527
# 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 393216
# 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 393216
# HELP go_memstats_sys_bytes Number of bytes obtained by system. Sum of all system allocations.
# TYPE go_memstats_sys_bytes gauge
go_memstats_sys_bytes 3.9078136e+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"} 27990.197
http_request_duration_microseconds{handler="prometheus",quantile="0.9"} 27990.197
http_request_duration_microseconds{handler="prometheus",quantile="0.99"} 27990.197
http_request_duration_microseconds_sum{handler="prometheus"} 68189.06700000001
http_request_duration_microseconds_count{handler="prometheus"} 2
# 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"} 118
http_request_size_bytes{handler="prometheus",quantile="0.9"} 118
http_request_size_bytes{handler="prometheus",quantile="0.99"} 118
http_request_size_bytes_sum{handler="prometheus"} 236
http_request_size_bytes_count{handler="prometheus"} 2
# HELP http_requests_total Total number of HTTP requests made.
# TYPE http_requests_total counter
http_requests_total{code="200",handler="prometheus",method="get"} 2
# 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"} 128848
http_response_size_bytes{handler="prometheus",quantile="0.9"} 128848
http_response_size_bytes{handler="prometheus",quantile="0.99"} 128848
http_response_size_bytes_sum{handler="prometheus"} 257901
http_response_size_bytes_count{handler="prometheus"} 2
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 2.27
# 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 3.81952e+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.47221785554e+09
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 2.36978176e+08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment