(self)
| 655 | |
| 656 | |
| 657 | def test_roundtrip(self): |
| 658 | text = """# HELP go_gc_duration_seconds A summary of the GC invocation durations. |
| 659 | # TYPE go_gc_duration_seconds summary |
| 660 | go_gc_duration_seconds{quantile="0.0"} 0.013300656000000001 |
| 661 | go_gc_duration_seconds{quantile="0.25"} 0.013638736 |
| 662 | go_gc_duration_seconds{quantile="0.5"} 0.013759906 |
| 663 | go_gc_duration_seconds{quantile="0.75"} 0.013962066 |
| 664 | go_gc_duration_seconds{quantile="1.0"} 0.021383540000000003 |
| 665 | go_gc_duration_seconds_sum 56.12904785 |
| 666 | go_gc_duration_seconds_count 7476.0 |
| 667 | # HELP go_goroutines Number of goroutines that currently exist. |
| 668 | # TYPE go_goroutines gauge |
| 669 | go_goroutines 166.0 |
| 670 | # HELP prometheus_local_storage_indexing_batch_duration_milliseconds Quantiles for batch indexing duration in milliseconds. |
| 671 | # TYPE prometheus_local_storage_indexing_batch_duration_milliseconds summary |
| 672 | prometheus_local_storage_indexing_batch_duration_milliseconds{quantile="0.5"} NaN |
| 673 | prometheus_local_storage_indexing_batch_duration_milliseconds{quantile="0.9"} NaN |
| 674 | prometheus_local_storage_indexing_batch_duration_milliseconds{quantile="0.99"} NaN |
| 675 | prometheus_local_storage_indexing_batch_duration_milliseconds_sum 871.5665949999999 |
| 676 | prometheus_local_storage_indexing_batch_duration_milliseconds_count 229.0 |
| 677 | # HELP process_cpu_seconds Total user and system CPU time spent in seconds. |
| 678 | # TYPE process_cpu_seconds counter |
| 679 | process_cpu_seconds_total 29323.4 |
| 680 | # HELP process_virtual_memory_bytes Virtual memory size in bytes. |
| 681 | # TYPE process_virtual_memory_bytes gauge |
| 682 | process_virtual_memory_bytes 2.478268416e+09 |
| 683 | # HELP prometheus_build_info A metric with a constant '1' value labeled by version, revision, and branch from which Prometheus was built. |
| 684 | # TYPE prometheus_build_info gauge |
| 685 | prometheus_build_info{branch="HEAD",revision="ef176e5",version="0.16.0rc1"} 1.0 |
| 686 | # HELP prometheus_local_storage_chunk_ops The total number of chunk operations by their type. |
| 687 | # TYPE prometheus_local_storage_chunk_ops counter |
| 688 | prometheus_local_storage_chunk_ops_total{type="clone"} 28.0 |
| 689 | prometheus_local_storage_chunk_ops_total{type="create"} 997844.0 |
| 690 | prometheus_local_storage_chunk_ops_total{type="drop"} 1.345758e+06 |
| 691 | prometheus_local_storage_chunk_ops_total{type="load"} 1641.0 |
| 692 | prometheus_local_storage_chunk_ops_total{type="persist"} 981408.0 |
| 693 | prometheus_local_storage_chunk_ops_total{type="pin"} 32662.0 |
| 694 | prometheus_local_storage_chunk_ops_total{type="transcode"} 980180.0 |
| 695 | prometheus_local_storage_chunk_ops_total{type="unpin"} 32662.0 |
| 696 | # HELP foo histogram Testing histogram buckets |
| 697 | # TYPE foo histogram |
| 698 | foo_bucket{le="0.0"} 0.0 |
| 699 | foo_bucket{le="1e-05"} 0.0 |
| 700 | foo_bucket{le="0.0001"} 0.0 |
| 701 | foo_bucket{le="0.1"} 8.0 |
| 702 | foo_bucket{le="1.0"} 10.0 |
| 703 | foo_bucket{le="10.0"} 17.0 |
| 704 | foo_bucket{le="100000.0"} 17.0 |
| 705 | foo_bucket{le="1e+06"} 17.0 |
| 706 | foo_bucket{le="1.55555555555552e+06"} 17.0 |
| 707 | foo_bucket{le="1e+23"} 17.0 |
| 708 | foo_bucket{le="+Inf"} 17.0 |
| 709 | foo_count 17.0 |
| 710 | foo_sum 324789.3 |
| 711 | foo_created 1.520430000123e+09 |
| 712 | # HELP bar histogram Testing with labels |
| 713 | # TYPE bar histogram |
| 714 | bar_bucket{a="b",le="+Inf"} 0.0 |
nothing calls this directly
no test coverage detected