Add test for Job and Instance Labels for Prometheus receiver #5998
Labels
ci-cd
CI, CD, testing, build issues
closed as inactive
comp:prometheus
Prometheus related issues
comp: receiver
Receiver
Stale
Is your feature request related to a problem? Please describe.
Currently, the Prometheus receiver test for labels only checks for the presence of external labels. We want to validate the presence of job and instance labels in every timeseries.
Describe the solution you'd like
We propose the following solution:
Similar to the test for external labels
opentelemetry-collector-contrib/receiver/prometheusreceiver/metrics_reciever_external_labels_test.go
Line 37 in 46b047b
Additional context
Related to : open-telemetry/wg-prometheus#57
CC: @alolita @Aneurysm9
The text was updated successfully, but these errors were encountered: