You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe. Problem Statement:
In order to verify that the Prometheus receiver is functioning as expected for transforming Prometheus to OTLP format, a test needs to be added for negative test cases from the OpenMetrics project to validate all Prometheus supported metric types being ingested by the receiver.
The OpenMetrics repository provides extensive Prometheus metrics test data here: https://github.com/OpenObservability/OpenMetrics/tree/main/tests/testdata/parsers
Current Behavior:
Currently, the Prometheus receiver is tested with positive cases for Gauge, Counter, Histogram and Summary Metric types (TestEndToEnd).
In addition to the positive tests, we’d like to use test data from OpenMetrics tests to cover negative test cases for each Prometheus metric type.
Describe the solution you'd like
We propose the following solution:
Add an additional test that creates targets with metrics data pulled from the OpenMetrics repository. The Prometheus receiver will scrape these targets and the test will validate the output from the receiver for each test case.
This text file provides a list of urls for the test data: https://github.com/OpenObservability/OpenMetrics/blob/main/tests/urls.txt
The negative test cases are represented with a suffix of “bad_” in the test name.
For e.g. bad_histograms_0:
Is your feature request related to a problem? Please describe.
Problem Statement:
In order to verify that the Prometheus receiver is functioning as expected for transforming Prometheus to OTLP format, a test needs to be added for negative test cases from the OpenMetrics project to validate all Prometheus supported metric types being ingested by the receiver.
The OpenMetrics repository provides extensive Prometheus metrics test data here: https://github.com/OpenObservability/OpenMetrics/tree/main/tests/testdata/parsers
Current Behavior:
Currently, the Prometheus receiver is tested with positive cases for Gauge, Counter, Histogram and Summary Metric types (TestEndToEnd).
In addition to the positive tests, we’d like to use test data from OpenMetrics tests to cover negative test cases for each Prometheus metric type.
Describe the solution you'd like
We propose the following solution:
Add an additional test that creates targets with metrics data pulled from the OpenMetrics repository. The Prometheus receiver will scrape these targets and the test will validate the output from the receiver for each test case.
This text file provides a list of urls for the test data: https://github.com/OpenObservability/OpenMetrics/blob/main/tests/urls.txt
The negative test cases are represented with a suffix of “bad_” in the test name.
For e.g. bad_histograms_0:
Additional context
Related to open-telemetry/prometheus-interoperability-spec#57
The text was updated successfully, but these errors were encountered: