Skip to content

Instantly share code, notes, and snippets.

@NathanBaulch
Created June 15, 2023 12:10
Show Gist options
  • Save NathanBaulch/5b0a37254c012b407f36cf774e5d9826 to your computer and use it in GitHub Desktop.
Save NathanBaulch/5b0a37254c012b407f36cf774e5d9826 to your computer and use it in GitHub Desktop.
OpenMetrics monolithic test exposition
# TYPE test01_a counter
# HELP test01_a counter_exemplars
test01_a_total 0 123
# TYPE test02_a counter
# HELP test02_a counter_exemplars_empty_brackets
test02_a_total{} 0 123
# HELP test03_cc_seconds counter_unit
# TYPE test03_cc_seconds counter
# UNIT test03_cc_seconds seconds
test03_cc_seconds_total 1.0
test03_cc_seconds_created 123.456
# TYPE test04_a gauge
# HELP test04_a duplicate_timestamps_0
test04_a{a="1",foo="bar"} 1 0.0000000000
test04_a{a="1",foo="bar"} 2 0.0000000001
test04_a{a="1",foo="bar"} 3 0.0000000010
test04_a{a="2",foo="bar"} 4 0.0000000000
test04_a{a="2",foo="bar"} 5 0.0000000001
# TYPE test05_a gauge
# HELP test05_a duplicate_timestamps_1
test05_a{a="1",foo="bar"} 1 0
test05_a{a="1",foo="bar"} 2 0
test05_a{a="1",foo="bar"} 3 0
test05_a{a="2",foo="bar"} 4 0
test05_a{a="2",foo="bar"} 5 0
# TYPE test06_a counter
# HELP test06_a empty_brackets
test06_a_total{} 1
# TYPE test07_a counter
# HELP test07_a
test07_a_total 1
# TYPE test08_a counter
# HELP test08_a empty_label
test08_a_total{foo="bar"} 1
test08_a_total{foo=""} 2
# HELP test09_a
# UNIT test09_a
# TYPE test09_a counter
# HELP test09_a he\n\\l\tp
test09_a_total{foo="b\"a\nr"} 1
test09_a_total{foo="b\\a\z"} 2
test09_a_total{foo="b\"a\nr # "} 3
test09_a_total{foo="b\\a\z # "} 4
# TYPE test10_a histogram
# HELP test10_a exemplars_wide_chars
test10_a_bucket{le="+Inf"} 1 # {a="☃345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678"} 1 1
# TYPE test11_a histogram
# HELP test11_a exemplars_with_hash_in_label_values
test11_a_bucket{le="1.0",foo="bar # "} 0 # {a="b",foo="bar # bar"} 0.5
test11_a_bucket{le="2.0",foo="bar # "} 2 # {a="c",foo="bar # bar"} 0.5
test11_a_bucket{le="+Inf",foo="bar # "} 3 # {a="d",foo="bar # bar"} 4
# TYPE test12_a gauge
# HELP test12_a float_gauge
test12_a 1.2
# TYPE test13_a gaugehistogram
# HELP test13_a gaugehistogram_exemplars
test13_a_bucket{le="1.0"} 0 123 # {a="b"} 0.5
test13_a_bucket{le="2.0"} 2 123 # {a="c"} 0.5
test13_a_bucket{le="+Inf"} 3 123 # {a="d"} 4 123
# TYPE test14_a counter
# HELP test14_a hash_in_label_value
test14_a_total{foo="foo # bar"} 1
test14_a_total{foo="} foo # bar # "} 1
# TYPE test15_a0 counter
# HELP test15_a0 help_escaping
test15_a0_total{foo="bar"} 1
# TYPE test16_a1 counter
# HELP test16_a1 \foo
test16_a1_total{foo="bar"} 1
# TYPE test17_a2 counter
# HELP test17_a2 \\foo
test17_a2_total{foo="bar"} 1
# TYPE test18_a3 counter
# HELP test18_a3 foo\\
test18_a3_total{foo="bar"} 1
# TYPE test19_a4 counter
# HELP test19_a4 \\
test19_a4_total{foo="bar"} 1
# TYPE test20_a5 counter
# HELP test20_a5 \n
test20_a5_total{foo="bar"} 1
# TYPE test21_a6 counter
# HELP test21_a6 \\n
test21_a6_total{foo="bar"} 1
# TYPE test22_a7 counter
# HELP test22_a7 \\\n
test22_a7_total{foo="bar"} 1
# TYPE test23_a8 counter
# HELP test23_a8 \"
test23_a8_total{foo="bar"} 1
# TYPE test24_a9 counter
# HELP test24_a9 \\"
test24_a9_total{foo="bar"} 1
# TYPE test25_a histogram
# HELP test25_a histogram_exemplars
test25_a_bucket{le="1.0"} 0 # {a="b"} 0.5
test25_a_bucket{le="2.0"} 2 # {a="c"} 0.5
test25_a_bucket{le="+Inf"} 3 # {a="2345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678"} 4 123
# TYPE test26_a histogram
# HELP test26_a histogram_noncanonical
test26_a_bucket{le="0"} 0
test26_a_bucket{le="0.00000000001"} 0
test26_a_bucket{le="0.0000000001"} 0
test26_a_bucket{le="1e-04"} 0
test26_a_bucket{le="1.1e-4"} 0
test26_a_bucket{le="1.1e-3"} 0
test26_a_bucket{le="1.1e-2"} 0
test26_a_bucket{le="1"} 0
test26_a_bucket{le="1e+05"} 0
test26_a_bucket{le="10000000000"} 0
test26_a_bucket{le="100000000000.0"} 0
test26_a_bucket{le="+Inf"} 3
test26_a_count 3
test26_a_sum 2
# TYPE test27_a info
# HELP test27_a info_timestamps
test27_a_info{a="1",foo="bar"} 1 1
test27_a_info{a="2",foo="bar"} 1 0
# TYPE test28_a gauge
# HELP test28_a labels_and_infinite
test28_a{foo="bar"} +Inf
test28_a{foo="baz"} -Inf
# TYPE test29_a counter
# HELP test29_a labels_with_curly_braces
test29_a_total{foo="bar",bar="b{a}z"} 1
# TYPE test30_a0 counter
# HELP test30_a0 label_escaping
test30_a0_total{foo="foo",bar="baz"} 1
# TYPE test31_a1 counter
# HELP test31_a1 label_escaping
test31_a1_total{foo="\foo",bar="baz"} 1
# TYPE test32_a2 counter
# HELP test32_a2 label_escaping
test32_a2_total{foo="\\foo",bar="baz"} 1
# TYPE test33_a3 counter
# HELP test33_a3 label_escaping
test33_a3_total{foo="foo\\",bar="baz"} 1
# TYPE test34_a4 counter
# HELP test34_a4 label_escaping
test34_a4_total{foo="\\",bar="baz"} 1
# TYPE test35_a5 counter
# HELP test35_a5 label_escaping
test35_a5_total{foo="\n",bar="baz"} 1
# TYPE test36_a6 counter
# HELP test36_a6 label_escaping
test36_a6_total{foo="\\n",bar="baz"} 1
# TYPE test37_a7 counter
# HELP test37_a7 label_escaping
test37_a7_total{foo="\\\n",bar="baz"} 1
# TYPE test38_a8 counter
# HELP test38_a8 label_escaping
test38_a8_total{foo="\"",bar="baz"} 1
# TYPE test39_a9 counter
# HELP test39_a9 label_escaping
test39_a9_total{foo="\\\"",bar="baz"} 1
# TYPE test40_a gauge
# HELP test40_a leading_zeros_float_gauge
test40_a 0000000000000000000000000000000000000000001.2e-1
# TYPE test41_a gauge
# HELP test41_a leading_zeros_simple_gauge
test41_a 0000000000000000000000000000000000000000001
test42_a NaN
# TYPE test43_a gauge
# HELP test43_a nan_gauge
test43_a NaN
# TYPE test44_a gaugehistogram
# HELP test44_a negative_bucket_gaugehistogram
test44_a_bucket{le="-1.0"} 1
test44_a_bucket{le="1.0"} 2
test44_a_bucket{le="+Inf"} 3
test44_a_gcount 3
test44_a_gsum -5
# TYPE test45_a histogram
# HELP test45_a negative_bucket_histogram
test45_a_bucket{le="-1.0"} 0
test45_a_bucket{le="1.0"} 1
test45_a_bucket{le="+Inf"} 3
test45_a 1
# TYPE test46_a gauge
# HELP test46_a no_newline_after_eof
test46_a 1
# TYPE test47_a counter
# HELP test47_a he<NULL>lp
# HELP test48_go_gc_duration_seconds roundtrip
# TYPE test48_go_gc_duration_seconds summary
test48_go_gc_duration_seconds{quantile="0.0"} 0.013300656000000001
test48_go_gc_duration_seconds{quantile="0.25"} 0.013638736
test48_go_gc_duration_seconds{quantile="0.5"} 0.013759906
test48_go_gc_duration_seconds{quantile="0.75"} 0.013962066
test48_go_gc_duration_seconds{quantile="1.0"} 0.021383540000000003
test48_go_gc_duration_seconds_sum 56.12904785
test48_go_gc_duration_seconds_count 7476.0
# HELP test49_go_goroutines roundtrip
# TYPE test49_go_goroutines gauge
test49_go_goroutines 166.0
# HELP test50_prometheus_local_storage_indexing_batch_duration_milliseconds roundtrip
# TYPE test50_prometheus_local_storage_indexing_batch_duration_milliseconds summary
test50_prometheus_local_storage_indexing_batch_duration_milliseconds{quantile="0.5"} NaN
test50_prometheus_local_storage_indexing_batch_duration_milliseconds{quantile="0.9"} NaN
test50_prometheus_local_storage_indexing_batch_duration_milliseconds{quantile="0.99"} NaN
test50_prometheus_local_storage_indexing_batch_duration_milliseconds_sum 871.5665949999999
test50_prometheus_local_storage_indexing_batch_duration_milliseconds_count 229.0
# HELP test51_process_cpu_seconds roundtrip
# TYPE test51_process_cpu_seconds counter
test51_process_cpu_seconds_total 29323.4
# HELP test52_process_virtual_memory_bytes roundtrip
# TYPE test52_process_virtual_memory_bytes gauge
test52_process_virtual_memory_bytes 2.478268416e+09
# HELP test53_prometheus_build_info roundtrip
# TYPE test53_prometheus_build_info gauge
test53_prometheus_build_info{branch="HEAD",revision="ef176e5",version="0.16.0rc1"} 1.0
# HELP test54_prometheus_local_storage_chunk_ops roundtrip
# TYPE test54_prometheus_local_storage_chunk_ops counter
test54_prometheus_local_storage_chunk_ops_total{type="clone"} 28.0
test54_prometheus_local_storage_chunk_ops_total{type="create"} 997844.0
test54_prometheus_local_storage_chunk_ops_total{type="drop"} 1.345758e+06
test54_prometheus_local_storage_chunk_ops_total{type="load"} 1641.0
test54_prometheus_local_storage_chunk_ops_total{type="persist"} 981408.0
test54_prometheus_local_storage_chunk_ops_total{type="pin"} 32662.0
test54_prometheus_local_storage_chunk_ops_total{type="transcode"} 980180.0
test54_prometheus_local_storage_chunk_ops_total{type="unpin"} 32662.0
# HELP test55_foo roundtrip
# TYPE test55_foo histogram
test55_foo_bucket{le="0.0"} 0.0
test55_foo_bucket{le="1e-05"} 0.0
test55_foo_bucket{le="0.0001"} 0.0
test55_foo_bucket{le="0.1"} 8.0
test55_foo_bucket{le="1.0"} 10.0
test55_foo_bucket{le="10.0"} 17.0
test55_foo_bucket{le="100000.0"} 17.0
test55_foo_bucket{le="1e+06"} 17.0
test55_foo_bucket{le="1.55555555555552e+06"} 17.0
test55_foo_bucket{le="1e+23"} 17.0
test55_foo_bucket{le="+Inf"} 17.0
test55_foo_count 17.0
test55_foo_sum 324789.3
test55_foo_created 1.520430000123e+09
# HELP test56_bar roundtrip
# TYPE test56_bar histogram
test56_bar_bucket{a="b",le="+Inf"} 0.0
test56_bar_bucket{a="c",le="+Inf"} 0.0
# TYPE test57_a counter
# HELP test57_a simple_counter
test57_a_total 1
# TYPE test58_a gauge
# HELP test58_a simple_gauge
test58_a 1
# TYPE test59_a gaugehistogram
# HELP test59_a simple_gaugehistogram
test59_a_bucket{le="1.0"} 0
test59_a_bucket{le="+Inf"} 3
test59_a_gcount 3
test59_a_gsum 2
# TYPE test60_a histogram
# HELP test60_a simple_histogram
test60_a_bucket{le="1.0"} 0
test60_a_bucket{le="+Inf"} 3
test60_a_count 3
test60_a_sum 2
# TYPE test61_a stateset
# HELP test61_a simple_stateset
test61_a{a="bar"} 0
test61_a{a="foo"} 1.0
# TYPE test62_a summary
# HELP test62_a simple_summary
test62_a_count 1
test62_a_sum 2
# TYPE test63_a summary
# HELP test63_a summary_quantiles
test63_a_count 1
test63_a_sum 2
test63_a{quantile="0.5"} 0.7
test63_a{quantile="1"} 0.8
# TYPE test64_a counter
# HELP test64_a timestamps
test64_a_total{foo="1"} 1 000
test64_a_total{foo="2"} 1 0.0
test64_a_total{foo="3"} 1 1.1
test64_a_total{foo="4"} 1 12345678901234567890.1234567890
test64_a_total{foo="5"} 1 1.5e3
# TYPE test65_b counter
# HELP test65_b timestamps
test65_b_total 2 1234567890
# HELP test66_a type_help_switched
# TYPE test66_a counter
test66_a_total 1
# TYPE test67_a counter
# HELP test67_a uint64_counter
test67_a_total 9223372036854775808
# TYPE test68_a_seconds gauge
# UNIT test68_a_seconds seconds
# HELP test68_a_seconds unit_gauge
test68_a_seconds 1
# HELP test69_redis_connected_clients untyped
# TYPE test69_redis_connected_clients unknown
test69_redis_connected_clients{instance="rough-snowflake-web",port="6380"} 10.0
test69_redis_connected_clients{instance="rough-snowflake-web",port="6381"} 12.0
# EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment