Skip to content

Commit

Permalink
receiver/prometheus: Fix start timestamp adjustment logic (open-telem…
Browse files Browse the repository at this point in the history
…etry#3047)

* receiver/prometheus: Do not drop metrics used to establish start time

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* receiver/prometheus: update documentation regarding metric adjustment

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* exporter/prometheus: fix e2e test to account for proper recevier functioning

* Addres PR feedback on docs and naming

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* rename adjustPoint->isReset

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
  • Loading branch information
Aneurysm9 authored May 14, 2021
1 parent 8fdacd2 commit 934244b
Show file tree
Hide file tree
Showing 5 changed files with 713 additions and 364 deletions.
2 changes: 1 addition & 1 deletion exporter/prometheusexporter/end_to_end_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func TestEndToEndSummarySupport(t *testing.T) {
`test_jvm_gc_collection_seconds_sum.gc="G1 Old Generation". 0.*`,
`test_jvm_gc_collection_seconds_count.gc="G1 Old Generation". 0.*`,
`test_jvm_gc_collection_seconds_sum.gc="G1 Young Generation". 0.*`,
`test_jvm_gc_collection_seconds_count.gc="G1 Young Generation". 0.*`,
`test_jvm_gc_collection_seconds_count.gc="G1 Young Generation". 9.*`,
`. HELP test_jvm_info JVM version info`,
`. TYPE test_jvm_info gauge`,
`test_jvm_info.vendor="Oracle Corporation",version="9.0.4.11". 1.*`,
Expand Down
Loading

0 comments on commit 934244b

Please sign in to comment.